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.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.el')
-rw-r--r-- | lisp/mastodon.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/mastodon.el b/lisp/mastodon.el index bac4d67..c9c3b64 100644 --- a/lisp/mastodon.el +++ b/lisp/mastodon.el @@ -289,7 +289,7 @@ See `mastodon-toot-display-orig-in-reply-buffer'.") (buffer-list))))) ; catch any other masto buffer (mastodon-return-credential-account :force) (if buffer - (switch-to-buffer buffer) + (display-buffer buffer) (mastodon-tl--get-home-timeline) (message "Loading Mastodon account %s on %s..." (mastodon-auth--user-acct) @@ -335,7 +335,7 @@ from the server and load anew." "*mastodon-notifications*"))) (if (and (not force) (get-buffer buffer)) - (progn (switch-to-buffer buffer) + (progn (display-buffer buffer) (mastodon-tl--update)) (message "Loading your notifications...") (mastodon-tl--init-sync (or buffer-name "notifications") |