[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master a286e02 2/2: ; Fix process-lines-handling-status docstring.
From: |
Basil L. Contovounesios |
Subject: |
master a286e02 2/2: ; Fix process-lines-handling-status docstring. |
Date: |
Sun, 28 Feb 2021 14:14:02 -0500 (EST) |
branch: master
commit a286e02580cc4daf0e9edfc0086c517a1770dff4
Author: Basil L. Contovounesios <contovob@tcd.ie>
Commit: Basil L. Contovounesios <contovob@tcd.ie>
; Fix process-lines-handling-status docstring.
---
lisp/subr.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lisp/subr.el b/lisp/subr.el
index 0c97c60..0b56347 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -2533,10 +2533,10 @@ use `start-file-process'."
(defun process-lines-handling-status (program status-handler &rest args)
"Execute PROGRAM with ARGS, returning its output as a list of lines.
-If STATUS-HANDLER is non-NIL, it must be a function with one
+If STATUS-HANDLER is non-nil, it must be a function with one
argument, which will be called with the exit status of the
program before the output is collected. If STATUS-HANDLER is
-NIL, an error is signalled if the program returns with a non-zero
+nil, an error is signaled if the program returns with a non-zero
exit status."
(with-temp-buffer
(let ((status (apply #'call-process program nil (current-buffer) nil
args)))
@@ -2564,7 +2564,7 @@ Also see `process-lines-ignore-status'."
"Execute PROGRAM with ARGS, returning its output as a list of lines.
The exit status of the program is ignored.
Also see `process-lines'."
- (apply #'process-lines-handling-status program #'identity args))
+ (apply #'process-lines-handling-status program #'ignore args))
(defun process-live-p (process)
"Return non-nil if PROCESS is alive.