emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master eff6c6a: Don't allow message-newline-and-reformat t


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master eff6c6a: Don't allow message-newline-and-reformat to be run outside the body
Date: Thu, 26 Jan 2017 14:08:12 +0000 (UTC)

branch: master
commit eff6c6ac8503d44cf1d4cb2406fc57148b6a1844
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    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).
---
 lisp/gnus/message.el |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index 4f9dd09..043ebbc 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -3330,6 +3330,8 @@ of lines before the signature intact."
   "Insert four newlines, and then reformat if inside quoted text.
 Prefix arg means justify as well."
   (interactive (list (if current-prefix-arg 'full)))
+  (unless (message-in-body-p)
+    (error "This command only works in the body of the message"))
   (let (quoted point beg end leading-space bolp fill-paragraph-function)
     (setq point (point))
     (beginning-of-line)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]