[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/transient fa3b7574bb 087/366: transient--layout-member:
From: |
Jonas Bernoulli |
Subject: |
[elpa] externals/transient fa3b7574bb 087/366: transient--layout-member: Use appropriate argument order |
Date: |
Tue, 25 Jan 2022 18:54:29 -0500 (EST) |
branch: externals/transient
commit fa3b7574bbde8b417e1c8404b6cb136617f1f820
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
transient--layout-member: Use appropriate argument order
Like for `member' the "element" should come before the "list".
---
lisp/transient.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lisp/transient.el b/lisp/transient.el
index fe013f8ca6..9261ad6e20 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -869,7 +869,7 @@ example, sets a variable use `define-infix-command' instead.
(defun transient--insert-suffix (prefix loc suffix action)
(let* ((suf (transient--parse-suffix prefix suffix))
- (mem (transient--layout-member prefix loc)))
+ (mem (transient--layout-member loc prefix)))
(if mem
(progn
(transient-remove-suffix prefix (plist-get (nth 2 suf) :command))
@@ -916,14 +916,14 @@ PREFIX is a prefix command, a symbol.
LOC is a command, a key vector or a key description
(a string as returned by `key-description')."
(declare (indent defun))
- (transient--layout-member prefix loc 'remove))
+ (transient--layout-member loc prefix 'remove))
(defun transient-get-suffix (prefix loc)
"Return the suffix at LOC from PREFIX.
PREFIX is a prefix command, a symbol.
LOC is a command, a key vector or a key description
(a string as returned by `key-description')."
- (if-let ((mem (transient--layout-member prefix loc)))
+ (if-let ((mem (transient--layout-member loc prefix)))
(car mem)
(error "%s not found in %s" loc prefix)))
@@ -938,7 +938,7 @@ PROP has to be a keyword. What keywords and values
(setf (nth 2 elt)
(plist-put (nth 2 elt) prop value))))
-(defun transient--layout-member (prefix loc &optional remove)
+(defun transient--layout-member (loc prefix &optional remove)
(if-let ((layout (get prefix 'transient--layout)))
(cl-labels
((mem (layout loc)
- [elpa] externals/transient 6506cfdb8b 062/366: define-transient-command: Support :level in suffix definitions, (continued)
- [elpa] externals/transient 6506cfdb8b 062/366: define-transient-command: Support :level in suffix definitions, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient a87cb2c35a 063/366: transient-read-directory: New function, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 1e8dfe954a 070/366: transient--window: Add doc-string, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 99d3bf6e76 014/366: transient--show-brief: Don't show binding for transient-set-level, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 170a3fd791 005/366: make: Don't try to build removed transient-demo.el, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 33e96045b4 009/366: transient-substitute-key-function: Drop repeated wording, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient a729bbba45 022/366: transient--ensure-infix-command: Avoid false-positives, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 6467626e4e 024/366: Stop talking about the "echo area", Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 1ffd0ba498 071/366: transient--original-buffer: Renamed from transient--source-buffer, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 892bc840c0 072/366: transient--original-buffer: Set globally, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient fa3b7574bb 087/366: transient--layout-member: Use appropriate argument order,
Jonas Bernoulli <=
- [elpa] externals/transient 20c231e0ec 089/366: transient--layout-member-1: Refactor, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient cac657a03e 092/366: Support inserting/removing groups and doing it using coordinates, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 6236a4fd38 019/366: Bind ESC ESC ESC in all maps, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient e889030b0f 027/366: Quote a parenthesis in a doc-string, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 2033ac1ed9 031/366: transient-mode-line-format: New option, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 08b4778890 033/366: Make it trivial to use "q" to quit again, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 9429cb628a 035/366: transient-scroll-down: Fix pasto, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 7e45a57ec8 030/366: No longer depend on lv to display the transient buffer, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient 625683c9ea 029/366: transient--pre-exit: Don't reselect original window, Jonas Bernoulli, 2022/01/25
- [elpa] externals/transient a2dada29c8 034/366: manual: Add a FAQ, Jonas Bernoulli, 2022/01/25