Commit 7d5944b9 authored by Glenn Morris's avatar Glenn Morris
Browse files

Trivial bytecomp.el fix for file-local buffer-read-only.

* lisp/emacs-lisp/bytecomp.el (byte-compile-file): Do not propagate a
file local setting of buffer-read-only to the input buffer.

Fixes: debbugs:10419
parent 98cc61de
2012-01-06 Glenn Morris <rgm@gnu.org> 2012-01-06 Glenn Morris <rgm@gnu.org>
* emacs-lisp/bytecomp.el (byte-compile-file): Do not propagate a file
local setting of buffer-read-only to the input buffer. (Bug#10419)
* calendar/calendar.el (calendar-mode): * calendar/calendar.el (calendar-mode):
Locally set scroll-margin to 0. (Bug#10379) Locally set scroll-margin to 0. (Bug#10379)
......
...@@ -1745,7 +1745,9 @@ The value is non-nil if there were no errors, nil if errors." ...@@ -1745,7 +1745,9 @@ The value is non-nil if there were no errors, nil if errors."
(enable-local-eval nil)) (enable-local-eval nil))
;; Arg of t means don't alter enable-local-variables. ;; Arg of t means don't alter enable-local-variables.
(normal-mode t) (normal-mode t)
(setq filename buffer-file-name)) ;; There may be a file local variable setting (bug#10419).
(setq buffer-read-only nil
filename buffer-file-name))
;; Set the default directory, in case an eval-when-compile uses it. ;; Set the default directory, in case an eval-when-compile uses it.
(setq default-directory (file-name-directory filename))) (setq default-directory (file-name-directory filename)))
;; Check if the file's local variables explicitly specify not to ;; Check if the file's local variables explicitly specify not to
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment