diff options
| author | Richard M. Stallman | 2012-09-17 07:41:39 -0400 |
|---|---|---|
| committer | Richard M. Stallman | 2012-09-17 07:41:39 -0400 |
| commit | cdfca592b027544972e92c7d0ae804581e925433 (patch) | |
| tree | b0e9db78ca6b9329718912151109ddc4df4a073b | |
| parent | 2e8efb2f47b90edd393bde33bf048333b3bde279 (diff) | |
| download | emacs-cdfca592b027544972e92c7d0ae804581e925433.tar.gz emacs-cdfca592b027544972e92c7d0ae804581e925433.zip | |
message-in-body-p should not alter anything.
| -rw-r--r-- | lisp/gnus/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/gnus/message.el | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 924e8ea95d8..45f23a6d99c 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2012-09-17 Richard Stallman <rms@gnu.org> | 1 | 2012-09-17 Richard Stallman <rms@gnu.org> |
| 2 | 2 | ||
| 3 | * message.el (message-in-body-p): Don't set mark or modify buffer. | ||
| 4 | |||
| 3 | * mml.el (mml-attach-file): Doc fix. | 5 | * mml.el (mml-attach-file): Doc fix. |
| 4 | (mml-attach-external, mml-attach-buffer, mml-attach-file): | 6 | (mml-attach-external, mml-attach-buffer, mml-attach-file): |
| 5 | Set mail-encode-mml when in Mail mode. | 7 | Set mail-encode-mml when in Mail mode. |
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index 42911ce0648..5360f008432 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -3160,8 +3160,12 @@ M-RET `message-newline-and-reformat' (break the line and reformat)." | |||
| 3160 | 3160 | ||
| 3161 | (defun message-in-body-p () | 3161 | (defun message-in-body-p () |
| 3162 | "Return t if point is in the message body." | 3162 | "Return t if point is in the message body." |
| 3163 | (let ((body (save-excursion (message-goto-body)))) | 3163 | (>= (point) |
| 3164 | (>= (point) body))) | 3164 | (save-excursion |
| 3165 | (goto-char (point-min)) | ||
| 3166 | (or (search-forward (concat "\n" mail-header-separator "\n") nil t) | ||
| 3167 | (search-forward-regexp "[^:]+:\\([^\n]\\|\n[ \t]\\)+\n\n" nil t)) | ||
| 3168 | (point)))) | ||
| 3165 | 3169 | ||
| 3166 | (defun message-goto-eoh () | 3170 | (defun message-goto-eoh () |
| 3167 | "Move point to the end of the headers." | 3171 | "Move point to the end of the headers." |