emacs-devel
[Top][All Lists]
Advanced

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

[PATCH] C-h k sometimes fails if the key is bound to a lambda


From: Ævar Arnfjörð Bjarmason
Subject: [PATCH] C-h k sometimes fails if the key is bound to a lambda
Date: Thu, 22 Nov 2007 03:29:46 +0000

If emacs is started as emacs -Q and the following evaluated:

(global-set-key (kbd "C-c C-e") (lambda () (interactive) (message "Y hlo")))

C-h k C-c C-e will always produce a help buffer with "C-c C-e runs the
command (lambda nil (interactive) (message "Y hlo"))"

However if advised.el has been loaded (and (featurep 'advice)
(ad-get-advice-info function)) at the start of the describe-function-1
function will fail.

The following patch to help-fns.el wraps the call in (ignore-errors)
which makes C-h k work on keys bound to lambdas in all cases.

consolers in irc.freenode.net #emacs deserves credit for the patch. I
just found the error.

Attachment: help-fns.el.patch
Description: Text Data


reply via email to

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