--- Begin Message ---
Subject: |
origin of some functions still a mystery in *Help* |
Date: |
Sun, 15 Jun 2008 21:12:49 +0800 |
There are still some cases where the *Help* buffer doesn't show what
file a function or variable came from:
I wondered why this *Help*,
C-M-l (translated from <escape> C-l) runs the command switch-to-other-buffer
which is an interactive compiled Lisp function.
It is bound to <kp-insert>, C-M-l.
(switch-to-other-buffer)
Didn't mention what file it came from.
Well it turns out it was in my .emacs.elc, compiled from .emacs. Which
should be mentioned in *Help*. Here is how it was defined:
(setq term-setup-hook
(function (lambda ()
(defun switch-to-other-buffer () (interactive) (switch-to-buffer
(other-buffer)))
(global-set-key [(meta control ?l)] `switch-to-other-buffer)...
emacs-version "22.2.1"
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#418: origin of some functions still a mystery in *Help* |
Date: |
Sat, 09 Jul 2011 18:57:28 -0400 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
Move the defun to the top-level, ie outside the hook.
It has no need to be in the hook, and doing so just confuses things.
--- End Message ---