[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/diff-ansi cdae72a471 2/2: Cleanup: assign a variable for t
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/diff-ansi cdae72a471 2/2: Cleanup: assign a variable for the processes final destination |
Date: |
Wed, 20 Dec 2023 21:59:11 -0500 (EST) |
branch: elpa/diff-ansi
commit cdae72a4713704692aa4edf3433d6b6df1d84746
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>
Cleanup: assign a variable for the processes final destination
---
diff-ansi.el | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/diff-ansi.el b/diff-ansi.el
index 1c8804c9be..c2b8fdae55 100644
--- a/diff-ansi.el
+++ b/diff-ansi.el
@@ -301,16 +301,17 @@ Additional keyword arguments may also be passed in.
(with-current-buffer buf-dst
(erase-buffer))
(let* ((sentinel-called nil)
+ (buf-dst-final
+ (cond
+ ;; Last command, use output.
+ ((and (null args) (bufferp output))
+ output)
+ (t
+ buf-dst)))
(proc
(make-process
:name "call-process-pipe-chain"
- :buffer
- (cond
- ;; Last command, use output.
- ((and (null args) (bufferp output))
- output)
- (t
- buf-dst))
+ :buffer buf-dst-final
;; Write to the intermediate buffer or the final output.
:connection-type 'pipe
:command arg-current