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
4d49551a
Commit
4d49551a
authored
Feb 27, 1998
by
Karl Heuer
Browse files
(set-visited-file-name): Don't call backup-enable-predicate
when buffer-file-name is nil.
parent
9b3d0a18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
lisp/files.el
lisp/files.el
+2
-1
No files found.
lisp/files.el
View file @
4d49551a
...
...
@@ -1735,7 +1735,8 @@ the old visited file has been renamed to the new name FILENAME."
(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
))
(and buffer-file-name
(not (funcall backup-enable-predicate buffer-file-name))
(progn
(make-local-variable 'backup-inhibited)
(setq backup-inhibited t)))
...
...
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