branch: elpa/org-mime
commit 929e13b55d6f54c2f47266505eac92793704ede7
Author: Kristoffer Balintona <[email protected]>
Commit: Kristoffer Balintona <[email protected]>
fix: `switch-to-buffer` does not accept a window
Currently, we pass the return value of `display-buffer` to
`switch-to-buffer`. However, `switch-to-buffer` accepts a buffer,
whereas `display-buffer` returns a window.
Pass BUFFER directly to `switch-to-buffer` instead.
---
org-mime.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/org-mime.el b/org-mime.el
index 23bcd701efe..22239f57e56 100644
--- a/org-mime.el
+++ b/org-mime.el
@@ -943,7 +943,9 @@ Following headline properties can determine the mail
headers.
;; Display BUFFER
(if org-mime-obey-display-buffer-p
- (switch-to-buffer (display-buffer buffer))
+ (progn
+ (display-buffer buffer)
+ (switch-to-buffer buffer))
(delete-other-windows)
(org-switch-to-buffer-other-window buffer))))))