Commit 077222e0 authored by Katsumi Yamaoka's avatar Katsumi Yamaoka
Browse files

lisp/gnus/gnus-art.el (gnus-mm-display-part): Highlight header attachment buttons

parent 724ee6dc
2014-05-01 Katsumi Yamaoka <>
* gnus-art.el (gnus-mm-display-part):
Highlight header attachment buttons.
2014-04-30 Katsumi Yamaoka <>
* gnus-art.el (gnus-mm-display-part): Don't move point while toggling
......@@ -5673,15 +5673,27 @@ all parts."
(mm-handle-media-type handle))))))
(goto-char point)
;; Toggle the button appearance between `[button]...' and `[button]'.
(let ((end (next-single-property-change point 'gnus-data)))
(delete-region (previous-single-property-change end 'gnus-data) end))
handle id (list (mm-handle-displayed-p handle)))
(let ((pt (point)))
(let ((end (next-single-property-change point 'gnus-data))
(setq start (previous-single-property-change end 'gnus-data))
handle id (list (mm-handle-displayed-p handle)))
(setq end (point))
(if (search-backward "\n\n" nil t)
(goto-char pt)
(goto-char end)
;; We're in the article header.
(delete-char -1)))
(delete-char -1)
(dolist (ovl (gnus-overlays-in start (1- end)))
(gnus-overlay-put ovl 'gnus-button-attachment-extra t)
(gnus-overlay-put ovl 'face nil))
(let ((gnus-treatment-function-alist
(gnus-treat-article 'head)))))
(goto-char point)
(if (window-live-p window)
(select-window window)))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment