Mercurial > emacs
changeset 6546:8eb722515c31
(set-visited-file-name): Kill local var vc-mode.
Make buffer writable if was read-only due to vc.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 27 Mar 1994 19:49:47 +0000 |
parents | 3715d5bfad50 |
children | 610cde67456a |
files | lisp/files.el |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/files.el Sun Mar 27 19:46:27 1994 +0000 +++ b/lisp/files.el Sun Mar 27 19:49:47 1994 +0000 @@ -1184,6 +1184,11 @@ (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))