emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/transient 9b777fa120 167/366: transient--invalid: New f


From: Jonas Bernoulli
Subject: [elpa] externals/transient 9b777fa120 167/366: transient--invalid: New function
Date: Tue, 25 Jan 2022 18:54:38 -0500 (EST)

branch: externals/transient
commit 9b777fa1204e9348293287b2408020496133725d
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    transient--invalid: New function
---
 lisp/transient.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lisp/transient.el b/lisp/transient.el
index c5dcc687fe..64d276b4f6 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -1962,8 +1962,12 @@ to `transient--do-warn'."
 (defun transient-undefined ()
   "Warn the user that the pressed key is not bound to any suffix."
   (interactive)
+  (transient--invalid "Unbound suffix"))
+
+(defun transient--invalid (msg)
   (ding)
-  (message "Unbound suffix: `%s' (Use `%s' to abort, `%s' for help) [%s]"
+  (message "%s: `%s' (Use `%s' to abort, `%s' for help) [%s]"
+           msg
            (propertize (key-description (this-single-command-keys))
                        'face 'font-lock-warning-face)
            (propertize "C-g" 'face 'transient-key)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]