aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes
diff options
context:
space:
mode:
authorDmitry Gutov2019-06-27 16:57:47 +0200
committerLars Ingebrigtsen2019-06-27 16:57:47 +0200
commit8a11e430ec261c08cc928a7a5b05ee1027f50368 (patch)
tree5ab295a34509c313cc7a6d39f410a9eb1a41bc78 /lisp/textmodes
parent50ade7afc15697fe820c510cdaf98d50d24e4a64 (diff)
downloademacs-8a11e430ec261c08cc928a7a5b05ee1027f50368.tar.gz
emacs-8a11e430ec261c08cc928a7a5b05ee1027f50368.zip
Use `default-indent-new-line' instead of `indent-new-comment-line'
* lisp/simple.el (default-indent-new-line): Doc string fix. * lisp/textmodes/refill.el (refill-post-command-function): Make default-indent-new-line work as indent-new-comment-line. * lisp/textmodes/refill.el (refill-post-command-function): Bind `M-C-j' and `M-j' to default-indent-new-line instead of indent-new-comment-line to allow overriding via `comment-line-break-function' (bug#12413).
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/refill.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/textmodes/refill.el b/lisp/textmodes/refill.el
index 5c69fdc1b07..e597ba866c4 100644
--- a/lisp/textmodes/refill.el
+++ b/lisp/textmodes/refill.el
@@ -181,7 +181,7 @@ complex processing.")
181 (setq refill-doit nil))) 181 (setq refill-doit nil)))
182 ((or 'quoted-insert 'fill-paragraph 'fill-region) nil) 182 ((or 'quoted-insert 'fill-paragraph 'fill-region) nil)
183 ((or 'newline 'newline-and-indent 'open-line 'indent-new-comment-line 183 ((or 'newline 'newline-and-indent 'open-line 'indent-new-comment-line
184 'reindent-then-newline-and-indent) 184 'default-indent-new-line 'reindent-then-newline-and-indent)
185 ;; Don't zap what was just inserted. 185 ;; Don't zap what was just inserted.
186 (save-excursion 186 (save-excursion
187 (beginning-of-line) ; for newline-and-indent 187 (beginning-of-line) ; for newline-and-indent