diff options
author | Rahguzar <rahguzar@zohomail.eu> | 2024-01-06 12:32:57 +0100 |
---|---|---|
committer | Rahguzar <rahguzar@zohomail.eu> | 2024-01-06 12:32:57 +0100 |
commit | 445d176b2a593a87afd3f6bca717feba639dfbdc (patch) | |
tree | 5ae3cafa7cc412e1bd8b32b7e0a9477d732739f8 /lisp/mastodon-tl.el | |
parent | 4a8a102b3b4f8483af5b688e7ea480ff6b8dc2ed (diff) |
Replace 'switch-to-buffer' with 'display-buffer' or 'pop-to-buffer'
This allows user to customize how buffers get shown using
'display-buffer-alist'.
Also refactors mastodon-auth--show-notice.
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 561087e..d4f3d04 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -287,7 +287,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) @@ -296,7 +296,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) |