mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-24 13:57:36 +00:00
* vc/diff-mode.el (diff-mode): Tiny change re diff-default-read-only
Only allow diff-default-read-only to set buffer-read-only to t, never to nil. Fixes: debbugs:15938
This commit is contained in:
parent
c27924b794
commit
e1b01c7fed
2 changed files with 5 additions and 1 deletions
|
|
@ -1,5 +1,8 @@
|
|||
2013-11-23 Ivan Shmakov <ivan@siamics.net> (tiny change)
|
||||
|
||||
* vc/diff-mode.el (diff-mode): Only allow diff-default-read-only
|
||||
to set buffer-read-only to t, never to nil. (Bug#15938)
|
||||
|
||||
* textmodes/tex-mode.el (latex-noindent-environments):
|
||||
Add safe-local-variable property. (Bug#15936)
|
||||
|
||||
|
|
|
|||
|
|
@ -1366,7 +1366,8 @@ a diff with \\[diff-reverse-direction].
|
|||
|
||||
(diff-setup-whitespace)
|
||||
|
||||
(setq buffer-read-only diff-default-read-only)
|
||||
(if diff-default-read-only
|
||||
(setq buffer-read-only t))
|
||||
;; setup change hooks
|
||||
(if (not diff-update-on-the-fly)
|
||||
(add-hook 'write-contents-functions 'diff-write-contents-hooks nil t)
|
||||
|
|
|
|||
Loading…
Reference in a new issue