# HG changeset patch # User Richard M. Stallman # Date 813019225 0 # Node ID a83a1515fd9b5288b235d37b23f63ca3f6b9bff0 # Parent b37ba01d6e27b4024f9c50d6fa410707ce772db6 (newline): Call barf-if-buffer-read-only. diff -r b37ba01d6e27 -r a83a1515fd9b lisp/simple.el --- a/lisp/simple.el Fri Oct 06 15:12:44 1995 +0000 +++ b/lisp/simple.el Fri Oct 06 22:40:25 1995 +0000 @@ -31,6 +31,7 @@ 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