summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-04-16 04:09:25 +0000
committerRichard M. Stallman <rms@gnu.org>1997-04-16 04:09:25 +0000
commitcbb58cb08c9a08b8b2f425f27d7d00b6b6e5be35 (patch)
treee175b9bea4c24ea0fc4087c593bb557c88993435
parent6889ee6a2e59aa87df996c925a37a7d4cbb33211 (diff)
downloademacs-cbb58cb08c9a08b8b2f425f27d7d00b6b6e5be35.tar.gz
(hilit-rehighlight-message): Respect mail-mode header/body separation line.
-rw-r--r--lisp/hilit19.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/hilit19.el b/lisp/hilit19.el
index 9694d7dd0c3..941e797d2da 100644
--- a/lisp/hilit19.el
+++ b/lisp/hilit19.el
@@ -786,7 +786,9 @@ non-nil."
"Highlight a buffer containing a news article or mail message."
(save-excursion
(goto-char (point-min))
- (re-search-forward "^$" nil 'noerr)
+ ;; find separation between headers and body (either a blank line or
+ ;; the message separator line in mail-mode)
+ (re-search-forward "^\\(\\|--text follows this line--\\)$" nil 'noerr)
(hilit-unhighlight-region (point-min) (point-max) quietly)
(hilit-highlight-region (point-min) (point) 'msg-header quietly)
(hilit-highlight-region (point) (point-max) 'msg-body quietly)))