From 4c4cbf11f63b52e96fc223991410f51ba6f93644 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 6 Oct 1995 22:40:25 +0000 Subject: [PATCH] (newline): Call barf-if-buffer-read-only. --- lisp/simple.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/simple.el b/lisp/simple.el index 68a5005e54a..9c362cf8e41 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -31,6 +31,7 @@ The newline is marked with the text-property `hard'. With arg, insert that many newlines. In Auto Fill mode, if no numeric arg, break the preceding line if it's long." (interactive "*P") + (barf-if-buffer-read-only) ;; Inserting a newline at the end of a line produces better redisplay in ;; try_window_id than inserting at the beginning of a line, and the textual ;; result is the same. So, if we're at beginning of line, pretend to be at -- 2.39.2