* mu4e-view: fill headers before display, so they don't run off the screen
This commit is contained in:
@ -137,17 +137,18 @@ marking if it still had that."
|
|||||||
(unless update
|
(unless update
|
||||||
(mu4e-view-mark-as-read-maybe)))))
|
(mu4e-view-mark-as-read-maybe)))))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
(defun mu4e-view-header (key val &optional dont-propertize-val)
|
(defun mu4e-view-header (key val &optional dont-propertize-val)
|
||||||
"Show header FIELD for MSG with KEY. ie. <KEY>: value-of-FIELD."
|
"Return header KEY with value VAL if VAL is non-nil. If
|
||||||
|
DONT-PROPERTIZE-VAL, do not add text-properties to VAL."
|
||||||
(if val
|
(if val
|
||||||
(concat
|
(with-temp-buffer
|
||||||
(propertize key 'face 'mu4e-view-header-key-face) ": "
|
(insert (propertize key 'face 'mu4e-view-header-key-face) ": "
|
||||||
(if dont-propertize-val
|
(if dont-propertize-val
|
||||||
val
|
val
|
||||||
(propertize val 'face 'mu4e-view-header-value-face))
|
(propertize val 'face 'mu4e-view-header-value-face)) "\n")
|
||||||
"\n")
|
(fill-region (point-min) (point-max))
|
||||||
|
(buffer-string))
|
||||||
""))
|
""))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user