From d2a31670501188280b41d58aff7c3bbf12ee5297 Mon Sep 17 00:00:00 2001 From: Jim Porter Date: Thu, 13 Jun 2024 21:44:40 -0700 Subject: [PATCH] ; * lisp/eshell/em-script.el (eshell-execute-file): Improve docstring. (cherry picked from commit 19b407ac749fcb8d978e8263ed98328100128de5) --- lisp/eshell/em-script.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/eshell/em-script.el b/lisp/eshell/em-script.el index 6cddffdcf5f..ba020d2eb5b 100644 --- a/lisp/eshell/em-script.el +++ b/lisp/eshell/em-script.el @@ -108,6 +108,10 @@ Comments begin with `#'." ;;;###autoload (defun eshell-execute-file (file &optional args destination) "Execute a series of Eshell commands in FILE, passing ARGS. +If DESTINATION is t, write the command output to the current buffer. If +nil, don't write the output anywhere. For any other value, output to +the corresponding Eshell target (see `eshell-get-target'). + Comments begin with `#'." (let ((eshell-non-interactive-p t) (stdout (if (eq destination t) (current-buffer) destination))) -- 2.39.2