[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ebdb d806d7d 08/11: Compiler-inspired fixes, vol 335534
From: |
Eric Abrahamsen |
Subject: |
[elpa] externals/ebdb d806d7d 08/11: Compiler-inspired fixes, vol 335534 |
Date: |
Sun, 22 Oct 2017 13:17:02 -0400 (EDT) |
branch: externals/ebdb
commit d806d7da0d5dfc5618c1db4a5f64e7f90b3f3e72
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>
Compiler-inspired fixes, vol 335534
Where "compiler" is understood to mean "Stefan"
* ebdb-migrate.el (ebdb-migrate-from-bbdb,
ebdb-migrate-vector-to-class): Get rid of remaining usages of oset.
* ebdb-mu4e.el: Declare functions from message.el
* ebdb-mua.el (ebdb-delete-field): Note unused argument.
* ebdb-pgp.el: Declare function from ebdb-mua.
* ebdb.el (ebdb-sources): Change default and type of ebdb-sources.
---
ebdb-migrate.el | 4 ++--
ebdb-mu4e.el | 1 +
ebdb-mua.el | 2 +-
ebdb-pgp.el | 2 ++
ebdb.el | 18 ++++++++++++------
5 files changed, 18 insertions(+), 9 deletions(-)
diff --git a/ebdb-migrate.el b/ebdb-migrate.el
index 0375757..fa48d7a 100644
--- a/ebdb-migrate.el
+++ b/ebdb-migrate.el
@@ -456,7 +456,7 @@ BBDB sets the default of that option."
(goto-char (point-min)))
(dolist (r c-records)
(ebdb-init-record r))
- (eieio-oset target-db 'dirty t)
+ (setf (slot-value target-db 'dirty) t)
(message "Migrating records from BBDB... %d records migrated"
(length c-records))))))
@@ -530,7 +530,7 @@ BBDB sets the default of that option."
:mail (cadr bits))
mails))))
(when mails
- (oset (car (last mails)) priority 'primary)))
+ (setf (slot-value (car (last mails)) 'priority) 'primary)))
(when xfields
(dolist (x xfields)
(setq lab (car x)
diff --git a/ebdb-mu4e.el b/ebdb-mu4e.el
index 04fd715..dc87fef 100644
--- a/ebdb-mu4e.el
+++ b/ebdb-mu4e.el
@@ -29,6 +29,7 @@
(defvar mu4e~view-buffer-name)
(defvar mu4e-view-mode-map)
+(declare-function message-field-value "message")
;; Tackle `mu4e-headers-mode' later
diff --git a/ebdb-mua.el b/ebdb-mua.el
index 33130d6..d2cc931 100644
--- a/ebdb-mua.el
+++ b/ebdb-mua.el
@@ -543,7 +543,7 @@ variable should be set before EBDB is loaded.")
(cl-call-next-method))
(cl-defmethod ebdb-delete-field ((f ebdb-field-mail-folder)
- &optional record unload)
+ &optional record _unload)
(when record
(let* ((folder (slot-value f 'folder))
(mails (mapcar #'regexp-quote (ebdb-record-mail-canon record)))
diff --git a/ebdb-pgp.el b/ebdb-pgp.el
index 0dc7fa3..cad93a0 100644
--- a/ebdb-pgp.el
+++ b/ebdb-pgp.el
@@ -28,6 +28,8 @@
(require 'message)
(require 'ebdb-com)
+(declare-function ebdb-mua-message-header "ebdb-mua")
+
(defcustom ebdb-pgp-default-action nil
"Default action when sending a message and the recipients are not in EBDB.
This should be one of the following symbols:
diff --git a/ebdb.el b/ebdb.el
index 1c9249a..c029918 100644
--- a/ebdb.el
+++ b/ebdb.el
@@ -109,18 +109,24 @@ See also `ebdb-silent'.")
"Options for an EIEIO version of EBDB."
:group 'ebdb)
-(defcustom ebdb-sources "~/.emacs.d/ebdb"
- "User option specifying where EBDB contacts should be loaded
-from. It can be a single element, or a list of multiple
-elements. If an element is a string, it is treated as a
-filename, and used to create an instance of `ebdb-db-file'.
+(defcustom ebdb-sources (locate-user-emacs-file "ebdb")
+ "User option specifying EBDB database sources.
+It can be a single element, or a list of elements. If an element
+is a string, it is treated as a filename, and used to create an
+instance of `ebdb-db-file'.
Elements can also be instances of subclasses of `ebdb-db'.
Currently, the only subclass is `ebdb-db-file', though you can
create your own. When EBDB is loaded, the `ebdb-db-load' method
will be called on each of class instances."
:group 'ebdb-eieio
- :type 'string)
+ ;; Apparently we can't specify EBDB objects here.
+ :type '(choice (file :tag "File")
+ ; (ebdb-db :tag "EBDB database instance")
+ (repeat (file :tag "File")
+ ;; (choice (file :tag "File")
+ ;; (ebdb-db :tag "EBDB database instance"))
+ )))
(defcustom ebdb-auto-merge-records nil
"If t, EBDB will automatically merge multiple records with the
- [elpa] externals/ebdb updated (aac31a3 -> db53550), Eric Abrahamsen, 2017/10/22
- [elpa] externals/ebdb c9acc38 04/11: Add ebdb-org-field-tags to ebdb-hash-extra-predicates, Eric Abrahamsen, 2017/10/22
- [elpa] externals/ebdb eee0868 03/11: Downcase all-completions string when searching, Eric Abrahamsen, 2017/10/22
- [elpa] externals/ebdb fd66ed0 05/11: Add optional "shortcut" arg to ebdb-prompt-for-db, Eric Abrahamsen, 2017/10/22
- [elpa] externals/ebdb db53550 11/11: Protect against bug with timestamp/creation-dates, Eric Abrahamsen, 2017/10/22
- [elpa] externals/ebdb c56d9e2 02/11: Get ebdb-ispell working again, Eric Abrahamsen, 2017/10/22
- [elpa] externals/ebdb 121281d 01/11: Part one of migration from org-contacts, Eric Abrahamsen, 2017/10/22
- [elpa] externals/ebdb d4dbf34 07/11: New ebdb-record-change-name methods for strings, Eric Abrahamsen, 2017/10/22
- [elpa] externals/ebdb 59449b9 10/11: New defsubst ebdb-record-self, Eric Abrahamsen, 2017/10/22
- [elpa] externals/ebdb 2661406 09/11: Use cached record name string in cl-print-object, Eric Abrahamsen, 2017/10/22
- [elpa] externals/ebdb d806d7d 08/11: Compiler-inspired fixes, vol 335534,
Eric Abrahamsen <=
- [elpa] externals/ebdb 90ff5d1 06/11: New MUA command for toggling record layout, Eric Abrahamsen, 2017/10/22