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
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
6bddfc97
Commit
6bddfc97
authored
Sep 20, 2008
by
Glenn Morris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Frename_file): Avoid copying to trash if a rename involves a delete. (Bug#964).
parent
3102b342
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
src/ChangeLog
src/ChangeLog
+5
-0
src/fileio.c
src/fileio.c
+4
-0
No files found.
src/ChangeLog
View file @
6bddfc97
2008-09-20 Glenn Morris <rgm@gnu.org>
* fileio.c (Frename_file): Avoid copying to trash if a rename involves
a delete. (Bug#964).
2008-09-20 Eli Zaretskii <eliz@gnu.org>
2008-09-20 Eli Zaretskii <eliz@gnu.org>
* keyboard.c (Fset_quit_char, Fset_input_meta_mode)
* keyboard.c (Fset_quit_char, Fset_input_meta_mode)
...
...
src/fileio.c
View file @
6bddfc97
...
@@ -2231,6 +2231,7 @@ This is what happens in interactive use with M-x. */)
...
@@ -2231,6 +2231,7 @@ This is what happens in interactive use with M-x. */)
{
{
if
(
errno
==
EXDEV
)
if
(
errno
==
EXDEV
)
{
{
int
count
;
#ifdef S_IFLNK
#ifdef S_IFLNK
symlink_target
=
Ffile_symlink_p
(
file
);
symlink_target
=
Ffile_symlink_p
(
file
);
if
(
!
NILP
(
symlink_target
))
if
(
!
NILP
(
symlink_target
))
...
@@ -2244,7 +2245,10 @@ This is what happens in interactive use with M-x. */)
...
@@ -2244,7 +2245,10 @@ This is what happens in interactive use with M-x. */)
NILP
(
ok_if_already_exists
)
?
Qnil
:
Qt
,
NILP
(
ok_if_already_exists
)
?
Qnil
:
Qt
,
Qt
,
Qt
);
Qt
,
Qt
);
count
=
SPECPDL_INDEX
();
specbind
(
intern
(
"delete-by-moving-to-trash"
),
Qnil
);
Fdelete_file
(
file
);
Fdelete_file
(
file
);
unbind_to
(
count
,
Qnil
);
}
}
else
else
report_file_error
(
"Renaming"
,
list2
(
file
,
newname
));
report_file_error
(
"Renaming"
,
list2
(
file
,
newname
));
...
...
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