[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/nano-modeline 239000d7e1 10/26: Handle case when fringe
From: |
ELPA Syncer |
Subject: |
[elpa] externals/nano-modeline 239000d7e1 10/26: Handle case when fringes are outside margins |
Date: |
Fri, 2 Jun 2023 03:59:07 -0400 (EDT) |
branch: externals/nano-modeline
commit 239000d7e18a9381ecdfef0dcaf1dc9a0abc507b
Author: Nicolas P. Rougier <Nicolas.Rougier@inria.fr>
Commit: Nicolas P. Rougier <Nicolas.Rougier@inria.fr>
Handle case when fringes are outside margins
---
nano-modeline.el | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/nano-modeline.el b/nano-modeline.el
index c69910ef58..a64f5e319b 100644
--- a/nano-modeline.el
+++ b/nano-modeline.el
@@ -206,20 +206,22 @@ using the given FACE-PREFIX as the default."
(apply (car element) (cdr element))))
',right))
(width (window-width))
+ (fringe (if fringes-outside-margins 0.0 -1.0))
(left-max-size (- width (length right) 2))
(left (if (> (length left) left-max-size)
(concat (truncate-string-to-width left left-max-size)
(propertize "…" 'face `(:inherit
,nano-modeline-base-face)))
left)))
(concat (propertize " "
- 'display `(space :align-to (+ left-margin
- (0.0 . left-fringe)
- (1.0 . left-margin))))
+ 'display `(space :align-to (+ left
+ (,fringe . left-fringe)
+ ( 0.0 . left-margin))))
left
(propertize " "
'face `(:inherit ,nano-modeline-base-face)
'display `(space :align-to (- right
- (-1.0 . right-fringe)
+ (,fringe . right-fringe)
+ ( 0.0 . right-margin)
,(length right))))
right))))
- [elpa] externals/nano-modeline d18fa48999 08/26: Update documentation, (continued)
- [elpa] externals/nano-modeline d18fa48999 08/26: Update documentation, ELPA Syncer, 2023/06/02
- [elpa] externals/nano-modeline 3e29afaea2 09/26: Better alignment with fringes and margins, ELPA Syncer, 2023/06/02
- [elpa] externals/nano-modeline 7663311747 04/26: Bugfix with deadline date, ELPA Syncer, 2023/06/02
- [elpa] externals/nano-modeline 26470be833 07/26: Nil face is ok, ELPA Syncer, 2023/06/02
- [elpa] externals/nano-modeline 7503853c0b 13/26: Added clickalt text/svg buttons, ELPA Syncer, 2023/06/02
- [elpa] externals/nano-modeline 961065fe66 16/26: Added possibility to have icon in buttons, ELPA Syncer, 2023/06/02
- [elpa] externals/nano-modeline a2bf4fd073 22/26: Several group of butons are now possible, ELPA Syncer, 2023/06/02
- [elpa] externals/nano-modeline bead6850a1 26/26: Add usage example to documentation, ELPA Syncer, 2023/06/02
- [elpa] externals/nano-modeline 0b47e73d04 18/26: Added possibility for dynamic buttons, ELPA Syncer, 2023/06/02
- [elpa] externals/nano-modeline 7331307df8 03/26: Upated documentation to new implementation, ELPA Syncer, 2023/06/02
- [elpa] externals/nano-modeline 239000d7e1 10/26: Handle case when fringes are outside margins,
ELPA Syncer <=
- [elpa] externals/nano-modeline 93c78fd956 12/26: Renamed faces to name/primary/secondary, ELPA Syncer, 2023/06/02
- [elpa] externals/nano-modeline 7f5879ead9 14/26: Better org-mode, ELPA Syncer, 2023/06/02
- [elpa] externals/nano-modeline 4e5be76d98 17/26: Message compose mode with buttons, ELPA Syncer, 2023/06/02
- [elpa] externals/nano-modeline e3a04505ff 05/26: Optional symbols, ELPA Syncer, 2023/06/02
- [elpa] externals/nano-modeline 8304ce072f 06/26: Simplification of faces, ELPA Syncer, 2023/06/02
- [elpa] externals/nano-modeline 67ad139060 15/26: Org capture mode with buttons, ELPA Syncer, 2023/06/02
- [elpa] externals/nano-modeline 1fc418a2f5 19/26: Added buttons to all mu4e modes, ELPA Syncer, 2023/06/02
- [elpa] externals/nano-modeline 3773403dbe 20/26: Added help message for buttons, ELPA Syncer, 2023/06/02
- [elpa] externals/nano-modeline cba074e55c 23/26: Tagged version 1.0, ELPA Syncer, 2023/06/02
- [elpa] externals/nano-modeline 8a609b63c3 24/26: Removed old screenshots, ELPA Syncer, 2023/06/02