diff options
author | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2023-01-09 20:59:34 +1100 |
---|---|---|
committer | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2023-01-09 20:59:34 +1100 |
commit | a37171ea14bd727493188e3c753dd60580f563ce (patch) | |
tree | 11113ba426b07ca33bb92bed44aa7abb57e3ec82 | |
parent | eb8141cff000ce74a6aeb096a20cbaa9b92b8662 (diff) |
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.
-rw-r--r-- | lisp/mastodon-tl.el | 7 |
1 files 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) |