diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-02-05 15:28:04 -0200 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-02-05 15:29:49 -0200 |
commit | 55eb72816b32f5a869e843036fb122065c1ed56f (patch) | |
tree | e8414da10d82f8ab1d629deb8ca86c1cb394f25b /lisp/help-mode.el | |
parent | 649e21fe2f593263db5ddce373cf8ef2150630d2 (diff) | |
download | emacs-55eb72816b32f5a869e843036fb122065c1ed56f.tar.gz |
help-fns.el (describe-function-or-variable): New function on `C-h o'
Diffstat (limited to 'lisp/help-mode.el')
-rw-r--r-- | lisp/help-mode.el | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/help-mode.el b/lisp/help-mode.el index c62ddc3dcd0..564362a0c43 100644 --- a/lisp/help-mode.el +++ b/lisp/help-mode.el @@ -621,10 +621,13 @@ See `help-make-xrefs'." ;; Additional functions for (re-)creating types of help buffers. -(defun help-xref-interned (symbol) + +;;;###autoload +(defun help-xref-interned (symbol &optional buffer frame) "Follow a hyperlink which appeared to be an arbitrary interned SYMBOL. Both variable, function and face documentation are extracted into a single -help buffer." +help buffer. If SYMBOL is a variable, include buffer-local value for optional +BUFFER or FRAME." (with-current-buffer (help-buffer) ;; Push the previous item on the stack before clobbering the output buffer. (help-setup-xref nil nil) @@ -640,7 +643,7 @@ help buffer." (get symbol 'variable-documentation)) ;; Don't record the current entry in the stack. (setq help-xref-stack-item nil) - (describe-variable symbol)))) + (describe-variable symbol buffer frame)))) (cond (sdoc ;; We now have a help buffer on the variable. |