]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't lose arguments to eshell aliases (Bug#27954)
authorNoam Postavsky <npostavs@gmail.com>
Mon, 7 Aug 2017 12:56:42 +0000 (08:56 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Sat, 19 Aug 2017 02:29:36 +0000 (22:29 -0400)
* lisp/eshell/em-alias.el (eshell-maybe-replace-by-alias): Use ARGS.

lisp/eshell/em-alias.el

index 5bf80b2310a6d457ea116e867af4fa2cb23709c9..990eb0202411df4f54adcbc8a825e8db8691b407 100644 (file)
@@ -225,7 +225,7 @@ file named by `eshell-aliases-file'.")
                         (eshell-command-arguments ',eshell-last-arguments)
                         (eshell-prevent-alias-expansion
                          ',(cons command eshell-prevent-alias-expansion)))
-                    ,(eshell-parse-command (nth 1 alias))))))))
+                    ,(eshell-parse-command (nth 1 alias) args)))))))
 
 (defun eshell-alias-completions (name)
   "Find all possible completions for NAME.