[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/eat 0e82988d6f 03/15: Use 'setf' + 'plist-get' instead of
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/eat 0e82988d6f 03/15: Use 'setf' + 'plist-get' instead of 'plist-put' |
Date: |
Tue, 29 Nov 2022 05:58:37 -0500 (EST) |
branch: elpa/eat
commit 0e82988d6f32b6d09e54ecf547b6c562fe1d2009
Author: Akib Azmain Turja <akib@disroot.org>
Commit: Akib Azmain Turja <akib@disroot.org>
Use 'setf' + 'plist-get' instead of 'plist-put'
* eat.el (eat--eshell-adjust-make-process-args): Use (setf (plist-get
...) ...) instead of 'plist-put' without taking the result, which is
not guaranteed to always work.
---
eat.el | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/eat.el b/eat.el
index 560b37b85e..00928ff16d 100644
--- a/eat.el
+++ b/eat.el
@@ -6129,17 +6129,16 @@ modify its argument to change the filter, the sentinel
and invoke
(expand-file-name command))
args))))
(apply make-process plist)
- (plist-put plist :filter #'eat--eshell-filter)
- (plist-put plist :sentinel #'eat--eshell-sentinel)
- (plist-put
- plist :command
- `("/usr/bin/env" "sh" "-c"
- ,(format "stty -nl echo rows %d columns %d \
+ (setf (plist-get plist :filter) #'eat--eshell-filter
+ (plist-get plist :sentinel) #'eat--eshell-sentinel
+ (plist-get plist :command)
+ `("/usr/bin/env" "sh" "-c"
+ ,(format "stty -nl echo rows %d columns %d \
sane 2>%s ; if [ $1 = .. ]; then shift; fi; exec \"$@\""
- (window-text-height)
- (window-max-chars-per-line) null-device)
- ".."
- ,@(plist-get plist :command)))
+ (window-text-height)
+ (window-max-chars-per-line) null-device)
+ ".."
+ ,@(plist-get plist :command)))
(let ((process (apply make-process plist)))
(eat--eshell-setup-proc-and-term process)
process)))))
- [nongnu] elpa/eat updated (f3fed64957 -> d8171b9a8c), ELPA Syncer, 2022/11/29
- [nongnu] elpa/eat 0e82988d6f 03/15: Use 'setf' + 'plist-get' instead of 'plist-put',
ELPA Syncer <=
- [nongnu] elpa/eat a736f08ea9 02/15: Prefer 'and-let*' and 'when-let*' over 'when-let', ELPA Syncer, 2022/11/29
- [nongnu] elpa/eat 9a9d9165f2 05/15: * eat.el (eat--bell): Use 'ding' instead of 'beep', ELPA Syncer, 2022/11/29
- [nongnu] elpa/eat 59c0745e75 12/15: Don't put 'error' as the only then part of 'if', ELPA Syncer, 2022/11/29
- [nongnu] elpa/eat 3e496e8db8 14/15: ; Merge diverged elpa/eat branch of NonGNU ELPA, ELPA Syncer, 2022/11/29
- [nongnu] elpa/eat 5ce98430e8 07/15: Use more readable '?\C-\s' instead of '?\C-\ ', ELPA Syncer, 2022/11/29
- [nongnu] elpa/eat 10d9f3cb56 11/15: Use 'mapc' to make & kill multiple local variables, ELPA Syncer, 2022/11/29
- [nongnu] elpa/eat 2dd4e42773 01/15: Prefer 'pcase-exhaustive' over 'pcase', ELPA Syncer, 2022/11/29
- [nongnu] elpa/eat dc99739fb8 04/15: * eat.el (eat--trace-exec): Use "-*- mode: MD -*-", ELPA Syncer, 2022/11/29
- [nongnu] elpa/eat c19cf68b28 08/15: * eat.el (eat-term-make-keymap): Use 'cl-flet', ELPA Syncer, 2022/11/29
- [nongnu] elpa/eat 1b2b7aee26 13/15: Bump version to 0.1, ELPA Syncer, 2022/11/29