branch: externals/ebdb
commit f987d4677922d5ed23e8b8671179e0fbc726474b
Author: Eric Abrahamsen <[email protected]>
Commit: Eric Abrahamsen <[email protected]>

    Fix buffer modification call
    
    * ebdb-com.el (ebdb-create-record): Same error I made on the other
      end, un-setting the modification flag.
---
 ebdb-com.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/ebdb-com.el b/ebdb-com.el
index 1a0b841..8e595cf 100644
--- a/ebdb-com.el
+++ b/ebdb-com.el
@@ -1584,8 +1584,9 @@ in `ebdb-db-list', using its default record class.  Use
         (run-hook-with-args 'ebdb-after-change-hook record)
         (ebdb-display-records (list record) ebdb-default-multiline-formatter t)
         (dolist (b (buffer-list))
-          (when (derived-mode-p 'ebdb-mode)
-            (set-buffer-modified-p t))))
+          (with-current-buffer b
+           (when (derived-mode-p 'ebdb-mode)
+             (set-buffer-modified-p t)))))
      (ebdb-readonly-db
       (message "%s is read-only" (ebdb-string db)))
      (ebdb-unsynced-db

Reply via email to