diff options
| author | Stefan Monnier | 2011-03-21 12:42:16 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2011-03-21 12:42:16 -0400 |
| commit | cafdcef32d55cbb44389d7e322e7f973cbb72dfd (patch) | |
| tree | 7ee0c41ea8a589650ce6f4311fb10e61a63807b9 /lisp/help.el | |
| parent | a08a25d7aaf251aa18f2ef747be53734bc55cae9 (diff) | |
| parent | 4e05e67e4cd0bc1b0a4ef3176a4d0d91c6b3738e (diff) | |
| download | emacs-cafdcef32d55cbb44389d7e322e7f973cbb72dfd.tar.gz emacs-cafdcef32d55cbb44389d7e322e7f973cbb72dfd.zip | |
Merge from trunk
Diffstat (limited to 'lisp/help.el')
| -rw-r--r-- | lisp/help.el | 12 |
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) |