When using describe-key
, the following block from the help+20
package, in the describe-function-1
function:
(help-xref-button 1 #'(lambda (arg)
(let ((location
(find-function-noselect arg)))
(pop-to-buffer (car location))
(goto-char (cdr location))))
function)
Is causing the following error:
help-xref-button: Wrong type argument: symbolp, (lambda (arg) (let ((location (find-function-noselect arg))) (pop-to-buffer (car location)) (goto-char (cdr location))))
I tried pulling the lambda out into its own function:
;;;###autoload
(defun describe-function-1--hyperlink (arg)
(let ((location
(find-function-noselect arg)))
(pop-to-buffer (car location))
(goto-char (cdr location))))
Modifying the help-xref-button
call accordingly:
(help-xref-button 1 #'describe-function-1--hyperlink function)
But am getting the following error:
make-text-button: Unknown button type ‘describe-function-1--hyperlink’
How can I create a new button type, if that's what I really need to do?
help+20.el
is the version of thehelp+.el
package that is meant for Emacs 20. Are you really running that ancient an Emacs? If not, you should probably delete thehelp+20.el
package and installhelp+.el
. See Emacs Wiki.help+20
was version 20 and above. I'll report back on whether it works later this afternoon EST!help+20.el
is for Emacs 20 only.help+.el
is for Emacs 22 and later. Not sure what one should use for Emacs 21 (but I hope the question is a cademic: at this point, nobody should be using Emacs 21 IMO). See the Emacs Wiki link in my first comment.help+20.el
says: "Extensions to `help.el' for Emacs 20" and "Compatibility: GNU Emacs 20.x".