mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-23 07:19:15 +00:00
Tweak how `M-RET' in Message mode fills paragraphs
* lisp/gnus/message.el (message-newline-and-reformat): Pick up any longer white-space prefix before starting to fill (bug#43299). This fixes the problem of hitting M-RET on a line that's just ">".
This commit is contained in:
parent
da344e1884
commit
a4d37877f8
@ -3536,8 +3536,8 @@ Prefix arg means justify as well."
|
||||
(equal quoted (match-string 0)))
|
||||
(goto-char (match-end 0))
|
||||
(looking-at "[ \t]*")
|
||||
(if (> (length leading-space) (length (match-string 0)))
|
||||
(setq leading-space (match-string 0)))
|
||||
(when (< (length leading-space) (length (match-string 0)))
|
||||
(setq leading-space (match-string 0)))
|
||||
(forward-line 1))
|
||||
(setq end (point))
|
||||
(goto-char beg)
|
||||
|
Loading…
Reference in New Issue
Block a user