From a37171ea14bd727493188e3c753dd60580f563ce Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Mon, 9 Jan 2023 20:59:34 +1100 Subject: tl--get-buff-prop: don't error if we find nothing. that way we can call buffer-spec fetch funs without knowing if they're set. --- lisp/mastodon-tl.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el index 72cc4a1..5bd5963 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -1398,9 +1398,10 @@ Optionally get it for BUFFER." (defun mastodon-tl--get-buffer-property (property &optional buffer) "Get PROPERTY from `mastodon-tl--buffer-spec' in BUFFER or `current-buffer'." (with-current-buffer (or buffer (current-buffer)) - (or (plist-get mastodon-tl--buffer-spec property) - (error "Mastodon-tl--buffer-spec is not defined for buffer %s" - (or buffer (current-buffer)))))) + ;; (or + (plist-get mastodon-tl--buffer-spec property))) + ;; (error "Mastodon-tl--buffer-spec is not defined for buffer %s" + ;; (or buffer (current-buffer)))))) (defun mastodon-tl--set-buffer-spec (buffer endpoint update-function &optional link-header update-params) -- cgit v1.2.3