[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/compat b888c2fb49 53/84: Replace when-let with expansio
From: |
ELPA Syncer |
Subject: |
[elpa] externals/compat b888c2fb49 53/84: Replace when-let with expansions in compat-29 |
Date: |
Tue, 3 Jan 2023 08:57:35 -0500 (EST) |
branch: externals/compat
commit b888c2fb493d8d71b93a3d5b40e092bddba0afef
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>
Replace when-let with expansions in compat-29
---
compat-29.el | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/compat-29.el b/compat-29.el
index 32783b58f7..0cd5ab3bad 100644
--- a/compat-29.el
+++ b/compat-29.el
@@ -473,8 +473,8 @@ this defaults to the current buffer."
(t
disp)))
;; Remove any old instances.
- (when-let ((old (assoc prop disp)))
- (setq disp (delete old disp)))
+ (let ((old (assoc prop disp)))
+ (when old (setq disp (delete old disp))))
(setq disp (cons (list prop value) disp))
(when vector
(setq disp (seq-into disp 'vector)))
@@ -894,8 +894,9 @@ The binding is probably a symbol with a function definition.
If optional argument ACCEPT-DEFAULT is non-nil, recognize default
bindings; see the description of `keymap-lookup' for more details
about this."
- (when-let ((map (current-local-map)))
- (compat--keymap-lookup map keys accept-default)))
+ (let ((map (current-local-map)))
+ (when map
+ (compat--keymap-lookup map keys accept-default))))
;;* UNTESTED
(compat-defun keymap-global-lookup (keys &optional accept-default _message)
- [elpa] externals/compat c177ff5e83 17/84: Reuse ntake in take definition, (continued)
- [elpa] externals/compat c177ff5e83 17/84: Reuse ntake in take definition, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 0de389aca6 19/84: Add string-equal-ignore-case from Emacs 29, ELPA Syncer, 2023/01/03
- [elpa] externals/compat ff331f6c29 22/84: Add prefixed plist-put from Emacs 29, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 9aac0f55d1 23/84: Add prefixed plist-member from Emacs 29, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 9ab3081959 26/84: Add string-pixel-width from Emacs 29, ELPA Syncer, 2023/01/03
- [elpa] externals/compat d375504e3c 27/84: Add with-buffer-unmodified-if-unchanged from Emacs 29, ELPA Syncer, 2023/01/03
- [elpa] externals/compat ded0f01036 40/84: Revert "Fix gv-expander for compat-alist-get", ELPA Syncer, 2023/01/03
- [elpa] externals/compat 878221eabd 44/84: Update the commentary section for compat-29, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 4a56adbcdf 42/84: Remove references to the deleted "Emacs 24.5" node, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 0c14c42bc1 50/84: Copy edebug specifications instead of referencing, ELPA Syncer, 2023/01/03
- [elpa] externals/compat b888c2fb49 53/84: Replace when-let with expansions in compat-29,
ELPA Syncer <=
- [elpa] externals/compat 59cd42a912 60/84: Generate test names without double-dashes, ELPA Syncer, 2023/01/03
- [elpa] externals/compat b0f8f6eaac 61/84: Remove realname for ntake, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 45028d9fa7 64/84: Merge branch 'master' into emacs-29.1, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 68c6ccd5cc 68/84: Always load compat-macs, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 54565a768c 73/84: Abbreviate Makefile by re-using BYTEC, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 661ba3a441 74/84: Use 'equal' instead of 'file-equal-p', ELPA Syncer, 2023/01/03
- [elpa] externals/compat 55080acac2 82/84: Preliminary bump the version tag to 29.1.0.0-dev, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 4bd1226048 59/84: Rewrite take to copy only as much as required, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 835b4301b4 62/84: Add 'pure' and 'side-effect-free' properties to take, ELPA Syncer, 2023/01/03
- [elpa] externals/compat e7413bcf2b 63/84: Document additional missing functions from compat-29, ELPA Syncer, 2023/01/03