diff options
author | martianh <martianh@noreply.codeberg.org> | 2024-02-08 08:04:48 +0000 |
---|---|---|
committer | martianh <martianh@noreply.codeberg.org> | 2024-02-08 08:04:48 +0000 |
commit | 51132d08682b7b13473d24a4bf60417541905c81 (patch) | |
tree | 201cc33faec6c856418fc5565d3b81892ad4d394 /lisp/mastodon-tl.el | |
parent | a01eec0d57ed64f8a83784cd48e44fc2961e0d64 (diff) | |
parent | 2e6bcd41a9bb5953b20758ada8cec2b4ff8e9b4f (diff) |
Merge pull request 'Use display-buffer to allow customization' (#522) from rahguzar/mastodon.el:display-buffer into develop
Reviewed-on: https://codeberg.org/martianh/mastodon.el/pulls/522
Diffstat (limited to 'lisp/mastodon-tl.el')
-rw-r--r-- | lisp/mastodon-tl.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el index d462918..d21edaf 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -292,7 +292,7 @@ It is active where point is placed by `mastodon-tl--goto-next-item.'") "Evaluate BODY in a new or existing buffer called BUFFER. MODE-FUN is called to set the major mode. OTHER-WINDOW means call `switch-to-buffer-other-window' rather -than `switch-to-buffer'." +than `pop-to-buffer'." (declare (debug t) (indent 3)) `(with-current-buffer (get-buffer-create ,buffer) @@ -301,7 +301,7 @@ than `switch-to-buffer'." (funcall ,mode-fun) (if ,other-window (switch-to-buffer-other-window ,buffer) - (switch-to-buffer ,buffer)) + (pop-to-buffer ,buffer '(display-buffer-same-window))) ,@body))) (defmacro mastodon-tl--do-if-item (&rest body) |