aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2014-03-18 16:49:24 -0400
committerStefan Monnier2014-03-18 16:49:24 -0400
commitac9b4703e1944a9ac4887ea7a9af6b9659e4600c (patch)
treebf45e095a96170e9b539eba2ab97f0688bb73f4f
parent475dcfabab36c0e4c4df4c5ee274e915a7007d2e (diff)
downloademacs-ac9b4703e1944a9ac4887ea7a9af6b9659e4600c.tar.gz
emacs-ac9b4703e1944a9ac4887ea7a9af6b9659e4600c.zip
* lisp/simple.el (newline-and-indent): Do autofill.
Fixes: debbugs:17031
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/simple.el2
2 files changed, 5 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 9bf92ae1b58..70b557ad36b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12014-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * simple.el (newline-and-indent): Do autofill (bug#17031).
4
12014-03-18 Dmitry Gutov <dgutov@yandex.ru> 52014-03-18 Dmitry Gutov <dgutov@yandex.ru>
2 6
3 * newcomment.el (comment-normalize-vars): Only add escaping check 7 * 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
611column specified by the function `current-left-margin'." 611column specified by the function `current-left-margin'."
612 (interactive "*") 612 (interactive "*")
613 (delete-horizontal-space t) 613 (delete-horizontal-space t)
614 (newline 1 t) 614 (newline nil t)
615 (indent-according-to-mode)) 615 (indent-according-to-mode))
616 616
617(defun reindent-then-newline-and-indent () 617(defun reindent-then-newline-and-indent ()