From 1e2fd43dbc1f6a4dbea74900ed67e9f328798603 Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Sun, 5 Mar 2023 13:45:16 +0100 Subject: view-instance: include domain in buffer name --- lisp/mastodon-tl.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lisp') 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)) -- cgit v1.2.3