mirror of https://github.com/djcb/mu.git
mu4e: avoid trouble with truncate-string-to-width
Treatment of the 'ellipsis' parameter is a bit unclear, gave errors in some cases. Fixes #1716
This commit is contained in:
parent
cfb59e36b0
commit
b672f6bc1d
|
@ -603,9 +603,7 @@ buffers; lets remap its faces so it uses the ones for mu4e."
|
||||||
(forward "*forward*")
|
(forward "*forward*")
|
||||||
(otherwise "*draft*")))))
|
(otherwise "*draft*")))))
|
||||||
(rename-buffer (generate-new-buffer-name
|
(rename-buffer (generate-new-buffer-name
|
||||||
(truncate-string-to-width str
|
(truncate-string-to-width str mu4e~compose-buffer-max-name-length)
|
||||||
mu4e~compose-buffer-max-name-length
|
|
||||||
nil nil t)
|
|
||||||
(buffer-name)))))
|
(buffer-name)))))
|
||||||
|
|
||||||
(defun mu4e-compose-crypto-message (parent compose-type)
|
(defun mu4e-compose-crypto-message (parent compose-type)
|
||||||
|
|
|
@ -681,7 +681,7 @@ found."
|
||||||
(defun mu4e~headers-field-truncate-to-width (_msg _field val width)
|
(defun mu4e~headers-field-truncate-to-width (_msg _field val width)
|
||||||
"Truncate VAL to WIDTH."
|
"Truncate VAL to WIDTH."
|
||||||
(if width
|
(if width
|
||||||
(truncate-string-to-width val width 0 ?\s t)
|
(truncate-string-to-width val width 0 ?\s truncate-string-ellipsis)
|
||||||
val))
|
val))
|
||||||
|
|
||||||
(defvar mu4e~headers-field-handler-functions
|
(defvar mu4e~headers-field-handler-functions
|
||||||
|
@ -1032,7 +1032,7 @@ after the end of the search results."
|
||||||
(concat
|
(concat
|
||||||
(propertize
|
(propertize
|
||||||
(if width
|
(if width
|
||||||
(truncate-string-to-width name width 0 ?\s t)
|
(truncate-string-to-width name width 0 ?\s truncate-string-ellipsis)
|
||||||
name)
|
name)
|
||||||
'face (when arrow 'bold)
|
'face (when arrow 'bold)
|
||||||
'help-echo help
|
'help-echo help
|
||||||
|
|
Loading…
Reference in New Issue