summaryrefslogtreecommitdiff
path: root/lisp/help-fns.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/help-fns.el')
-rw-r--r--lisp/help-fns.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index 9af6e38c49..15a68dfab7 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -789,8 +789,7 @@ file local variable.\n")
(terpri)
(princ output))))
- (save-excursion
- (set-buffer standard-output)
+ (with-current-buffer standard-output
;; Return the text we displayed.
(buffer-string))))))))