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

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

[elpa] externals/ebdb 41bc172 1/2: Use with-temp-buffer when formatting


From: Eric Abrahamsen
Subject: [elpa] externals/ebdb 41bc172 1/2: Use with-temp-buffer when formatting multiline records
Date: Sat, 29 Jun 2019 13:19:22 -0400 (EDT)

branch: externals/ebdb
commit 41bc172b5121e1e54ef696e92a65382ed299c87b
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>

    Use with-temp-buffer when formatting multiline records
    
    Fixes #79
    
    * ebdb-com.el (ebdb-fmt-compose-fields): Looks like this might have
      been leftover from testing.
---
 ebdb-com.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/ebdb-com.el b/ebdb-com.el
index b0af3a6..d428d22 100644
--- a/ebdb-com.el
+++ b/ebdb-com.el
@@ -739,8 +739,7 @@ string."
           (paragraph-start "[ \t]* [[:alpha:] ]+: ")
           (fill-prefix (make-string (+ 3 max-label-width) ? ))
           (fill-column (window-body-width)))
-      (with-current-buffer (get-buffer-create "format test")
-       (erase-buffer)
+      (with-temp-buffer
        (mapc
         (pcase-lambda (`(,label . ,fields))
           (let ((start (point)))



reply via email to

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