diff options
| author | marty hiatt <martianhiatus@riseup.net> | 2024-07-18 11:43:11 +0200 | 
|---|---|---|
| committer | marty hiatt <martianhiatus@riseup.net> | 2024-07-18 11:43:11 +0200 | 
| commit | 3f9b305b5f02954568ec7e7b95eb0653286ccf3a (patch) | |
| tree | 16745aad90161d6dc74f70ba94155ae555630b05 | |
| parent | 344da8f2f2a1dff0249bb5e8d73d088d2bd824e9 (diff) | |
flymake
| -rw-r--r-- | lisp/mastodon-tl.el | 8 | ||||
| -rw-r--r-- | lisp/mastodon-toot.el | 12 | 
2 files changed, 11 insertions, 9 deletions
| diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el index a0a0c18..cb7ccf1 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -89,6 +89,8 @@  (autoload 'mastodon-search--insert-heading "mastodon-search")  (autoload 'mastodon-media--process-full-sized-image-response "mastodon-media")  (autoload 'mastodon-search--trending-statuses "mastodon-search") +(autoload 'mastodon-search--format-heading "mastodon-search") +(autoload 'mastodon-toot--with-toot-item "mastodon-toot")  (defvar mastodon-toot--visibility)  (defvar mastodon-toot-mode) @@ -1371,7 +1373,7 @@ displayed when the duration is smaller than a minute)."                                       cell))                               options-alist)))      (if (null poll) -        (user-error "No poll here.") +        (user-error "No poll here")        (list         ;; var "option" = just the cdr, a cons of option number and desc         (cdr (assoc (completing-read "Poll option to vote for: " @@ -1383,7 +1385,7 @@ displayed when the duration is smaller than a minute)."    "If there is a poll at point, prompt user for OPTION to vote on it."    (interactive (mastodon-tl--read-poll-option))    (if (null (mastodon-tl--field 'poll (mastodon-tl--property 'item-json))) -      (user-error "No poll here.") +      (user-error "No poll here")      (let* ((toot (mastodon-tl--property 'item-json))             (poll (mastodon-tl--field 'poll toot))             (poll-id (alist-get 'id poll)) @@ -2030,7 +2032,7 @@ view all branches of a thread."  (defun mastodon-tl--thread (&optional id)    "Open thread buffer for toot at point or with ID."    (interactive) -  (mastodon-tl--with-toot-item +  (mastodon-toot--with-toot-item     (let* ((id (or id (mastodon-tl--property 'base-item-id :no-move)))            (type (mastodon-tl--field 'type (mastodon-tl--property 'item-json :no-move))))       (if (or (string= type "follow_request") diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el index 496f334..bb5a4c3 100644 --- a/lisp/mastodon-toot.el +++ b/lisp/mastodon-toot.el @@ -265,7 +265,7 @@ send.")  ;;; MACRO -(defmacro mastodon-tl--with-toot-item (&rest body) +(defmacro mastodon-toot--with-toot-item (&rest body)    "Execute BODY if we have a toot object at point.  Includes boosts, and notifications that display toots."    (declare (debug t)) @@ -370,7 +370,7 @@ boosting, or bookmarking toots."  (defun mastodon-toot--toggle-boost-or-favourite (type)    "Toggle boost or favourite of toot at `point'.  TYPE is a symbol, either `favourite' or `boost.'" -  (mastodon-tl--with-toot-item +  (mastodon-toot--with-toot-item     (let ((n-type (mastodon-tl--property 'notification-type :no-move)))       (if (or (equal n-type "follow")               (equal n-type "follow_request")) @@ -473,7 +473,7 @@ SUBTRACT means we are un-favouriting or unboosting, so we decrement."  (defun mastodon-toot--toggle-bookmark ()    "Bookmark or unbookmark toot at point."    (interactive) -  (mastodon-tl--with-toot-item +  (mastodon-toot--with-toot-item     (let ((n-type (mastodon-tl--property 'notification-type :no-move)))       (if (or (equal n-type "follow")               (equal n-type "follow_request")) @@ -521,7 +521,7 @@ SUBTRACT means we are un-favouriting or unboosting, so we decrement."  (defun mastodon-toot--list-toot-boosters-or-favers (&optional favourite)    "List the favouriters or boosters of toot at point.  With FAVOURITE, list favouriters, else list boosters." -  (mastodon-tl--with-toot-item +  (mastodon-toot--with-toot-item     (let* ((base-toot (mastodon-tl--property 'base-item-id))            (endpoint (if favourite "favourited_by" "reblogged_by"))            (url (mastodon-http--api (format "statuses/%s/%s" base-toot endpoint))) @@ -954,7 +954,7 @@ instance to edit a toot."  (defun mastodon-toot--edit-toot-at-point ()    "Edit the user's toot at point."    (interactive) -  (mastodon-tl--with-toot-item +  (mastodon-toot--with-toot-item     (let ((toot (or (mastodon-tl--property 'base-toot) ; fave/boost notifs                     (mastodon-tl--property 'item-json))))       (if (not (mastodon-toot--own-toot-p toot)) @@ -1180,7 +1180,7 @@ text of the toot being replied to in the compose buffer.  If the region is active, inject it into the reply buffer,  prefixed by >."    (interactive) -  (mastodon-tl--with-toot-item +  (mastodon-toot--with-toot-item     (let* ((quote (when (region-active-p)                     (buffer-substring (region-beginning)                                       (region-end)))) | 
