[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/mastodon 4e19f18a1a 03/16: apply not cl-reduce to find lon
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/mastodon 4e19f18a1a 03/16: apply not cl-reduce to find longest item for padding |
Date: |
Wed, 27 Mar 2024 10:00:30 -0400 (EDT) |
branch: elpa/mastodon
commit 4e19f18a1a6d5bd60673013751b4332be0ea445c
Author: marty hiatt <martianhiatus@riseup.net>
Commit: marty hiatt <martianhiatus@riseup.net>
apply not cl-reduce to find longest item for padding
---
lisp/mastodon-profile.el | 2 +-
lisp/mastodon-toot.el | 2 +-
lisp/mastodon-views.el | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lisp/mastodon-profile.el b/lisp/mastodon-profile.el
index 5929f1ca12..55041c9de2 100644
--- a/lisp/mastodon-profile.el
+++ b/lisp/mastodon-profile.el
@@ -524,7 +524,7 @@ FIELDS means provide a fields vector fetched by other
means."
(defun mastodon-profile--fields-insert (fields)
"Format and insert field pairs (a.k.a profile metadata) in FIELDS."
(let* ((car-fields (mapcar #'car fields))
- (left-width (cl-reduce #'max (mapcar #'length car-fields))))
+ (left-width (apply #'max (mapcar #'length car-fields))))
(mapconcat (lambda (field)
(mastodon-tl--render-text
(concat
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el
index 82ad03b7ad..7d2e467a64 100644
--- a/lisp/mastodon-toot.el
+++ b/lisp/mastodon-toot.el
@@ -1374,7 +1374,7 @@ LENGTH is the maximum character length allowed for a poll
option."
collect (read-string
(format "Poll option [%s/%s] [max %s
chars]: "
x count length))))
- (longest (cl-reduce #'max (mapcar #'length choices))))
+ (longest (apply #'max (mapcar #'length choices))))
(if (> longest length)
(progn
(message "looks like you went over the max length. Try again.")
diff --git a/lisp/mastodon-views.el b/lisp/mastodon-views.el
index d0f310b78c..e9e89c0fd3 100644
--- a/lisp/mastodon-views.el
+++ b/lisp/mastodon-views.el
@@ -852,7 +852,7 @@ MISSKEY means the instance is a Misskey or derived server."
IND is the optional indentation level to print at."
(let* ((cars (mapcar (lambda (x) (symbol-name (car x)))
response))
- (pad (1+ (cl-reduce #'max (mapcar #'length cars)))))
+ (pad (1+ (apply #'max (mapcar #'length cars)))))
(while response
(let ((el (pop response)))
(cond
- [nongnu] elpa/mastodon updated (90aeac6080 -> d54aa9aa3e), ELPA Syncer, 2024/03/27
- [nongnu] elpa/mastodon 1454c2253d 15/16: docstrings - reduce explicit refs to Mastodon itself., ELPA Syncer, 2024/03/27
- [nongnu] elpa/mastodon 79a3f3534b 05/16: process-full-sized-image-response - inhibit read only, ELPA Syncer, 2024/03/27
- [nongnu] elpa/mastodon a55db10550 10/16: reply when replying: prompt to either nuke existing or abort, ELPA Syncer, 2024/03/27
- [nongnu] elpa/mastodon 4e19f18a1a 03/16: apply not cl-reduce to find longest item for padding,
ELPA Syncer <=
- [nongnu] elpa/mastodon d54aa9aa3e 16/16: Merge branch 'develop', ELPA Syncer, 2024/03/27
- [nongnu] elpa/mastodon 71b92fdd9c 07/16: media: call image-transform-fit-both in masto-image buf, ELPA Syncer, 2024/03/27
- [nongnu] elpa/mastodon 3711c59984 09/16: toot-compose: only call mode funs if not buffer-exists, ELPA Syncer, 2024/03/27
- [nongnu] elpa/mastodon 3c1d3150e1 12/16: PUT attachment alt-text in media upload callback. (pleroma), ELPA Syncer, 2024/03/27
- [nongnu] elpa/mastodon 9249cda2ff 11/16: let bind a setq'd var to keep compiler happy, ELPA Syncer, 2024/03/27
- [nongnu] elpa/mastodon 21d8771fea 01/16: cmd index, ELPA Syncer, 2024/03/27
- [nongnu] elpa/mastodon 7384db8e3a 06/16: process-full-sized-image-response - credit rahguzar, ELPA Syncer, 2024/03/27
- [nongnu] elpa/mastodon 6935c92902 02/16: scale full size image to window-width. FIX #542., ELPA Syncer, 2024/03/27
- [nongnu] elpa/mastodon 7df610ba70 14/16: condition case for lingva translations, ELPA Syncer, 2024/03/27
- [nongnu] elpa/mastodon 7d0a20ac0c 04/16: media: rewrite process-full-sized-image-response, ELPA Syncer, 2024/03/27