diff options
| author | Lars Ingebrigtsen | 2017-01-26 15:07:38 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2017-01-26 15:07:38 +0100 |
| commit | eff6c6ac8503d44cf1d4cb2406fc57148b6a1844 (patch) | |
| tree | d93f37c0ac4071f4bf27c01b40421c2f0d4d5bbb | |
| parent | b3a3ed526d2c490c9c5605707f0cd7bff3c88693 (diff) | |
| download | emacs-eff6c6ac8503d44cf1d4cb2406fc57148b6a1844.tar.gz emacs-eff6c6ac8503d44cf1d4cb2406fc57148b6a1844.zip | |
Don't allow message-newline-and-reformat to be run outside the body
* lisp/gnus/message.el (message-newline-and-reformat): Error
out if run outside the body of a message (bug#18820).
| -rw-r--r-- | lisp/gnus/message.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index 4f9dd093fa2..043ebbc579b 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -3330,6 +3330,8 @@ of lines before the signature intact." | |||
| 3330 | "Insert four newlines, and then reformat if inside quoted text. | 3330 | "Insert four newlines, and then reformat if inside quoted text. |
| 3331 | Prefix arg means justify as well." | 3331 | Prefix arg means justify as well." |
| 3332 | (interactive (list (if current-prefix-arg 'full))) | 3332 | (interactive (list (if current-prefix-arg 'full))) |
| 3333 | (unless (message-in-body-p) | ||
| 3334 | (error "This command only works in the body of the message")) | ||
| 3333 | (let (quoted point beg end leading-space bolp fill-paragraph-function) | 3335 | (let (quoted point beg end leading-space bolp fill-paragraph-function) |
| 3334 | (setq point (point)) | 3336 | (setq point (point)) |
| 3335 | (beginning-of-line) | 3337 | (beginning-of-line) |