diff options
author | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2023-03-14 22:04:39 +0100 |
---|---|---|
committer | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2023-03-14 22:04:39 +0100 |
commit | 5ae092746f711942c10e9f811bb15f16551bbfba (patch) | |
tree | f0b8180eda43afec4164e619f03205cfe8ca0e07 /lisp/mastodon-tl.el | |
parent | b9c46ac6e5a8043ad41f14e237195a6506619aee (diff) |
lsp corrections: lambdas, if to when, etc.
Diffstat (limited to 'lisp/mastodon-tl.el')
-rw-r--r-- | lisp/mastodon-tl.el | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el index 9c12f84..c969853 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -1274,9 +1274,7 @@ this just means displaying toot client." (alist-get 'title x)) options)) (options-number-seq (number-sequence 1 (length options))) - (options-numbers (mapcar (lambda(x) - (number-to-string x)) - options-number-seq)) + (options-numbers (mapcar #'number-to-string options-number-seq)) (options-alist (cl-mapcar 'cons options-numbers options-titles)) ;; we display both option number and the option title ;; but also store both as cons cell as cdr, as we need it below @@ -2084,9 +2082,7 @@ If ID, just return that toot." (mastodon-tl--set-face "[n/p - prev/next\n r - reschedule\n e/RET - edit toot\n c - cancel]\n\n" 'font-lock-comment-face)) - (mapc (lambda (x) - (mastodon-tl--insert-scheduled-toot x)) - scheduleds) + (mapc #'mastodon-tl--insert-scheduled-toot scheduleds) (goto-char (point-min)) (when json (mastodon-tl--goto-next-toot)))) |