diff options
author | Miles Bader <miles@gnu.org> | 2005-05-20 04:22:05 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 2005-05-20 04:22:05 +0000 |
commit | 64e9342958694825be1664890dcd22fffcd50d3a (patch) | |
tree | a43e1796f5a49ae7eeec671447d10ac3731a1834 /lisp/help-mode.el | |
parent | 5447510256e5a1b371407b751ddcc461044da5df (diff) | |
parent | a18ff9886771c41186eebf8d7984fee2120dbe36 (diff) | |
download | emacs-64e9342958694825be1664890dcd22fffcd50d3a.tar.gz |
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-53
Merge from emacs--cvs-trunk--0
Patches applied:
* emacs--cvs-trunk--0 (patch 302-319)
- Update from CVS
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 69)
- Update from CVS
Diffstat (limited to 'lisp/help-mode.el')
-rw-r--r-- | lisp/help-mode.el | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lisp/help-mode.el b/lisp/help-mode.el index 8b0284089fc..d94f03200dc 100644 --- a/lisp/help-mode.el +++ b/lisp/help-mode.el @@ -169,6 +169,18 @@ The format is (FUNCTION ARGS...).") (goto-char (cdr location)))) 'help-echo (purecopy"mouse-2, RET: find variable's definition")) +(define-button-type 'help-face-def + :supertype 'help-xref + 'help-function (lambda (fun file) + (require 'find-func) + ;; Don't use find-function-noselect because it follows + ;; aliases (which fails for built-in functions). + (let ((location + (find-function-search-for-symbol fun 'defface file))) + (pop-to-buffer (car location)) + (goto-char (cdr location)))) + 'help-echo (purecopy "mouse-2, RET: find face's definition")) + ;;;###autoload (defun help-mode () |