diff options
Diffstat (limited to 'lisp/chistory.el')
-rw-r--r-- | lisp/chistory.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/chistory.el b/lisp/chistory.el index af25175f7c2..0220673ec02 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") |