mu4e: fix some compiler warnings

This commit is contained in:
Dirk-Jan C. Binnema 2021-10-17 13:26:38 +03:00
parent 5dfd6afdf0
commit 7156ff7fac
2 changed files with 8 additions and 6 deletions

View File

@ -347,16 +347,17 @@ one. Code borrowed from `message-shorten-1'."
(defun mu4e~fontify-signature () (defun mu4e~fontify-signature ()
"Give the message signatures a distinctive color. This is used in "Give the message signatures a distinctive color. This is used
the view and compose modes and will color each signature in digest messages adhering to RFC 1153." in the view and compose modes and will color each signature in
digest messages adhering to RFC 1153."
(let ((inhibit-read-only t)) (let ((inhibit-read-only t))
(save-excursion (save-excursion
;; give the footer a different color... ;; give the footer a different color...
(goto-char (point-min)) (goto-char (point-min))
(while (re-search-forward "^-- *$" nil t) (while (re-search-forward "^-- *$" nil t)
(let ((p (point)) (let ((p (point))
(end (or (end (or ;; 30 by RFC1153
(re-search-forward "\\(^-\\{30\\}.*$\\)" nil t) ;; 30 by RFC1153 (re-search-forward "\\(^-\\{30\\}.*$\\)" nil t)
(point-max)))) (point-max))))
(add-text-properties p end '(face mu4e-footer-face))))))) (add-text-properties p end '(face mu4e-footer-face)))))))

View File

@ -1,4 +1,4 @@
;;; mu4e-message.el -- part of mu4e, the mu mail user agent -*- lexical-binding: t -*- ;;; mu4e-message.el -- part of mu4e -*- lexical-binding: t -*-
;; Copyright (C) 2012-2020 Dirk-Jan C. Binnema ;; Copyright (C) 2012-2020 Dirk-Jan C. Binnema
@ -97,7 +97,8 @@ Like `mu4e-message-field-nil', but will sanitize nil values:
- all string field except body-txt/body-html: nil -> \"\" - all string field except body-txt/body-html: nil -> \"\"
- numeric fields + dates : nil -> 0 - numeric fields + dates : nil -> 0
- all others : return the value - all others : return the value
Thus, function will return nil for empty lists, non-existing body-txt or body-html." Thus, function will return nil for empty lists, non-existing body-txt
or body-html."
(let ((val (mu4e-message-field-raw msg field))) (let ((val (mu4e-message-field-raw msg field)))
(cond (cond
(val (val