diff options
| author | Katsumi Yamaoka | 2018-09-12 07:21:15 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2018-09-12 07:21:15 +0000 |
| commit | 9f58ed156974f6345a85da419c57c4235f549f2a (patch) | |
| tree | e9f63f7c20de35c391ebf17e1c50ec2cfbe4b6dc | |
| parent | 49886b9346eb20acc61a00419df5c94b46012a20 (diff) | |
| download | emacs-9f58ed156974f6345a85da419c57c4235f549f2a.tar.gz emacs-9f58ed156974f6345a85da419c57c4235f549f2a.zip | |
Don't highlight article if gnus-visual-p is nil (bug#32706)
* lisp/gnus/deuglify.el (gnus-outlook-display-article-buffer):
Don't highlight article if gnus-visual-p is nil (bug#32706).
| -rw-r--r-- | lisp/gnus/deuglify.el | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lisp/gnus/deuglify.el b/lisp/gnus/deuglify.el index d2bc87caa27..b09f89772aa 100644 --- a/lisp/gnus/deuglify.el +++ b/lisp/gnus/deuglify.el | |||
| @@ -299,8 +299,14 @@ It is run after `gnus-article-prepare-hook'." | |||
| 299 | ;; it. Calling `gnus-article-prepare-display' on an already | 299 | ;; it. Calling `gnus-article-prepare-display' on an already |
| 300 | ;; prepared article removes all MIME parts. I'm unsure whether | 300 | ;; prepared article removes all MIME parts. I'm unsure whether |
| 301 | ;; this is a bug or not. | 301 | ;; this is a bug or not. |
| 302 | (gnus-article-highlight t) | 302 | (when (gnus-visual-p 'article-highlight 'highlight) |
| 303 | (gnus-treat-article nil) | 303 | (gnus-article-highlight t)) |
| 304 | (save-excursion | ||
| 305 | (save-restriction | ||
| 306 | (widen) | ||
| 307 | (article-goto-body) | ||
| 308 | (narrow-to-region (point) (point-max)) | ||
| 309 | (gnus-treat-article nil))) | ||
| 304 | (gnus-run-hooks 'gnus-article-prepare-hook | 310 | (gnus-run-hooks 'gnus-article-prepare-hook |
| 305 | 'gnus-outlook-display-hook))) | 311 | 'gnus-outlook-display-hook))) |
| 306 | 312 | ||