From 3954fff9cffdd54ee237cf7b05b290111a320a8a Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 10 Apr 1995 21:01:12 +0000 Subject: [PATCH] (newline): Don't auto-fill if flag is on; it was filling wrong line. --- lisp/simple.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/simple.el b/lisp/simple.el index 943155cfab4..bdac6be2a37 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -47,7 +47,9 @@ In Auto Fill mode, if no numeric arg, break the preceding line if it's long." ;; Set last-command-char to tell self-insert what to insert. (let ((last-command-char ?\n) ;; Don't auto-fill if we have a numeric argument. - (auto-fill-function (if arg nil auto-fill-function))) + ;; Also not if flag is true (it would fill wrong line); + ;; there is no need to since we're at BOL. + (auto-fill-function (if (or arg flag) nil auto-fill-function))) (self-insert-command (prefix-numeric-value arg))) ;; Mark the newline(s) `hard'. (if use-hard-newlines -- 2.39.5