]> git.eshelyaron.com Git - emacs.git/commitdiff
(help-xref-interned): Fix insertion of fdoc and revamp.
authorKarl Heuer <kwzh@gnu.org>
Fri, 4 Jun 1999 18:48:16 +0000 (18:48 +0000)
committerKarl Heuer <kwzh@gnu.org>
Fri, 4 Jun 1999 18:48:16 +0000 (18:48 +0000)
lisp/help.el

index 9d0c4e856aaf7b654c7bf7648690f56e9ae3db6d..f5ed123a6f3ba86ba7a3fc72af287db9b437a646 100644 (file)
@@ -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."