mu4e: fix emacs-29 bytecompiler warnings
Wrong single quotes.
This commit is contained in:
@ -70,11 +70,13 @@
|
||||
"A list of header fields to show in the headers buffer.
|
||||
Each element has the form (HEADER . WIDTH), where HEADER is one of
|
||||
the available headers (see `mu4e-header-info') and WIDTH is the
|
||||
respective width in characters. A width of `nil' means
|
||||
'unrestricted', and this is best reserved for the rightmost (last)
|
||||
field. Note that emacs may become very slow with excessively long
|
||||
lines (1000s of characters), so if you regularly get such messages,
|
||||
you want to avoid fields with `nil' altogether."
|
||||
respective width in characters.
|
||||
|
||||
A width of nil means \"unrestricted\", and this is best reserved
|
||||
for the rightmost (last) field. Note that emacs may become very
|
||||
slow with excessively long lines (1000s of characters), so if you
|
||||
regularly get such messages, you want to avoid fields with nil
|
||||
altogether."
|
||||
:type `(repeat (cons (choice ,@(mapcar (lambda (h)
|
||||
(list 'const :tag
|
||||
(plist-get (cdr h) :help)
|
||||
@ -138,17 +140,17 @@ next mail after marking a message in header view."
|
||||
|
||||
|
||||
(defvar mu4e-headers-hide-predicate nil
|
||||
"Predicate function applied to headers before they are shown;
|
||||
if function is nil or evaluates to nil, show the header,
|
||||
otherwise don't. function takes one parameter MSG, which is the
|
||||
message plist for the message to be hidden or not.
|
||||
"Predicate function to hide matching heasders.
|
||||
If the function evaluates to non-nil when applied a a message
|
||||
plist, do not show the corresponding header. The function takes
|
||||
one parameter MSG, which is the message plist for the message to
|
||||
be hidden or not.
|
||||
|
||||
Example that hides all trashed messages:
|
||||
|
||||
Example that hides all 'trashed' messages:
|
||||
(setq mu4e-headers-hide-predicate
|
||||
(lambda (msg)
|
||||
(member 'trashed (mu4e-message-field msg :flags))))
|
||||
|
||||
Note that this is merely a display filter.")
|
||||
(member \='trashed (mu4e-message-field msg :flags)))).")
|
||||
|
||||
(defcustom mu4e-headers-visible-flags
|
||||
'(draft flagged new passed replied trashed attach encrypted signed list personal)
|
||||
@ -507,10 +509,10 @@ while our display may be different)."
|
||||
|
||||
(defun mu4e~headers-from-or-to (msg)
|
||||
"Get the From: address from MSG if not one of user's; otherwise get To:.
|
||||
When the from address for message MSG is one of the the user's addresses,
|
||||
\(as per `mu4e-personal-address-p'), show the To address;
|
||||
otherwise ; show the from address; prefixed with the appropriate
|
||||
`mu4e-headers-from-or-to-prefix'."
|
||||
When the from address for message MSG is one of the the user's
|
||||
addresses, (as per `mu4e-personal-address-p'), show the To
|
||||
address. Otherwise, show the From address, prefixed with the
|
||||
appropriate `mu4e-headers-from-or-to-prefix'."
|
||||
(let* ((from1 (car-safe (mu4e-message-field msg :from)))
|
||||
(from1-addr (and from1 (mu4e-contact-email from1)))
|
||||
(is-user (and from1-addr (mu4e-personal-address-p from1-addr))))
|
||||
@ -520,12 +522,11 @@ otherwise ; show the from address; prefixed with the appropriate
|
||||
(concat (car mu4e-headers-from-or-to-prefix)
|
||||
(mu4e~headers-contact-str (mu4e-message-field msg :from))))))
|
||||
|
||||
| ||||