Commit 93e616fd authored by thierry volpiatto's avatar thierry volpiatto
Browse files

* lisp/eshell/eshell.el (eshell-command): History have to be saved only in...

* lisp/eshell/eshell.el (eshell-command): History have to be saved only in interactive use to avoid error.
parent af7b6078
2011-10-11 Thierry Volpiatto <thierry.volpiatto@gmail.com>
* lisp/eshell/eshell.el (eshell-command): History have to be saved
only in interactive use to avoid error.
2011-10-11 Stefan Monnier <monnier@iro.umontreal.ca>
* minibuffer.el (completion-file-name-table): Fix last change,
......
......@@ -349,11 +349,9 @@ With prefix ARG, insert output into the current buffer at point."
(minibuffer-with-setup-hook #'(lambda ()
(eshell-mode)
(eshell-return-exits-minibuffer))
(unwind-protect
(unless command
(setq command (read-from-minibuffer "Emacs shell command: ")))
(when command
(eshell-add-input-to-history command)))))
(unless command
(setq command (read-from-minibuffer "Emacs shell command: "))
(eshell-add-input-to-history command))))
(unless command
(error "No command specified!"))
;; redirection into the current buffer is achieved by adding an
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment