[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/marginalia 5a0678d88c 02/15: Deprecate marginalia-separ
From: |
ELPA Syncer |
Subject: |
[elpa] externals/marginalia 5a0678d88c 02/15: Deprecate marginalia-separator-threshold |
Date: |
Sun, 9 Jan 2022 15:57:51 -0500 (EST) |
branch: externals/marginalia
commit 5a0678d88ca6d488889aabceb25a6849dc4c7ff1
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Deprecate marginalia-separator-threshold
It is not worth the complication.
---
marginalia.el | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/marginalia.el b/marginalia.el
index 0645e5476d..54b137a07c 100644
--- a/marginalia.el
+++ b/marginalia.el
@@ -48,9 +48,12 @@
This value is adjusted depending on the `window-width'."
:type 'integer)
-(defcustom marginalia-separator-threshold 160
- "Use wider separator for window widths larger than this value."
- :type 'integer)
+(defcustom marginalia-separator " "
+ "Annotation field separator."
+ :type 'string)
+
+(defvar marginalia-separator-threshold nil)
+(make-obsolete-variable 'marginalia-separator-threshold "Deprecated in favor
of `marginalia-separator'." "0.11")
;; See https://github.com/minad/marginalia/issues/42 for the discussion
;; regarding the alignment.
@@ -327,9 +330,6 @@ determine it."
Disabling the cache is useful on non-incremental UIs like default completion or
for performance profiling of the annotators.")
-(defvar marginalia--separator " "
- "Field separator.")
-
(defvar marginalia--margin 0
"Right margin.")
@@ -374,7 +374,7 @@ FACE is the name of the face, with which the field should
be propertized."
(defmacro marginalia--fields (&rest fields)
"Format annotation FIELDS as a string with separators in between."
`(marginalia--align (concat ,@(cdr (mapcan (lambda (field)
- (list 'marginalia--separator
`(marginalia--field ,@field)))
+ (list 'marginalia-separator
`(marginalia--field ,@field)))
fields)))))
(defun marginalia--documentation (str)
@@ -761,9 +761,9 @@ The string is transformed according to
`marginalia-bookmark-type-transformers'."
(defun marginalia--buffer-status (buffer)
"Return the status of BUFFER as a string."
(format-mode-line '((:propertize "%1*%1+%1@" face marginalia-modified)
- marginalia--separator
+ marginalia-separator
(7 (:propertize "%I" face marginalia-size))
- marginalia--separator
+ marginalia-separator
;; InactiveMinibuffer has 18 letters, but there are
longer names.
;; For example Org-Agenda produces very long mode names.
;; Therefore we have to truncate.
@@ -995,7 +995,6 @@ looking for a regexp that matches the prompt."
(with-selected-window (or (minibuffer-selected-window)
(selected-window))
(let ((marginalia--cache ,c) ;; Take the cache from the minibuffer
(marginalia-truncate-width (min (/ ,w 2)
marginalia-truncate-width))
- (marginalia--separator (if (>= ,w
marginalia-separator-threshold) " " " "))
(marginalia--margin
(+ (or marginalia-align-offset ,o)
(if (>= ,w (+ marginalia-margin-min
marginalia-margin-threshold))
- [elpa] externals/marginalia updated (7782ebdd5c -> 1a2495203d), ELPA Syncer, 2022/01/09
- [elpa] externals/marginalia e13d5ac71b 13/15: marginalia--field: Allow float value for :truncate, ELPA Syncer, 2022/01/09
- [elpa] externals/marginalia 5a0678d88c 02/15: Deprecate marginalia-separator-threshold,
ELPA Syncer <=
- [elpa] externals/marginalia 709ed9b97e 01/15: marginalia--field: Remove support for :format, ELPA Syncer, 2022/01/09
- [elpa] externals/marginalia 5f6ba12ff5 04/15: Deprecate and remove most of the current alignment implementation, ELPA Syncer, 2022/01/09
- [elpa] externals/marginalia b5ea8e5ce8 09/15: Indentation, ELPA Syncer, 2022/01/09
- [elpa] externals/marginalia 4391877773 12/15: Rename marginalia-truncate-width to marginalia-field-width, ELPA Syncer, 2022/01/09
- [elpa] externals/marginalia 1a2495203d 15/15: Colorize truncation ellipsis, ELPA Syncer, 2022/01/09
- [elpa] externals/marginalia 55c5d3f1b3 03/15: Define the annotation-function in terms of the affixation-function, ELPA Syncer, 2022/01/09
- [elpa] externals/marginalia a35476942f 11/15: Hack in better alignment support, ELPA Syncer, 2022/01/09
- [elpa] externals/marginalia 87e03d7d39 06/15: Inline marginalia--context, ELPA Syncer, 2022/01/09
- [elpa] externals/marginalia 0bca060531 07/15: Minor simplification, ELPA Syncer, 2022/01/09
- [elpa] externals/marginalia a21f59a077 10/15: Extract marginalia--affixate, ELPA Syncer, 2022/01/09