]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix some standard-output/help-buffer confusion in describe-function-1
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 8 Feb 2022 07:24:30 +0000 (08:24 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 8 Feb 2022 07:24:30 +0000 (08:24 +0100)
* lisp/help-fns.el (describe-function-1): We're outputting to
standard-output, so deconfuse slightly.

lisp/help-fns.el

index e6cc07b471d155752ee2f3c84192e02797d07c3c..5da575aa8d116876d5223eb24cb341959bf4fa14 100644 (file)
@@ -959,9 +959,9 @@ Returns a list of the form (REAL-FUNCTION DEF ALIASED REAL-DEF)."
 
 ;;;###autoload
 (defun describe-function-1 (function)
-  (let ((pt1 (with-current-buffer (help-buffer) (point))))
+  (let ((pt1 (with-current-buffer standard-output (point))))
     (help-fns-function-description-header function)
-    (with-current-buffer (help-buffer)
+    (with-current-buffer standard-output
       (let ((inhibit-read-only t))
         (fill-region-as-paragraph
          (save-excursion