summaryrefslogtreecommitdiff
path: root/lisp/help-mode.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/help-mode.el')
-rw-r--r--lisp/help-mode.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/help-mode.el b/lisp/help-mode.el
index 7c032b81cf2..641738770a2 100644
--- a/lisp/help-mode.el
+++ b/lisp/help-mode.el
@@ -413,8 +413,7 @@ A special reference `back' is made to return back through a stack of
help buffers. Variable `help-back-label' specifies the text for
that."
(interactive "b")
- (save-excursion
- (set-buffer (or buffer (current-buffer)))
+ (with-current-buffer (or buffer (current-buffer))
(goto-char (point-min))
;; Skip the header-type info, though it might be useful to parse
;; it at some stage (e.g. "function in `library'").