emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/ebdb 5135645 260/350: Split out ebdb-notice-record and


From: Eric Abrahamsen
Subject: [elpa] externals/ebdb 5135645 260/350: Split out ebdb-notice-record and ebdb-notice-field methods
Date: Mon, 14 Aug 2017 11:46:50 -0400 (EDT)

branch: externals/ebdb
commit 5135645c1c6f7c50e13146026e1ad31c0dc56cc8
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>

    Split out ebdb-notice-record and ebdb-notice-field methods
    
    * ebdb.el: (ebdb-notice-field, ebdb-notice-record): Not that either of
      them actually do anything yet.
---
 ebdb-mua.el | 2 +-
 ebdb.el     | 9 +++++----
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/ebdb-mua.el b/ebdb-mua.el
index f859411..98b16e1 100644
--- a/ebdb-mua.el
+++ b/ebdb-mua.el
@@ -785,7 +785,7 @@ Usually this function is called by the wrapper 
`ebdb-mua-auto-update'."
         (setq records (list (car records))))
 
     (dolist (record records)
-      (ebdb-notice record))
+      (ebdb-notice-record record))
 
     records))
 
diff --git a/ebdb.el b/ebdb.el
index 458ab11..080d47e 100644
--- a/ebdb.el
+++ b/ebdb.el
@@ -651,7 +651,8 @@ functions to call. Otherwise, call the car of the list."
     (when pair
       (funcall (cdr pair) record field))))
 
-(cl-defmethod ebdb-notice ((_field ebdb-field) &optional _type 
_message-headers _record)
+(cl-defmethod ebdb-notice-field ((_field ebdb-field)
+                               &optional _type _message-headers _record)
   "Ask FIELD of RECORD to react to RECORD being \"noticed\".
 
 When the user receives an email from or cc'd to RECORD, that
@@ -1522,8 +1523,8 @@ first one."
 
 ;;; Anniversary field
 
-;; The `ebdb-notice' method could let you know when you get an email
-;; from someone and it happens to be their birthday.  The
+;; The `ebdb-notice-field' method could let you know when you get an
+;; email from someone and it happens to be their birthday.  The
 ;; `ebdb-action' method could open a calendar with point on the
 ;; upcoming anniversary, etc.
 
@@ -2062,7 +2063,7 @@ only return fields that are suitable for user editing.")
       (push (cons 'notes notes) f-list)))
   f-list)
 
-(cl-defmethod ebdb-notice ((_rec ebdb-record))
+(cl-defmethod ebdb-notice-record ((_rec ebdb-record))
   ;; Implement this later.
   t)
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]