branch: externals/ebdb
commit 4a332dc8d07a2dc153ebcf6d7bda3a08681e0834
Author: Eric Abrahamsen <[email protected]>
Commit: Eric Abrahamsen <[email protected]>
Add defgeneric for ebdb-read
* ebdb.el (ebdb-read): Want the function signature.
---
ebdb.el | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/ebdb.el b/ebdb.el
index 2fa21f3..1f84f40 100644
--- a/ebdb.el
+++ b/ebdb.el
@@ -983,6 +983,12 @@ removed."
(cl-defmethod delete-instance ((_field ebdb-field) &rest _args)
t)
+(cl-defgeneric ebdb-read (class &optional slots obj)
+ "Prompt the user for values to create an instance of CLASS.
+SLOTS are a plist of slot values; OBJ is an optional existing
+object of type CLASS, from which to draw default values during
+prompting.")
+
(cl-defmethod ebdb-read ((class (subclass ebdb-field)) &optional slots _obj)
"Complete the read/object creation process for a field of CLASS.