@@ -682,6 +682,7 @@ If `transient-save-history' is nil, then do nothing."
682
682
(transient-non-suffix :initarg :transient-non-suffix :initform nil)
683
683
(transient-switch-frame :initarg :transient-switch-frame)
684
684
(display-action :initarg :display-action :initform nil)
685
+ (mode-line-format :initarg :mode-line-format)
685
686
(refresh-suffixes :initarg :refresh-suffixes :initform nil)
686
687
(environment :initarg :environment :initform nil)
687
688
(incompatible :initarg :incompatible :initform nil)
@@ -3839,10 +3840,10 @@ have a history of their own.")
3839
3840
(setq tab-line-format nil))
3840
3841
(setq header-line-format nil)
3841
3842
(setq mode-line-format
3842
- (if (or (natnump transient-mode-line-format)
3843
- (eq transient-mode-line- format 'line))
3844
- nil
3845
- transient-mode-line- format))
3843
+ (let ((format ( transient-- mode-line-format)) )
3844
+ (if (or (natnump format) (eq format 'line))
3845
+ nil
3846
+ format) ))
3846
3847
(setq mode-line-buffer-identification
3847
3848
(symbol-name (oref transient--prefix command)))
3848
3849
(if transient-enable-popup-navigation
@@ -3886,11 +3887,16 @@ have a history of their own.")
3886
3887
(fit-window-to-buffer window nil (window-height window))
3887
3888
(fit-window-to-buffer window nil 1))))
3888
3889
3890
+ (defun transient--mode-line-format ()
3891
+ (if (slot-boundp transient--prefix mode-line-format)
3892
+ (oref transient--prefix mode-line-format)
3893
+ transient-mode-line-format))
3894
+
3889
3895
(defun transient--separator-line ()
3890
- (and-let* ((height (cond ((not window-system) nil )
3891
- ((natnump transient-mode-line-format )
3892
- transient-mode-line- format)
3893
- ((eq transient-mode-line- format 'line) 1)))
3896
+ (and-let* ((format (transient--mode-line-format) )
3897
+ (height (cond ((not window-system) nil )
3898
+ ((natnump format) format)
3899
+ ((eq format 'line) 1)))
3894
3900
(face `(,@(and (>= emacs-major-version 27) '(:extend t))
3895
3901
:background
3896
3902
,(or (face-foreground (transient--key-face nil 'non-suffix)
0 commit comments