branch: elpa/diff-ansi
commit cdae72a4713704692aa4edf3433d6b6df1d84746
Author: Campbell Barton <[email protected]>
Commit: Campbell Barton <[email protected]>
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