Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
ee81c959
Commit
ee81c959
authored
Mar 27, 1994
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
lisp/files.el
lisp/files.el
+5
-0
No files found.
lisp/files.el
View file @
ee81c959
...
...
@@ -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
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment