summaryrefslogtreecommitdiff
path: root/lisp/chistory.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/chistory.el')
-rw-r--r--lisp/chistory.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/chistory.el b/lisp/chistory.el
index af25175f7c..0220673ec0 100644
--- a/lisp/chistory.el
+++ b/lisp/chistory.el
@@ -116,8 +116,7 @@ The buffer is left in Command History mode."
(prin1 (car history))
(terpri))
(setq history (cdr history))))
- (save-excursion
- (set-buffer "*Command History*")
+ (with-current-buffer "*Command History*"
(goto-char (point-min))
(if (eobp)
(error "No command history")