branch: elpa/org-mime
commit ffaad784a8597ee52842a578c01bd347d3e0281d
Merge: e37739d595a f3dfb50c530
Author: Chen Bin <[email protected]>
Commit: GitHub <[email protected]>

    Merge pull request #108 from krisbalintona/push-twrvrwqxzysm
    
    fix: Use `pop-to-buffer` to avoid redundancy
---
 org-mime.el | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/org-mime.el b/org-mime.el
index 22239f57e56..37a9016bfd1 100644
--- a/org-mime.el
+++ b/org-mime.el
@@ -943,9 +943,7 @@ Following headline properties can determine the mail 
headers.
 
       ;; Display BUFFER
       (if org-mime-obey-display-buffer-p
-          (progn
-            (display-buffer buffer)
-            (switch-to-buffer buffer))
+          (pop-to-buffer buffer)
         (delete-other-windows)
         (org-switch-to-buffer-other-window buffer))))))
 

Reply via email to