all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#418: origin of some functions still a mystery in *Help*
@ 2008-06-15 13:12 jidanni
  2011-07-09 22:57 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: jidanni @ 2008-06-15 13:12 UTC (permalink / raw)
  To: bug-gnu-emacs

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"







^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#418: origin of some functions still a mystery in *Help*
  2008-06-15 13:12 bug#418: origin of some functions still a mystery in *Help* jidanni
@ 2011-07-09 22:57 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2011-07-09 22:57 UTC (permalink / raw)
  To: 418-done


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.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-07-09 22:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-15 13:12 bug#418: origin of some functions still a mystery in *Help* jidanni
2011-07-09 22:57 ` Glenn Morris

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.