diff options
author | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2023-03-05 13:45:16 +0100 |
---|---|---|
committer | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2023-03-05 13:45:46 +0100 |
commit | 1e2fd43dbc1f6a4dbea74900ed67e9f328798603 (patch) | |
tree | dcc2a12eb26184027057157c9802aa7b865be0c8 /lisp | |
parent | 6eb7c27bef937ec76f3dba0ae19b57de4561bf8f (diff) |
view-instance: include domain in buffer name
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/mastodon-tl.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el index 8197315..b18ddc0 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -2341,11 +2341,13 @@ INSTANCE is an instance domain name." :vector))) (mastodon-tl--instance-response-fun response brief))))) -(defun mastodon-tl--instance-response-fun (response brief) +(defun mastodon-tl--instance-response-fun (response brief instance) "Display instance description RESPONSE in a new buffer. BRIEF means to show fewer details." (when response - (let ((buf (get-buffer-create "*mastodon-instance*"))) + (let ((domain (url-file-nondirectory instance)) + (buf (get-buffer-create + (format "*mastodon-instance-%s*" domain)))) (with-current-buffer buf (switch-to-buffer-other-window buf) (let ((inhibit-read-only t)) |