emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/eshell/eshell.el


From: John Wiegley
Subject: [Emacs-diffs] Changes to emacs/lisp/eshell/eshell.el
Date: Sat, 16 Feb 2002 02:10:35 -0500

Index: emacs/lisp/eshell/eshell.el
diff -c emacs/lisp/eshell/eshell.el:1.11 emacs/lisp/eshell/eshell.el:1.12
*** emacs/lisp/eshell/eshell.el:1.11    Sat Jan 12 16:40:52 2002
--- emacs/lisp/eshell/eshell.el Sat Feb 16 02:10:35 2002
***************
*** 397,406 ****
--- 397,408 ----
    (unwind-protect
        (let ((eshell-non-interactive-p t))
        (add-hook 'minibuffer-setup-hook 'eshell-mode)
+       (add-hook 'minibuffer-exit-hook 'eshell-add-command-to-history)
        (add-hook 'eshell-mode-hook 'eshell-return-exits-minibuffer)
        (unless command
          (setq command (read-from-minibuffer "Emacs shell command: "))))
      (remove-hook 'eshell-mode-hook 'eshell-return-exits-minibuffer)
+     (remove-hook 'minibuffer-exit-hook 'eshell-add-command-to-history)
      (remove-hook 'minibuffer-setup-hook 'eshell-mode))
    (unless command
      (error "No command specified!"))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]