[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ebdb b797e85 31/33: Make mail alias updating happen aut
From: |
Eric Abrahamsen |
Subject: |
[elpa] externals/ebdb b797e85 31/33: Make mail alias updating happen automatically |
Date: |
Sun, 3 Sep 2017 17:02:25 -0400 (EDT) |
branch: externals/ebdb
commit b797e858807bf866bae19069f3906cb54b404692
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>
Make mail alias updating happen automatically
* ebdb-com.el (ebdb-mode): Add it to the mode function.
* ebdb.org: Note the change in the manual.
---
ebdb-com.el | 17 +++++++++--------
ebdb.el | 2 +-
ebdb.info | 35 +++++++++++++++++------------------
ebdb.org | 7 ++++---
ebdb.texi | 6 +++---
5 files changed, 34 insertions(+), 33 deletions(-)
diff --git a/ebdb-com.el b/ebdb-com.el
index d5747f0..a6f0407 100644
--- a/ebdb-com.el
+++ b/ebdb-com.el
@@ -1034,13 +1034,11 @@ Derives from `special-mode'; the usual `special-mode'
bindings apply.
(ebdb-concat " " (elt ebdb-modeline-info 0)
(elt ebdb-modeline-info 1)))))
mode-line-modified
- ;; For the mode-line we want to be fast. So we skip the checks
- ;; performed by `ebdb-with-db-buffer'.
'(:eval (if (object-assoc t 'dirty ebdb-db-list) "**" "--")))
- ;; `ebdb-revert-buffer' acts on `ebdb-buffer'. Yet this command is usually
- ;; called from the *EBDB* buffer.
(set (make-local-variable 'revert-buffer-function)
'ebdb-redisplay-all-records)
+ (when ebdb-mail-alias-alist
+ (ebdb-mail-aliases))
(add-hook 'post-command-hook 'force-mode-line-update nil t))
@@ -2456,13 +2454,16 @@ If we are past `fill-column', wrap at the previous
comma."
;;;###autoload
(defun ebdb-mail-aliases (&optional noisy)
"Add aliases from the database to the global alias table.
-
-Give records a \"mail alias\" field to define an alias for that
-record.
+\\<ebdb-mode-map>Give records a \"mail alias\" field to define
+an alias for that record.
If multiple records in the database have the same mail alias,
then that alias expands to a comma-separated list of the mail addresses
-of all of these people."
+of all of these people.
+
+This function is automatically called each time an EBDB buffer is
+created. Alternately, use \\[ebdb-mail-aliases] in an *EBDB*
+buffer to force an update."
(interactive)
;; Build `mail-aliases' if not yet done.
diff --git a/ebdb.el b/ebdb.el
index b47301c..4f5545a 100644
--- a/ebdb.el
+++ b/ebdb.el
@@ -52,7 +52,7 @@
(require 'eieio-base)
(require 'eieio-opt)
-; pacify the compiler.
+;; Pacify the compiler.
(autoload 'widget-group-match "wid-edit")
(autoload 'ebdb-migrate-from-bbdb "ebdb-migrate")
(autoload 'eieio-customize-object "eieio-custom")
diff --git a/ebdb.info b/ebdb.info
index 6e9248a..cc54899 100644
--- a/ebdb.info
+++ b/ebdb.info
@@ -1232,9 +1232,8 @@ more than one. If multiple records have the same alias,
then entering
that alias in the “To:” or “Cc:” field of a message composition buffer
will expand to a comma-separated list of record addresses.
- At present, it’s necessary to manually parse existing aliases with
-the ‘A’ key in a *EBDB* buffer. This limitation will be removed in the
-future.
+ Mail aliases are updated every time an EBDB buffer is created. It’s
+also possible to force an update using the ‘A’ key in a *EBDB* buffer.
File: ebdb.info, Node: vCard Support, Next: Org Integration, Prev: Mail
Aliases, Up: Top
@@ -2162,21 +2161,21 @@ Node: Snarfing38614
Node: Internationalization40615
Node: Diary Integration43314
Node: Mail Aliases44179
-Node: vCard Support44900
-Node: Org Integration45399
-Node: Citing Records47297
-Node: Hacking EBDB48055
-Node: Field Classes50376
-Node: Init and Delete Methods53343
-Node: The Labeled Field Class54850
-Node: The Singleton Field Class55704
-Node: Actions56145
-Node: Custom Field Searching56817
-Node: Formatting in the EBDB Buffer59638
-Node: Writing Internationalization Libraries61661
-Node: Writing Integration For New MUAs66014
-Node: Article snarfing69433
-Node: Index70151
+Node: vCard Support44893
+Node: Org Integration45392
+Node: Citing Records47290
+Node: Hacking EBDB48048
+Node: Field Classes50369
+Node: Init and Delete Methods53336
+Node: The Labeled Field Class54843
+Node: The Singleton Field Class55697
+Node: Actions56138
+Node: Custom Field Searching56810
+Node: Formatting in the EBDB Buffer59631
+Node: Writing Internationalization Libraries61654
+Node: Writing Integration For New MUAs66007
+Node: Article snarfing69426
+Node: Index70144
End Tag Table
diff --git a/ebdb.org b/ebdb.org
index 812dcd5..46738cb 100644
--- a/ebdb.org
+++ b/ebdb.org
@@ -1141,9 +1141,10 @@ alias, then entering that alias in the "To:" or "Cc:"
field of a
message composition buffer will expand to a comma-separated list of
record addresses.
-At present, it's necessary to manually parse existing aliases with the
-{{{kbd(A)}}} key in a {{{buf(EBDB)}}} buffer. This limitation will be
-removed in the future.
+Mail aliases are updated every time an EBDB buffer is created. It's
+also possible to force an update using the {{{kbd(A)}}} key in a
+{{{buf(EBDB)}}} buffer.
+
* vCard Support
EBDB has rudimentary support for exporting to vCard format; this
functionality will be expanded in the future. After loading the
diff --git a/ebdb.texi b/ebdb.texi
index 69b3aa1..95a27dd 100644
--- a/ebdb.texi
+++ b/ebdb.texi
@@ -1346,9 +1346,9 @@ alias, then entering that alias in the ``To:'' or ``Cc:''
field of a
message composition buffer will expand to a comma-separated list of
record addresses.
-At present, it's necessary to manually parse existing aliases with the
address@hidden key in a *EBDB* buffer. This limitation will be
-removed in the future.
+Mail aliases are updated every time an EBDB buffer is created. It's
+also possible to force an update using the @kbd{A} key in a
+*EBDB* buffer.
@node vCard Support
@chapter vCard Support
- [elpa] externals/ebdb 70ef68e 22/33: Fix compiler warnings, (continued)
- [elpa] externals/ebdb 70ef68e 22/33: Fix compiler warnings, Eric Abrahamsen, 2017/09/03
- [elpa] externals/ebdb 886c134 27/33: Add new ebdb-field-mail-folder fieldclass, Eric Abrahamsen, 2017/09/03
- [elpa] externals/ebdb 823a7d4 29/33: Use value of ebdb-mua-folder-list in VM splitting, Eric Abrahamsen, 2017/09/03
- [elpa] externals/ebdb a5ffda9 33/33: Merge remote-tracking branch 'elpa/externals/ebdb', Eric Abrahamsen, 2017/09/03
- [elpa] externals/ebdb d6b9b77 06/33: Re-remove ebdb-vm, Eric Abrahamsen, 2017/09/03
- [elpa] externals/ebdb ea2a149 16/33: Add generic tags field, Eric Abrahamsen, 2017/09/03
- [elpa] externals/ebdb 7f9aded 20/33: Add to ebdb-db-list in ebdb-test-with-database, Eric Abrahamsen, 2017/09/03
- [elpa] externals/ebdb a4abcbc 24/33: Fix to internationalized ebdb-read for phones, Eric Abrahamsen, 2017/09/03
- [elpa] externals/ebdb ff3dec2 28/33: Use value of ebdb-mail-folder-list in Gnus splitting, Eric Abrahamsen, 2017/09/03
- [elpa] externals/ebdb 2ec37b9 32/33: Bump version to 0.3, Eric Abrahamsen, 2017/09/03
- [elpa] externals/ebdb b797e85 31/33: Make mail alias updating happen automatically,
Eric Abrahamsen <=
- [elpa] externals/ebdb 8868ceb 26/33: Remove texinfo manual dependency on texinfo+, Eric Abrahamsen, 2017/09/03