mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
emacs: fix notmuch-show-part-button to not include newline
This makes the button cleaner, so that it doesn't include the entire rest of the line that the button is on.
This commit is contained in:
parent
c62a0d016f
commit
da3e47e377
1 changed files with 17 additions and 12 deletions
|
@ -280,6 +280,8 @@ message at DEPTH in the current thread."
|
|||
'face 'message-mml)
|
||||
|
||||
(defun notmuch-show-insert-part-header (nth content-type declared-type &optional name comment)
|
||||
(let ((button))
|
||||
(setq button
|
||||
(insert-button
|
||||
(concat "[ "
|
||||
(if name (concat name ": ") "")
|
||||
|
@ -288,10 +290,13 @@ message at DEPTH in the current thread."
|
|||
(concat " (as " content-type ")")
|
||||
"")
|
||||
(or comment "")
|
||||
" ]\n")
|
||||
" ]")
|
||||
:type 'notmuch-show-part-button-type
|
||||
:notmuch-part nth
|
||||
:notmuch-filename name))
|
||||
(insert "\n")
|
||||
;; return button
|
||||
button))
|
||||
|
||||
;; Functions handling particular MIME parts.
|
||||
|
||||
|
|
Loading…
Reference in a new issue