diff options
| author | Glenn Morris | 2008-08-15 06:55:11 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-08-15 06:55:11 +0000 |
| commit | 3fe3fd2c6db8c97243f52aba2c10b547fdeb60a8 (patch) | |
| tree | 613e14219c5b5d3bd89c27b4a78bd503451fef13 /lisp | |
| parent | 4e5a8be947d1f79c91c484bcb4317bc86b165164 (diff) | |
| download | emacs-3fe3fd2c6db8c97243f52aba2c10b547fdeb60a8.tar.gz emacs-3fe3fd2c6db8c97243f52aba2c10b547fdeb60a8.zip | |
(eshell-do-pipelines): Indicate the last command in a pipeline.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/eshell/esh-cmd.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/eshell/esh-cmd.el b/lisp/eshell/esh-cmd.el index 17ae50d1f50..82677aec8aa 100644 --- a/lisp/eshell/esh-cmd.el +++ b/lisp/eshell/esh-cmd.el | |||
| @@ -838,7 +838,11 @@ this grossness will be made to disappear by using `call/cc'..." | |||
| 838 | (setcar head | 838 | (setcar head |
| 839 | (intern-soft | 839 | (intern-soft |
| 840 | (concat (symbol-name (car head)) "*")))))) | 840 | (concat (symbol-name (car head)) "*")))))) |
| 841 | ,(car pipeline))))) | 841 | ;; Indicate to the command if it is the last in the pipeline. |
| 842 | ;; Currently only used by eshell-ls-files. | ||
| 843 | ;; Perhaps nil, rather than 'last, would be OK? | ||
| 844 | (let ((eshell-in-pipeline-p ,(if (cdr pipeline) t (quote 'last)))) | ||
| 845 | ,(car pipeline)))))) | ||
| 842 | 846 | ||
| 843 | (defmacro eshell-do-pipelines-synchronously (pipeline) | 847 | (defmacro eshell-do-pipelines-synchronously (pipeline) |
| 844 | "Execute the commands in PIPELINE in sequence synchronously. | 848 | "Execute the commands in PIPELINE in sequence synchronously. |