mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-03-02 11:50:48 -08:00
Fix handling of require-final-newline in after-find-file.
* files.el (after-find-file): Don't fail on a read-only buffer if require-final-newline is `visit' or `visit-save'. Fixes: debbugs:11156
This commit is contained in:
parent
0a6bdaa157
commit
0d7eb2ea07
2 changed files with 4 additions and 1 deletions
|
|
@ -1,5 +1,8 @@
|
|||
2012-09-07 Chong Yidong <cyd@gnu.org>
|
||||
|
||||
* files.el (after-find-file): Don't fail on a read-only buffer if
|
||||
require-final-newline is `visit' or `visit-save' (Bug#11156).
|
||||
|
||||
* subr.el (read-char-choice): Allow quitting via ESC ESC.
|
||||
|
||||
* userlock.el (ask-user-about-supersession-threat): Use
|
||||
|
|
|
|||
|
|
@ -2145,7 +2145,7 @@ unless NOMODES is non-nil."
|
|||
(not buffer-read-only)
|
||||
(save-excursion
|
||||
(goto-char (point-max))
|
||||
(insert "\n")))
|
||||
(ignore-errors (insert "\n"))))
|
||||
(when (and buffer-read-only
|
||||
view-read-only
|
||||
(not (eq (get major-mode 'mode-class) 'special)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue