summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/find-func.el
diff options
context:
space:
mode:
authorTino Calancha <f92capac@gmail.com>2016-04-25 19:27:06 +0200
committerEli Zaretskii <eliz@gnu.org>2016-09-23 16:36:24 +0300
commitdc1e0ac761725931f23de13df4ef5020372a52a0 (patch)
tree7d43fe38a26118834a6d54ba836b9fe3519895f1 /lisp/emacs-lisp/find-func.el
parent0ae9a816b9f68bd3f50fc287a342237c8b4fe78d (diff)
downloademacs-dc1e0ac761725931f23de13df4ef5020372a52a0.tar.gz
emacs-dc1e0ac761725931f23de13df4ef5020372a52a0.tar.bz2
emacs-dc1e0ac761725931f23de13df4ef5020372a52a0.zip
Run find-function-after-hook after finding a symbol
* lisp/emacs-lisp/find-func.el (find-library): * lisp/help-mode.el (help-function-def, help-variable-def): Run `find-function-after-hook' inside the help-function of the buttons (bug#22583). * etc/NEWS: Mention the change. This is a backport from master. (cherry picked from commit f069d854508946bcc03e4c77ceb430748e3ab6d7)
Diffstat (limited to 'lisp/emacs-lisp/find-func.el')
-rw-r--r--lisp/emacs-lisp/find-func.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/find-func.el b/lisp/emacs-lisp/find-func.el
index 43bcb420c36..6f224ed92d3 100644
--- a/lisp/emacs-lisp/find-func.el
+++ b/lisp/emacs-lisp/find-func.el
@@ -283,7 +283,11 @@ LIBRARY should be a string (the name of the library)."
"Library name: ")
table nil nil nil nil def))))
(let ((buf (find-file-noselect (find-library-name library))))
- (condition-case nil (switch-to-buffer buf) (error (pop-to-buffer buf)))))
+ (condition-case nil
+ (prog1
+ (switch-to-buffer buf)
+ (run-hooks 'find-function-after-hook))
+ (error (pop-to-buffer buf)))))
;;;###autoload
(defun find-function-search-for-symbol (symbol type library)