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

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

[elpa] externals/ebdb 5e42dff 03/15: Forgot to pop-to-buffer to after cr


From: Eric Abrahamsen
Subject: [elpa] externals/ebdb 5e42dff 03/15: Forgot to pop-to-buffer to after creating citation buffer
Date: Thu, 22 Mar 2018 00:58:54 -0400 (EDT)

branch: externals/ebdb
commit 5e42dff0dfb4b207cbf7836107ec6adc979be661
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>

    Forgot to pop-to-buffer to after creating citation buffer
    
    * ebdb-com.el (ebdb-cite-records-ebdb): Not much use if you can't see
      it.
---
 ebdb-com.el | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/ebdb-com.el b/ebdb-com.el
index fb089c2..4789817 100644
--- a/ebdb-com.el
+++ b/ebdb-com.el
@@ -2171,12 +2171,14 @@ otherwise inline."
     current-prefix-arg
     (ebdb-do-records)
     (completing-read "Style: " '("org" "html" "message") nil t)))
-  (with-current-buffer (get-buffer-create "*EBDB Citation*")
-    (pcase style
-      ("org" (org-mode))
-      ("html" (html-mode))
-      (_ (message-mode)))
-    (ebdb-cite-records records arg)))
+  (let ((buf (get-buffer-create "*EBDB Citation*")))
+    (with-current-buffer buf
+      (pcase style
+       ("org" (org-mode))
+       ("html" (html-mode))
+       (_ (message-mode)))
+      (ebdb-cite-records records arg))
+    (pop-to-buffer buf)))
 
 ;;; completion
 



reply via email to

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