From 901da7f72221be31109cd4c47a31fe4314c6a6f2 Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Sat, 15 Jun 2024 12:44:52 +0200 Subject: with-mastodon-buffer : switch buffer after body --- lisp/mastodon-tl.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lisp/mastodon-tl.el') diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el index c330dbd..3611d1c 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -325,10 +325,11 @@ than `pop-to-buffer'." (erase-buffer) (funcall ,mode-fun) (remove-overlays) ; video overlays + ,@body + ;; return result of switching buffer: (if ,other-window (switch-to-buffer-other-window ,buffer) - (pop-to-buffer ,buffer '(display-buffer-same-window))) - ,@body))) + (pop-to-buffer ,buffer '(display-buffer-same-window)))))) (defmacro mastodon-tl--do-if-item (&rest body) "Execute BODY if we have an item at point." -- cgit v1.2.3