Path: utzoo!attcan!uunet!cs.utexas.edu!sun-barr!sun!plx!evan From: evan@plx.UUCP (Evan Bigall) Newsgroups: comp.emacs Subject: execute-extended-for-dummys Message-ID: <1947@plx.UUCP> Date: 26 May 89 15:17:54 GMT Reply-To: evan@plx.UUCP (Evan Bigall) Organization: Plexus Computers; San Jose, CA Lines: 27 Only 6 lines, but I like it enough to share it (little things satisfy me) The idea is, that I frequently forget where I bound functions. Being the lazy person I am, I always just Meta-X it, instead of doing a where-is and then using the binding. Its a vicious circle, and eventually I never remember the binding because I never use it. This function which I bind to esc-x executes a command by name, and then tells me where it was. A possible enhancement would be to make it refuse to execute somthing which has a binding. There is a bug, that it does not properly handle prefix arguments. I dont have the e-lisp manual or enough expericance to fix that, can anyone help? ;;;; cut here (defun execute-extended-for-dummys (fun) "Execute a command by name, then tell me where it was" (interactive "aM-x ") (command-execute fun) (where-is fun) ) ;;;; cut here -- Evan Bigall, Plexus Computers, San Jose, CA (408)943-2283 ...!sun!plx!evan "I barely have the authority to speak for myself, certainly not anybody else"