[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/transient 6103f168aa 28/38: transient--describe-functio
From: |
Jonas Bernoulli |
Subject: |
[elpa] externals/transient 6103f168aa 28/38: transient--describe-function: Deal with anonymous infix arguments |
Date: |
Tue, 11 Jan 2022 05:37:46 -0500 (EST) |
branch: externals/transient
commit 6103f168aa0ef0b06bfa862ca0c2589b7be9600b
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
transient--describe-function: Deal with anonymous infix arguments
Add a special-case for when no man-page is set.
---
lisp/transient.el | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/lisp/transient.el b/lisp/transient.el
index 32e4f38b76..839f820b57 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -3535,9 +3535,24 @@ manpage, then try to jump to the correct location."
(transient--describe-function cmd))
(defun transient--describe-function (fn)
- (describe-function fn)
+ (describe-function (if (symbolp fn) fn 'transient--anonymous-infix-argument))
(select-window (get-buffer-window (help-buffer))))
+(defun transient--anonymous-infix-argument ()
+ "Cannot show any documentation for this anonymous infix command.
+
+The infix command in question was defined anonymously, i.e.,
+it was define when the prefix command that it belongs to was
+defined, which means that it gets no docstring and also that
+no symbol is bound to it.
+
+When you request help for an infix command, then we usually
+show the respective man-page and jump to the location where
+the respective argument is being described.
+
+Because the containing prefix command does not specify any
+man-page, we cannot do that in this case. Sorry about that.")
+
(defun transient--show-manual (manual)
(info manual))
- [elpa] externals/transient 28491e1f8e 02/38: Properly deal with stealth undefined command, (continued)
- [elpa] externals/transient 28491e1f8e 02/38: Properly deal with stealth undefined command, Jonas Bernoulli, 2022/01/11
- [elpa] externals/transient 1a1ae03600 05/38: Remove transient--pre-command later, Jonas Bernoulli, 2022/01/11
- [elpa] externals/transient 41521a5c93 12/38: transient--get-predicate-for: Always return a function, Jonas Bernoulli, 2022/01/11
- [elpa] externals/transient 143a13938c 04/38: transient-infix-read: Always enable-recursive-minibuffers, Jonas Bernoulli, 2022/01/11
- [elpa] externals/transient 69f42f9e89 15/38: transient--make-predicate-map: Cosmetics, Jonas Bernoulli, 2022/01/11
- [elpa] externals/transient e90f7a165e 16/38: Add support for returning from a sub-prefix to the parent prefix, Jonas Bernoulli, 2022/01/11
- [elpa] externals/transient 714e348296 18/38: No longer always suspend when handle-switch-frame is called, Jonas Bernoulli, 2022/01/11
- [elpa] externals/transient c19ff84355 19/38: manual: Rearrange and group options, Jonas Bernoulli, 2022/01/11
- [elpa] externals/transient 5762bd9a06 22/38: transient-hide-during-minibuffer-read: New option, Jonas Bernoulli, 2022/01/11
- [elpa] externals/transient 8d8ed1965f 26/38: Hide infix commands from execute-extended-command, Jonas Bernoulli, 2022/01/11
- [elpa] externals/transient 6103f168aa 28/38: transient--describe-function: Deal with anonymous infix arguments,
Jonas Bernoulli <=
- [elpa] externals/transient 2c9cef1f5a 33/38: Bump copyright years, Jonas Bernoulli, 2022/01/11
- [elpa] externals/transient e77d16dd02 03/38: transient--post-command: Avoid needlessly recreating redisplay map, Jonas Bernoulli, 2022/01/11
- [elpa] externals/transient 79c999d263 06/38: transient--post-exit: New function, Jonas Bernoulli, 2022/01/11
- [elpa] externals/transient 2e33f96cf0 07/38: transient--post-command: Cosmetics, Jonas Bernoulli, 2022/01/11
- [elpa] externals/transient 76b77e01ac 09/38: magit--{pre, post}-command: Add emergency exits, Jonas Bernoulli, 2022/01/11
- [elpa] externals/transient 7b8a7d718a 08/38: Use a more targeted approach to suspending transient override, Jonas Bernoulli, 2022/01/11
- [elpa] externals/transient 09b436fad0 10/38: transient--debug: Ignore error in transient--suffix-symbol, Jonas Bernoulli, 2022/01/11
- [elpa] externals/transient f2e0dfcc4b 11/38: transient--get-predicate-for: Ignore error in transient--suffix-symbol, Jonas Bernoulli, 2022/01/11
- [elpa] externals/transient 3c78b10f52 14/38: transient--redisplay: Don't redisplay during mouse-drag-region, Jonas Bernoulli, 2022/01/11
- [elpa] externals/transient 4a36b1d922 17/38: Interpret t and nil for sub-prefixes in define-transient-prefix, Jonas Bernoulli, 2022/01/11