Commit ee81c959 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(set-visited-file-name): Kill local var vc-mode.

Make buffer writable if was read-only due to vc.
parent b5bcaf3e
......@@ -1184,6 +1184,11 @@ if you wish to pass an empty string as the argument."
(kill-local-variable 'local-write-file-hooks)
(kill-local-variable 'revert-buffer-function)
(kill-local-variable 'backup-inhibited)
;; If buffer was read-only because of version control,
;; that reason is gone now, so make it writable.
(if vc-mode
(setq buffer-read-only nil))
(kill-local-variable 'vc-mode)
;; Turn off backup files for certain file names.
;; Since this is a permanent local, the major mode won't eliminate it.
(and (not (funcall backup-enable-predicate buffer-file-name))
......
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