emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-bug-tracker] bug#418: closed (origin of some functions still a my


From: GNU bug Tracking System
Subject: [Emacs-bug-tracker] bug#418: closed (origin of some functions still a mystery in *Help*)
Date: Sat, 09 Jul 2011 22:58:01 +0000

Your message dated Sat, 09 Jul 2011 18:57:28 -0400
with message-id <address@hidden>
and subject line Re: bug#418: origin of some functions still a mystery in *Help*
has caused the GNU bug report #418,
regarding origin of some functions still a mystery in *Help*
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
418: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=418
GNU Bug Tracking System
Contact address@hidden with problems
--- 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 ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]