[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ebdb 767a9fa 07/21: Allow two kinds of searches on tags
From: |
Eric Abrahamsen |
Subject: |
[elpa] externals/ebdb 767a9fa 07/21: Allow two kinds of searches on tags |
Date: |
Sun, 17 Sep 2017 15:32:46 -0400 (EDT) |
branch: externals/ebdb
commit 767a9fa6f512af12861112f5fcc1b2dfc187d50c
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>
Allow two kinds of searches on tags
* ebdb.el (ebdb-search-read): If there's a [-+|&] in the search
string, use an org tag matcher, otherwise it's just a single tag,
return that tag.
---
ebdb.el | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/ebdb.el b/ebdb.el
index 920ca5c..bc1ad78 100644
--- a/ebdb.el
+++ b/ebdb.el
@@ -2320,11 +2320,13 @@ See `ebdb-url-valid-schemes' for a list of acceptable
schemes."
(ebdb-concat 'ebdb-field-tags (slot-value field 'tags)))
(cl-defmethod ebdb-search-read ((_class (subclass ebdb-field-tags)))
- (cdr
- ;; Thank you Org!
- (org-make-tags-matcher
- (ebdb-read-string
- "Search for tags (eg +tag1-tag2|tag3): "))))
+ (let ((search-string (ebdb-read-string
+ "Search for tags (eg +tag1-tag2|tag3): ")))
+ (if (string-match-p "[-+|&]" search-string)
+ (cdr
+ ;; Thank you Org!
+ (org-make-tags-matcher search-string))
+ search-string)))
(cl-defmethod ebdb-field-search ((field ebdb-field-tags)
func)
- [elpa] externals/ebdb 62fcfcf 15/21: Add ebdb-save to write-contents-functions in EBDB buffers, (continued)
- [elpa] externals/ebdb 62fcfcf 15/21: Add ebdb-save to write-contents-functions in EBDB buffers, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb a22c983 16/21: Try different faces in EBDB buffers, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 13f680a 13/21: Part two of threaded version of ebdb-initialize, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 3a918eb 09/21: Provide better instructions for BBDB migration, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb cbb4cc1 20/21: More complete error handling for field insertion, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb c298037 21/21: Bump version for 0.3.2, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 18be9ad 04/21: Add ebdb-field-bank-account class, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb dc5d03e 01/21: Change behavior of ebdb-fmt-compose-field, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 9c0947c 05/21: Comment out some custom definitions for address field, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 4a332dc 03/21: Add defgeneric for ebdb-read, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 767a9fa 07/21: Allow two kinds of searches on tags,
Eric Abrahamsen <=
- [elpa] externals/ebdb 8fc7b6d 08/21: Allow "fast lookups", Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb e3229ad 11/21: Give some indication that the migration process is ongoing, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb efd9e15 12/21: Provide an alternate threaded version of ebdb-initialize, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 2fa4379 14/21: New option ebdb-try-speedups, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 09a04b2 19/21: Fix up ebdb-string method for bank accounts, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 2b52686 18/21: Check type spec of slots that may or may not accept an object, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb b3266e5 17/21: Apparently when-let will be obsoleted by when-let*, Eric Abrahamsen, 2017/09/17