summaryrefslogtreecommitdiff
path: root/lisp/apropos.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/apropos.el')
-rw-r--r--lisp/apropos.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/apropos.el b/lisp/apropos.el
index 45463784cb..1ee3bedbd3 100644
--- a/lisp/apropos.el
+++ b/lisp/apropos.el
@@ -736,8 +736,7 @@ Returns list of symbols and documentation found."
(apropos-sort-by-scores apropos-documentation-sort-by-scores)
f v sf sv)
(unwind-protect
- (save-excursion
- (set-buffer standard-input)
+ (with-current-buffer standard-input
(apropos-documentation-check-doc-file)
(if do-all
(mapatoms