From: Richard M. Stallman Date: Fri, 6 Oct 1995 22:40:25 +0000 (+0000) Subject: (newline): Call barf-if-buffer-read-only. X-Git-Tag: emacs-19.34~2723 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4c4cbf11f63b52e96fc223991410f51ba6f93644;p=emacs.git (newline): Call barf-if-buffer-read-only. --- 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