From de033f831b10fa84b0ba36f067788d2c7587dc7a Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Wed, 31 Aug 2022 11:07:47 +0200 Subject: buffer-spec for search buffers (so following works) --- lisp/mastodon-search.el | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lisp/mastodon-search.el') diff --git a/lisp/mastodon-search.el b/lisp/mastodon-search.el index 8d450e3..10e12c3 100644 --- a/lisp/mastodon-search.el +++ b/lisp/mastodon-search.el @@ -103,6 +103,11 @@ QUERY is the string to search." (mastodon-mode) (let ((inhibit-read-only t)) (erase-buffer) + (setq mastodon-tl--buffer-spec + `(buffer-name ,buffer + endpoint ,(format "api/v2/search") + update-function + (lambda (toot) (message "Searched.")))) ;; user results: (insert (mastodon-tl--set-face (concat "\n ------------\n" -- cgit v1.2.3