branch: externals/ebdb
commit 1096c6e64cb3a8856aeb154d6b7808f1041969a1
Author: Eric Abrahamsen <[email protected]>
Commit: Eric Abrahamsen <[email protected]>
Search read transform functions needs to work for all methods
Addresses #39
* ebdb.el (ebdb-search-read): This :around method was previously only
firing for method calls that involved subclasses of ebdb-field. I
forgot there are several other types of call, the transformation
needs to work for all of them.
---
ebdb.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ebdb.el b/ebdb.el
index c1ee74a..108f6ab 100644
--- a/ebdb.el
+++ b/ebdb.el
@@ -4966,7 +4966,7 @@ values, by default the search is not handed to the name
field itself."
In most cases this is a simple regexp, but field classes can
prompt users for more complex search criteria, if necessary.")
-(cl-defmethod ebdb-search-read :around ((cls (subclass ebdb-field)))
+(cl-defmethod ebdb-search-read :around (_key)
"Give the functions in `ebdb-search-transform-functions' a
chance to transform the search string."
(let ((criterion (cl-call-next-method)))