diff options
Diffstat (limited to 'lisp/echistory.el')
-rw-r--r-- | lisp/echistory.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/echistory.el b/lisp/echistory.el index 3d783ffa8fa..8d1bfb92a00 100644 --- a/lisp/echistory.el +++ b/lisp/echistory.el @@ -34,8 +34,7 @@ With prefix arg NOCONFIRM, execute current line as-is without editing." (interactive "P") (let (todo) - (save-excursion - (set-buffer "*Command History*") + (with-current-buffer "*Command History*" (beginning-of-line) (setq todo (read (current-buffer))) (if (boundp 'electric-history-in-progress) |