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
d5ac5779
Commit
d5ac5779
authored
Dec 28, 2008
by
Chong Yidong
Browse files
(move-file-to-trash): Bind backup-directory-alist to nil before
uniquifying backup trash file name.
parent
7d96af1a
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 @
d5ac5779
...
...
@@ -5992,7 +5992,8 @@ Returns nil on success."
(
and
(
file-exists-p
new-fn
)
;; make new-fn unique.
;; example: "~/.Trash/abc.txt" -> "~/.Trash/abc.txt.~1~"
(
let
((
version-control
t
))
(
let
((
version-control
t
)
(
backup-directory-alist
nil
))
(
setq
new-fn
(
car
(
find-backup-file-name
new-fn
)))))
;; stop processing if fn is same or parent directory of trash-dir.
(
and
(
string-match
fn
trash-dir
)
...
...
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