aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/help.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/help.el')
-rw-r--r--lisp/help.el12
1 files changed, 11 insertions, 1 deletions
diff --git a/lisp/help.el b/lisp/help.el
index 9fcb06c559f..e148e5ef6ab 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -871,7 +871,17 @@ whose documentation describes the minor mode."
871 (let ((start (point))) 871 (let ((start (point)))
872 (insert (format-mode-line mode nil nil buffer)) 872 (insert (format-mode-line mode nil nil buffer))
873 (add-text-properties start (point) '(face bold))))) 873 (add-text-properties start (point) '(face bold)))))
874 (princ " mode:\n") 874 (princ " mode")
875 (let* ((mode major-mode)
876 (file-name (find-lisp-object-file-name mode nil)))
877 (when file-name
878 (princ (concat " defined in `" (file-name-nondirectory file-name) "'"))
879 ;; Make a hyperlink to the library.
880 (with-current-buffer standard-output
881 (save-excursion
882 (re-search-backward "`\\([^`']+\\)'" nil t)
883 (help-xref-button 1 'help-function-def mode file-name)))))
884 (princ ":\n")
875 (princ (documentation major-mode))))) 885 (princ (documentation major-mode)))))
876 ;; For the sake of IELM and maybe others 886 ;; For the sake of IELM and maybe others
877 nil) 887 nil)