diff options
author | Karl Heuer <kwzh@gnu.org> | 1999-06-04 18:48:16 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1999-06-04 18:48:16 +0000 |
commit | 57ec49bae044d8b3a62094160f5e345c8f24a5da (patch) | |
tree | 26891e8c65f028356584947bc7eb7b199594f9b0 /lisp/help.el | |
parent | 068c712cc950a6c359ec7d98a3ee47e7558aeb2f (diff) | |
download | emacs-57ec49bae044d8b3a62094160f5e345c8f24a5da.tar.gz |
(help-xref-interned): Fix insertion of fdoc and revamp.
Diffstat (limited to 'lisp/help.el')
-rw-r--r-- | lisp/help.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/help.el b/lisp/help.el index 9d0c4e856aa..f5ed123a6f3 100644 --- a/lisp/help.el +++ b/lisp/help.el @@ -1095,12 +1095,12 @@ help buffer." (let ((fdoc (describe-function symbol))) (describe-variable symbol) ;; We now have a help buffer on the variable. Insert the function - ;; text after it. - (goto-char (point-max)) - (let ((inhibit-read-only t)) - (insert "\n\n" fdoc))) - (goto-char (point-min)) - (help-setup-xref (list #'help-xref-interned symbol) nil)) + ;; text before it. + (with-current-buffer "*Help*" + (goto-char (point-min)) + (let ((inhibit-read-only t)) + (insert fdoc "\n\n" (symbol-name symbol) " is also a variable.\n\n")) + (help-setup-xref (list #'help-xref-interned symbol) nil)))) (defun help-xref-mode (buffer) "Do a `describe-mode' for the specified BUFFER." |