Fix require-final-newline interaction with read-only buffers.
authorChristopher Schmidt <christopher@ch.ristopher.com>
Wed, 18 Apr 2012 06:24:13 +0000 (14:24 +0800)
committerChong Yidong <cyd@gnu.org>
Wed, 18 Apr 2012 06:24:13 +0000 (14:24 +0800)
commitc09c46b263a4c47806775c57bea391612cad4404
treecb126b90cec1002c7c9556113232fc768173ea9d
parent5f6530ea79767d596c1950a94d63415475e5b1df
Fix require-final-newline interaction with read-only buffers.

* lisp/files.el (after-find-file): Do not try to add a final newline
if the buffer is read-only.

Fixes: debbugs:11156
lisp/ChangeLog
lisp/files.el