[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/transient 9a21467706 12/26: transient--separator-line:
|
From: |
Jonas Bernoulli |
|
Subject: |
[elpa] externals/transient 9a21467706 12/26: transient--separator-line: New function |
|
Date: |
Sun, 26 Nov 2023 19:42:04 -0500 (EST) |
branch: externals/transient
commit 9a2146770634312eaa5c1abcb4873ff2cb36e596
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
transient--separator-line: New function
---
lisp/transient.el | 24 ++++++++++++++----------
1 file changed, 14 insertions(+), 10 deletions(-)
diff --git a/lisp/transient.el b/lisp/transient.el
index ccc7c5befa..e177700db4 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -3498,16 +3498,8 @@ have a history of their own.")
(transient--insert-groups)
(when (or transient--helpp transient--editp)
(transient--insert-help))
- (when (and (eq transient-mode-line-format 'line)
- window-system)
- (let ((face
- (if-let ((f (and (transient--semantic-coloring-p)
- (transient--prefix-color transient--prefix))))
- `(,@(and (>= emacs-major-version 27) '(:extend t))
- :background ,(face-foreground f))
- 'transient-separator-line)))
- (insert (propertize "__" 'face face 'display '(space :height (1))))
- (insert (propertize "\n" 'face face 'line-height t))))
+ (when-let ((line (transient--separator-line)))
+ (insert line))
(when transient-force-fixed-pitch
(transient--force-fixed-pitch)))
(unless (window-live-p transient--window)
@@ -3529,6 +3521,18 @@ have a history of their own.")
(fit-window-to-buffer window nil (window-height window))
(fit-window-to-buffer window nil 1))))
+(defun transient--separator-line ()
+ (and (eq transient-mode-line-format 'line)
+ window-system
+ (let ((face
+ (if-let ((f (and (transient--semantic-coloring-p)
+ (transient--prefix-color transient--prefix))))
+ `(,@(and (>= emacs-major-version 27) '(:extend t))
+ :background ,(face-foreground f))
+ 'transient-separator-line)))
+ (concat (propertize "__" 'face face 'display '(space :height (1)))
+ (propertize "\n" 'face face 'line-height t)))))
+
(defmacro transient-with-shadowed-buffer (&rest body)
"While in the transient buffer, temporarly make the shadowed buffer current."
(declare (indent 0) (debug t))
- [elpa] externals/transient 004ca25946 06/26: Move definition of functions that handle pre-commands, (continued)
- [elpa] externals/transient 004ca25946 06/26: Move definition of functions that handle pre-commands, Jonas Bernoulli, 2023/11/26
- [elpa] externals/transient f23f51e24e 07/26: Rename transient--{do => call}-pre-command, Jonas Bernoulli, 2023/11/26
- [elpa] externals/transient 37307c1b8c 05/26: transient-prefix-object: New function, Jonas Bernoulli, 2023/11/26
- [elpa] externals/transient 4c1cda9984 08/26: Rename transient-get-{predicate-for => pre-command}, Jonas Bernoulli, 2023/11/26
- [elpa] externals/transient f4b4dd42b9 14/26: Add transient--do-leave's missing color setting, Jonas Bernoulli, 2023/11/26
- [elpa] externals/transient 0509c90e53 11/26: transient--key-face: New function, Jonas Bernoulli, 2023/11/26
- [elpa] externals/transient 05754d1576 13/26: Rearrange pre-command color settings, Jonas Bernoulli, 2023/11/26
- [elpa] externals/transient 98d8cf8016 15/26: Fix transient--do-quit-one's color setting, Jonas Bernoulli, 2023/11/26
- [elpa] externals/transient 9c00fae158 10/26: transient--add-face: Move definition, Jonas Bernoulli, 2023/11/26
- [elpa] externals/transient b1951a87b5 09/26: transient--resolve-pre-command: Optionally resolve boolean as well, Jonas Bernoulli, 2023/11/26
- [elpa] externals/transient 9a21467706 12/26: transient--separator-line: New function,
Jonas Bernoulli <=
- [elpa] externals/transient 47d3f01d9f 17/26: Fix/improve some faces, Jonas Bernoulli, 2023/11/26
- [elpa] externals/transient ad7a098349 16/26: Rearrange face definitions, Jonas Bernoulli, 2023/11/26
- [elpa] externals/transient c8a9ac5124 18/26: Simplify how colors are used to indicate transient behavior, Jonas Bernoulli, 2023/11/26
- [elpa] externals/transient 9f3afe94a9 19/26: transient-format(around:suffix): Reformat docstring, Jonas Bernoulli, 2023/11/26
- [elpa] externals/transient 48a1aa2bea 24/26: transient-highlight-mismatched-keys: Fix docstring typos, Jonas Bernoulli, 2023/11/26
- [elpa] externals/transient 46813a03f6 23/26: In support of the lovely pcase, Jonas Bernoulli, 2023/11/26
- [elpa] externals/transient 307695d2df 21/26: transient-format-description(around:suffix): Combine faces, Jonas Bernoulli, 2023/11/26
- [elpa] externals/transient 7f0215c4df 22/26: transient-format-value(option, value): Use argument faces, Jonas Bernoulli, 2023/11/26
- [elpa] externals/transient d834f76492 20/26: transient-format(around:suffix): Don't attempt to highlight full line, Jonas Bernoulli, 2023/11/26
- [elpa] externals/transient 71d16d86f1 25/26: Improve looks of debugging faces, Jonas Bernoulli, 2023/11/26