X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/1dd4f26ab6c1f14628d9fcf03b0cca7e54d52302..05d76dba6604f78e4b2b7b9f8b30c916cad7d32a:/lisp/help-mode.el diff --git a/lisp/help-mode.el b/lisp/help-mode.el index e0f3351e67..e008698618 100644 --- a/lisp/help-mode.el +++ b/lisp/help-mode.el @@ -107,7 +107,7 @@ The format is (FUNCTION ARGS...).") (defun help-button-action (button) "Call BUTTON's help function." - (help-do-xref (button-start button) + (help-do-xref nil (button-get button 'help-function) (button-get button 'help-args))) @@ -202,6 +202,7 @@ The format is (FUNCTION ARGS...).") (let ((location (find-function-search-for-symbol fun type file))) (pop-to-buffer (car location)) + (run-hooks 'find-function-after-hook) (if (cdr location) (goto-char (cdr location)) (message "Unable to find location in file")))) @@ -231,6 +232,7 @@ The format is (FUNCTION ARGS...).") (setq file (help-C-file-name var 'var))) (let ((location (find-variable-noselect var file))) (pop-to-buffer (car location)) + (run-hooks 'find-function-after-hook) (if (cdr location) (goto-char (cdr location)) (message "Unable to find location in file"))))