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
b5bcaf3e
Commit
b5bcaf3e
authored
Mar 27, 1994
by
Richard M. Stallman
Browse files
(vc-find-file-hook): Set backup-inhibited.
parent
2cb6da5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
lisp/vc-hooks.el
lisp/vc-hooks.el
+4
-2
No files found.
lisp/vc-hooks.el
View file @
b5bcaf3e
...
...
@@ -246,8 +246,10 @@ visiting FILE."
(
vc-file-setprop
buffer-file-name
'vc-backend
nil
))
(
if
(
and
(
vc-mode-line
buffer-file-name
)
(
not
vc-make-backup-files
))
(
progn
(
make-local-variable
'make-backup-files
)
(
setq
make-backup-files
nil
))))
;; Use this variable, not make-backup-files,
;; because this is for things that depend on the file name.
(
make-local-variable
'backup-inhibited
)
(
setq
backup-inhibited
t
))))
(
add-hook
'find-file-hooks
'vc-find-file-hook
)
...
...
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