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

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

[elpa] externals/ebdb 2a17bb6 03/17: Set up EBDB buffers to offer save o


From: Eric Abrahamsen
Subject: [elpa] externals/ebdb 2a17bb6 03/17: Set up EBDB buffers to offer save on save-some-buffers
Date: Tue, 26 Sep 2017 17:15:32 -0400 (EDT)

branch: externals/ebdb
commit 2a17bb6d3e4d5f78339c8b8f44eb3a77c3775024
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>

    Set up EBDB buffers to offer save on save-some-buffers
    
    * ebdb-com.el (ebdb-mode): As of around now, `save-some-buffers' will
      accept for an `always' value for `buffer-offer-save'.
---
 ebdb-com.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ebdb-com.el b/ebdb-com.el
index c33de0e..0723d2e 100644
--- a/ebdb-com.el
+++ b/ebdb-com.el
@@ -1050,7 +1050,8 @@ Derives from `special-mode'; the usual `special-mode' 
bindings apply.
        '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))
+  (add-hook 'write-contents-functions #'ebdb-save)
+  (setq buffer-offer-save 'always)
   (when ebdb-mail-alias-alist
     (ebdb-mail-aliases))
   (add-hook 'post-command-hook 'force-mode-line-update nil t))



reply via email to

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