From ac9b4703e1944a9ac4887ea7a9af6b9659e4600c Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Tue, 18 Mar 2014 16:49:24 -0400 Subject: [PATCH] * lisp/simple.el (newline-and-indent): Do autofill. Fixes: debbugs:17031 --- lisp/ChangeLog | 4 ++++ lisp/simple.el | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9bf92ae1b58..70b557ad36b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2014-03-18 Stefan Monnier + + * simple.el (newline-and-indent): Do autofill (bug#17031). + 2014-03-18 Dmitry Gutov * newcomment.el (comment-normalize-vars): Only add escaping check diff --git a/lisp/simple.el b/lisp/simple.el index d84708217b4..09a9d45c43a 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -611,7 +611,7 @@ In some text modes, where TAB inserts a tab, this command indents to the column specified by the function `current-left-margin'." (interactive "*") (delete-horizontal-space t) - (newline 1 t) + (newline nil t) (indent-according-to-mode)) (defun reindent-then-newline-and-indent () -- 2.39.2