[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ebdb 62fcfcf 15/21: Add ebdb-save to write-contents-fun
From: |
Eric Abrahamsen |
Subject: |
[elpa] externals/ebdb 62fcfcf 15/21: Add ebdb-save to write-contents-functions in EBDB buffers |
Date: |
Sun, 17 Sep 2017 15:32:48 -0400 (EDT) |
branch: externals/ebdb
commit 62fcfcfdc4ba08f8b17e43799d1007a46dd966a3
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>
Add ebdb-save to write-contents-functions in EBDB buffers
* ebdb-com.el (ebdb-mode): As of Emacs 6db8491 this will be sufficient
to offer *EBDB* buffers for saving when running save-some-buffers.
Theoretically, we can also bind "s" to save-buffer now.
---
ebdb-com.el | 3 +++
1 file changed, 3 insertions(+)
diff --git a/ebdb-com.el b/ebdb-com.el
index 2f495b0..a3a4fe0 100644
--- a/ebdb-com.el
+++ b/ebdb-com.el
@@ -1048,6 +1048,9 @@ Derives from `special-mode'; the usual `special-mode'
bindings apply.
'(:eval (if (object-assoc t 'dirty ebdb-db-list) "**" "--")))
(set (make-local-variable 'revert-buffer-function)
'ebdb-redisplay-all-records)
+ ;; In newer Emacs, this will make EBDB buffers eligible for save by
+ ;; `save-some-buffers'.
+ (setq write-contents-functions (list #'ebdb-save))
(when ebdb-mail-alias-alist
(ebdb-mail-aliases))
(add-hook 'post-command-hook 'force-mode-line-update nil t))
- [elpa] externals/ebdb updated (cec392d -> c298037), Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 6b605a9 06/21: Hash records against their tag field tags, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 4206ccd 02/21: Don't unilaterally add to kill-emacs-hook, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 3311fc7 10/21: Add a dir file for the Info manual, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 62fcfcf 15/21: Add ebdb-save to write-contents-functions in EBDB buffers,
Eric Abrahamsen <=
- [elpa] externals/ebdb a22c983 16/21: Try different faces in EBDB buffers, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 13f680a 13/21: Part two of threaded version of ebdb-initialize, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 3a918eb 09/21: Provide better instructions for BBDB migration, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb cbb4cc1 20/21: More complete error handling for field insertion, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb c298037 21/21: Bump version for 0.3.2, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 18be9ad 04/21: Add ebdb-field-bank-account class, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb dc5d03e 01/21: Change behavior of ebdb-fmt-compose-field, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 9c0947c 05/21: Comment out some custom definitions for address field, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 4a332dc 03/21: Add defgeneric for ebdb-read, Eric Abrahamsen, 2017/09/17
- [elpa] externals/ebdb 767a9fa 07/21: Allow two kinds of searches on tags, Eric Abrahamsen, 2017/09/17