mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
(eshell-do-pipelines): Indicate the last command in a pipeline.
This commit is contained in:
parent
4e5a8be947
commit
3fe3fd2c6d
1 changed files with 5 additions and 1 deletions
|
|
@ -838,7 +838,11 @@ this grossness will be made to disappear by using `call/cc'..."
|
|||
(setcar head
|
||||
(intern-soft
|
||||
(concat (symbol-name (car head)) "*"))))))
|
||||
,(car pipeline)))))
|
||||
;; Indicate to the command if it is the last in the pipeline.
|
||||
;; Currently only used by eshell-ls-files.
|
||||
;; Perhaps nil, rather than 'last, would be OK?
|
||||
(let ((eshell-in-pipeline-p ,(if (cdr pipeline) t (quote 'last))))
|
||||
,(car pipeline))))))
|
||||
|
||||
(defmacro eshell-do-pipelines-synchronously (pipeline)
|
||||
"Execute the commands in PIPELINE in sequence synchronously.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue