=== modified file 'lisp/ChangeLog' --- lisp/ChangeLog 2012-04-02 16:32:06 +0000 +++ lisp/ChangeLog 2012-04-02 21:28:06 +0000 @@ -1,3 +1,8 @@ +2012-04-02 Christopher Schmidt + + * files.el (after-find-file): Do not add a newline at the end when + buffer is read-only. + 2012-04-02 Glenn Morris * emacs-lisp/authors.el (authors-aliases): Another addition. === modified file 'lisp/files.el' --- lisp/files.el 2012-04-01 02:44:24 +0000 +++ lisp/files.el 2012-04-02 21:45:36 +0000 @@ -2152,6 +2152,7 @@ (/= (char-after (1- (point-max))) ?\n) (not (and (eq selective-display t) (= (char-after (1- (point-max))) ?\r))) + (not buffer-read-only) (save-excursion (goto-char (point-max)) (insert "\n")))