[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ebdb f07cadf 1/7: Exclude full formatter from `ebdb-ava
From: |
Eric Abrahamsen |
Subject: |
[elpa] externals/ebdb f07cadf 1/7: Exclude full formatter from `ebdb-available-ebdb-formatters' |
Date: |
Fri, 14 Dec 2018 15:44:20 -0500 (EST) |
branch: externals/ebdb
commit f07cadf1c2028b2aab967bdb31a24ad06f1fe3bf
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>
Exclude full formatter from `ebdb-available-ebdb-formatters'
* ebdb-com.el (ebdb-available-ebdb-formatters): The full formatter is
selected with its own function, the toggle/loop shouldn't use it by
default.
---
ebdb-com.el | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/ebdb-com.el b/ebdb-com.el
index 4468564..bf98178 100644
--- a/ebdb-com.el
+++ b/ebdb-com.el
@@ -503,11 +503,15 @@ and 'role, and the special shortcuts 'mail-primary,
"Formatter used for displaying all values of a record.
This formatter should not be changed.")
-(defun ebdb-available-ebdb-formatters ()
+(defun ebdb-available-ebdb-formatters (&optional full-okay)
"A list of formatters available in the *EBDB* buffer.
-This list is also used for toggling layouts."
+This list is also used for toggling layouts. Unless FULL-OKAY is
+non-nil, do not offer the value of `ebdb-full-formatter' as a
+choice: that formatter should be selected explicitly."
(seq-filter
- (lambda (f) (object-of-class-p f 'ebdb-formatter-ebdb))
+ (lambda (f) (and (object-of-class-p f 'ebdb-formatter-ebdb)
+ (or full-okay
+ (null (equal f ebdb-full-formatter)))))
ebdb-formatter-tracker))
(defsubst ebdb-formatter-prefix ()
- [elpa] externals/ebdb updated (4444031 -> 61403ee), Eric Abrahamsen, 2018/12/14
- [elpa] externals/ebdb 5242e6f 6/7: Forgot to reverse the list of collected fields in formatting, Eric Abrahamsen, 2018/12/14
- [elpa] externals/ebdb f7281f8 4/7: Don't exit ebdb-mua-in-ebdb-buffer during minibuffer input, Eric Abrahamsen, 2018/12/14
- [elpa] externals/ebdb a40874b 3/7: Use ebdb-foo-in-list for the fast lookups check, Eric Abrahamsen, 2018/12/14
- [elpa] externals/ebdb 5726c97 2/7: Add a ebdb-fmt-field implementation for images, Eric Abrahamsen, 2018/12/14
- [elpa] externals/ebdb f07cadf 1/7: Exclude full formatter from `ebdb-available-ebdb-formatters',
Eric Abrahamsen <=
- [elpa] externals/ebdb 61403ee 7/7: Protect against databases with no records, bump to 0.6.1, Eric Abrahamsen, 2018/12/14
- [elpa] externals/ebdb 09018d9 5/7: Small manual tweaks and typo fixes, Eric Abrahamsen, 2018/12/14