File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3425,21 +3425,22 @@ transient is active."
34253425
34263426; ;;; Help
34273427
3428- (defun transient-help (&optional interactive )
3428+ (defun transient-help (&optional interactivep )
34293429 " Show help for the active transient or one of its suffixes.
34303430\n (fn)"
34313431 (interactive (list t ))
3432- (if interactive
3433- (setq transient--helpp t )
3432+ (cond
3433+ (interactivep
3434+ (setq transient--helpp t ))
3435+ ((lookup-key transient--transient-map
3436+ (this-single-command-raw-keys ))
3437+ (setq transient--helpp nil )
34343438 (with-demoted-errors " transient-help: %S"
3435- (when (lookup-key transient--transient-map
3436- (this-single-command-raw-keys ))
3437- (setq transient--helpp nil )
3438- (transient--display-help #'transient-show-help
3439- (if (eq this-original-command 'transient-help )
3440- transient--prefix
3441- (or (transient-suffix-object)
3442- this-original-command)))))))
3439+ (transient--display-help #'transient-show-help
3440+ (if (eq this-original-command 'transient-help )
3441+ transient--prefix
3442+ (or (transient-suffix-object)
3443+ this-original-command)))))))
34433444
34443445(transient-define-suffix transient-describe ()
34453446 " From a transient menu, describe something in another buffer.
You can’t perform that action at this time.
0 commit comments