Mercurial > emacs
changeset 13137:a83a1515fd9b
(newline): Call barf-if-buffer-read-only.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 06 Oct 1995 22:40:25 +0000 |
parents | b37ba01d6e27 |
children | 2a0ef3a2ccc3 |
files | lisp/simple.el |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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