changeset 11362:b51e4c4cb0de

(newline): Don't auto-fill if flag is on; it was filling wrong line.
author Richard M. Stallman <rms@gnu.org>
date Mon, 10 Apr 1995 21:01:12 +0000
parents 48baf159de5c
children f15dccd23db8
files lisp/simple.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/simple.el	Mon Apr 10 18:11:41 1995 +0000
+++ b/lisp/simple.el	Mon Apr 10 21:01:12 1995 +0000
@@ -47,7 +47,9 @@
     ;; 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