diff options
| author | Katsumi Yamaoka | 2019-09-11 02:41:34 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2019-09-11 02:41:34 +0000 |
| commit | 4b9f9324a87388ceb7ce1359feb5686efcb2523e (patch) | |
| tree | d0b8b0fee2bc0b653d4715c3e8af47b4082fc961 | |
| parent | 3d442312889ef2d14c07282d0aff6199d00cc165 (diff) | |
| download | emacs-4b9f9324a87388ceb7ce1359feb5686efcb2523e.tar.gz emacs-4b9f9324a87388ceb7ce1359feb5686efcb2523e.zip | |
Create a new overlay used to mark Attachment header (bug#37370)
* lisp/gnus/gnus-art.el (gnus-mime-inline-part)
(gnus-mm-display-part, gnus-mime-buttonize-attachments-in-header):
Create a new overlay used to mark Attachment header instead of
using existing overlays.
| -rw-r--r-- | lisp/gnus/gnus-art.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 04cb087737f..eba66c1c3aa 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -5378,9 +5378,9 @@ Compressed files like .gz and .bz2 are decompressed." | |||
| 5378 | 'gnus-undeletable t)))) | 5378 | 'gnus-undeletable t)))) |
| 5379 | ;; We're in the article header. | 5379 | ;; We're in the article header. |
| 5380 | (delete-char -1) | 5380 | (delete-char -1) |
| 5381 | (dolist (ovl (overlays-in btn (point))) | 5381 | (let ((ovl (make-overlay btn (point)))) |
| 5382 | (overlay-put ovl 'gnus-button-attachment-extra t) | 5382 | (overlay-put ovl 'gnus-button-attachment-extra t) |
| 5383 | (overlay-put ovl 'face nil)) | 5383 | (overlay-put ovl 'evaporate t)) |
| 5384 | (save-restriction | 5384 | (save-restriction |
| 5385 | (message-narrow-to-field) | 5385 | (message-narrow-to-field) |
| 5386 | (let ((gnus-treatment-function-alist | 5386 | (let ((gnus-treatment-function-alist |
| @@ -5763,9 +5763,9 @@ all parts." | |||
| 5763 | 'gnus-undeletable t)))) | 5763 | 'gnus-undeletable t)))) |
| 5764 | ;; We're in the article header. | 5764 | ;; We're in the article header. |
| 5765 | (delete-char -1) | 5765 | (delete-char -1) |
| 5766 | (dolist (ovl (overlays-in point (point))) | 5766 | (let ((ovl (make-overlay point (point)))) |
| 5767 | (overlay-put ovl 'gnus-button-attachment-extra t) | 5767 | (overlay-put ovl 'gnus-button-attachment-extra t) |
| 5768 | (overlay-put ovl 'face nil)) | 5768 | (overlay-put ovl 'evaporate t)) |
| 5769 | (save-restriction | 5769 | (save-restriction |
| 5770 | (message-narrow-to-field) | 5770 | (message-narrow-to-field) |
| 5771 | (let ((gnus-treatment-function-alist | 5771 | (let ((gnus-treatment-function-alist |
| @@ -6379,9 +6379,9 @@ in the body. Use `gnus-header-face-alist' to highlight buttons." | |||
| 6379 | (insert "\n") | 6379 | (insert "\n") |
| 6380 | (end-of-line))) | 6380 | (end-of-line))) |
| 6381 | (insert "\n") | 6381 | (insert "\n") |
| 6382 | (dolist (ovl (overlays-in (point-min) (point))) | 6382 | (let ((ovl (make-overlay (point-min) (point)))) |
| 6383 | (overlay-put ovl 'gnus-button-attachment-extra t) | 6383 | (overlay-put ovl 'gnus-button-attachment-extra t) |
| 6384 | (overlay-put ovl 'face nil)) | 6384 | (overlay-put ovl 'evaporate t)) |
| 6385 | (let ((gnus-treatment-function-alist | 6385 | (let ((gnus-treatment-function-alist |
| 6386 | '((gnus-treat-highlight-headers | 6386 | '((gnus-treat-highlight-headers |
| 6387 | gnus-article-highlight-headers)))) | 6387 | gnus-article-highlight-headers)))) |