]> git.eshelyaron.com Git - emacs.git/commit
mpc.el: Misc tweaks.
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 17 Oct 2024 16:38:18 +0000 (12:38 -0400)
committerEshel Yaron <me@eshelyaron.com>
Thu, 17 Oct 2024 18:52:29 +0000 (20:52 +0200)
commit598ed8adc367144d0fd2eb7f86e5d11bce64ebca
tree6621257ee17f501eb196a083114effacb1786bbe
parent6cadabfd28326ec266f93c140b4632a75fbb210b
mpc.el: Misc tweaks.

* lisp/mpc.el: Require `cl-lib` at run-time.
Don't require `subr-x` any more.
(mpc-status-callbacks): Improve docstring.
(mpc-cover-image-find): Avoid `and-let*`.
(mpc-cover-image-p): Use `member-ignore-case` to recover the
behavior before last patch.
(mpc-cover-image-find, mpc-cover-image-p): Move to later in the
file to avoid compiler warning.
(mpc-format, mpc-notifications-title, mpc-notifications-body):
Tweak docstring.
(mpc--notifications-format): Create only one temp buffer and use
the faster `cl-some` since we know the arg is a list.
(mpc-notifications-notify): Prefer `when-let*` since all the other
`*-let` we use are also of the `let*`family.

(cherry picked from commit 4690f2f44d38d64d8ebfea98c085844a5723df0f)
lisp/mpc.el