branch: externals/ebdb
commit 4a78f5826b5e0f257f978980e9ac0d9e73d35588
Author: Eric Abrahamsen <e...@ericabrahamsen.net>
Commit: Eric Abrahamsen <e...@ericabrahamsen.net>

    Fix redisplay in ebdb-with-record-edits
    
    * ebdb-com.el (ebdb-with-record-edits): Redisplay in all EBDB buffers
      if the current buffer isn't in ebdb-mode. Mostly this affects using
      the customize interface to edit field data, because this macro is
      then called outside of the EBDB buffer.
---
 ebdb-com.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/ebdb-com.el b/ebdb-com.el
index d428d22..73e8ceb 100644
--- a/ebdb-com.el
+++ b/ebdb-com.el
@@ -1668,7 +1668,10 @@ runs `ebdb-after-change-hook', and redisplays the 
record."
           (with-current-buffer b
             (when (derived-mode-p 'ebdb-mode)
               (set-buffer-modified-p t))))
-        (ebdb-redisplay-records ,record 'reformat))
+        (ebdb-redisplay-records ,record 'reformat
+                                ;; If we're not in ebdb-mode,
+                                ;; redisplay in all EBDB buffers.
+                                (null (derived-mode-p 'ebdb-mode))))
      (ebdb-unsynced-db
       (let ((db (cadr err)))
        (ebdb-reload-database db)

Reply via email to