]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix Eshell bug
authorAidan Gauland <aidalgol@no8wireless.co.nz>
Sun, 9 Jun 2013 06:44:47 +0000 (18:44 +1200)
committerAidan Gauland <aidalgol@no8wireless.co.nz>
Sun, 9 Jun 2013 06:44:47 +0000 (18:44 +1200)
* eshell/em-term.el (eshell-visual-command-p): Fix bug that
  causedoutput redirection to be ignored with visual commands.

lisp/ChangeLog
lisp/eshell/em-term.el

index 31746dd8de2702785d40bfd78b4dcf242f7d36fe..b7173c5cacf4a9f7f7a99e0e4980b12bac345462 100644 (file)
@@ -1,3 +1,8 @@
+2013-06-09  Aidan Gauland  <aidalgol@amuri.net>
+
+       * eshell/em-term.el (eshell-visual-command-p): Fix bug that caused
+       output redirection to be ignored with visual commands.
+
 2013-06-09  Aidan Gauland  <aidalgol@amuri.net>
 
        * eshell/em-term.el (eshell-visual-command-p): New function.
index 1ed584df8825d2f74b367a60ec0d5f3a124fcbbd..1d4b2a59d4b64e2444b4f07532424f9d4284f101 100644 (file)
@@ -141,12 +141,13 @@ character to the invoked process."
 If either COMMAND or a subcommand in ARGS (e.g. git log) is a
 visual command, returns non-nil."
   (let ((command (file-name-nondirectory command)))
-    (or (member command eshell-visual-commands)
-        (member (car args)
-                (cdr (assoc command eshell-visual-subcommands)))
-        (cl-intersection args
-                         (cdr (assoc command eshell-visual-options))
-                         :test 'string=))))
+    (and (eshell-interactive-output-p)
+         (or (member command eshell-visual-commands)
+             (member (car args)
+                     (cdr (assoc command eshell-visual-subcommands)))
+             (cl-intersection args
+                              (cdr (assoc command eshell-visual-options))
+                              :test 'string=)))))
 
 (defun eshell-exec-visual (&rest args)
   "Run the specified PROGRAM in a terminal emulation buffer.