Why Emacs (dired+) asks me twice to delete file?Edit file with super-user rightsSave current file with a slightly different nameMake delete button to delete file at point in dired?Delete 4-spaces as a single tabchange default action of opening multiple files in diredGet filename from dired using elispWhat is causing `delete-trailing-whitespace`?Search files with many search options. Is it possible?Dired+: Copy to nonexistent directoryDired: How to find all files under a directory that match a glob pattern (wildcards)?
Was this scene in S8E06 added because of fan reactions to S8E04?
How did the Allies achieve air superiority on Sicily?
Complications of displaced core material?
Toxic, harassing lab environment
How to remove new line added by readarray when using a delimiter?
What is to the west of Westeros?
EU rights when flight delayed so much that return is missed
Piping the output of comand columns
resolution bandwidth
Alexandrov's generalization of Cauchy's rigidity theorem
Is keeping the forking link on a true fork necessary (Github/GPL)?
One word for 'the thing that attracts me'?
What did Brienne write about Jaime?
Set outline first and fill colors later
What happened to the Dothraki in S08E06?
What is the limit to a Glyph of Warding's trigger?
Why does the painters tape have to be blue?
Writing "hahaha" versus describing the laugh
Storing voxels for a voxel Engine in C++
"Official wife" or "Formal wife"?
I want to ask company flying me out for office tour if I can bring my fiance
Can attacking players use activated abilities after blockers have been declared?
Can diplomats be allowed on the flight deck of a commercial European airline?
Are there any German nonsense poems (Jabberwocky)?
Why Emacs (dired+) asks me twice to delete file?
Edit file with super-user rightsSave current file with a slightly different nameMake delete button to delete file at point in dired?Delete 4-spaces as a single tabchange default action of opening multiple files in diredGet filename from dired using elispWhat is causing `delete-trailing-whitespace`?Search files with many search options. Is it possible?Dired+: Copy to nonexistent directoryDired: How to find all files under a directory that match a glob pattern (wildcards)?
windows 10, Emacs 26.1, dired+
Suppose I want to delete (move to trash) file in dired
mode.
D
Emacs asks me:
I press y
and now it's asking me again to kill
file.
Why Emacs asks me twice?
I want to answer only once to delete (move to trash) the file.
files deletion
add a comment |
windows 10, Emacs 26.1, dired+
Suppose I want to delete (move to trash) file in dired
mode.
D
Emacs asks me:
I press y
and now it's asking me again to kill
file.
Why Emacs asks me twice?
I want to answer only once to delete (move to trash) the file.
files deletion
I don't think this has anything to do with Dired, beyond the fact that you initiated the deletion there.
– Drew
6 hours ago
2
You apparently neglected, in your description/recipe, to say that you also, sometime prior to trying to trash the file, visited it, so there is a buffer visiting it. (And you neglected to say that you have optiondelete-by-moving-to-trash
set to non-nil
.
– Drew
6 hours ago
FWIW those screenshots are really hard to read due to small size of text.
– Reid
21 mins ago
add a comment |
windows 10, Emacs 26.1, dired+
Suppose I want to delete (move to trash) file in dired
mode.
D
Emacs asks me:
I press y
and now it's asking me again to kill
file.
Why Emacs asks me twice?
I want to answer only once to delete (move to trash) the file.
files deletion
windows 10, Emacs 26.1, dired+
Suppose I want to delete (move to trash) file in dired
mode.
D
Emacs asks me:
I press y
and now it's asking me again to kill
file.
Why Emacs asks me twice?
I want to answer only once to delete (move to trash) the file.
files deletion
files deletion
edited 5 hours ago
DoMiNeLa10♦
2,0241624
2,0241624
asked 9 hours ago
AlexeiAlexei
828212
828212
I don't think this has anything to do with Dired, beyond the fact that you initiated the deletion there.
– Drew
6 hours ago
2
You apparently neglected, in your description/recipe, to say that you also, sometime prior to trying to trash the file, visited it, so there is a buffer visiting it. (And you neglected to say that you have optiondelete-by-moving-to-trash
set to non-nil
.
– Drew
6 hours ago
FWIW those screenshots are really hard to read due to small size of text.
– Reid
21 mins ago
add a comment |
I don't think this has anything to do with Dired, beyond the fact that you initiated the deletion there.
– Drew
6 hours ago
2
You apparently neglected, in your description/recipe, to say that you also, sometime prior to trying to trash the file, visited it, so there is a buffer visiting it. (And you neglected to say that you have optiondelete-by-moving-to-trash
set to non-nil
.
– Drew
6 hours ago
FWIW those screenshots are really hard to read due to small size of text.
– Reid
21 mins ago
I don't think this has anything to do with Dired, beyond the fact that you initiated the deletion there.
– Drew
6 hours ago
I don't think this has anything to do with Dired, beyond the fact that you initiated the deletion there.
– Drew
6 hours ago
2
2
You apparently neglected, in your description/recipe, to say that you also, sometime prior to trying to trash the file, visited it, so there is a buffer visiting it. (And you neglected to say that you have option
delete-by-moving-to-trash
set to non-nil
.– Drew
6 hours ago
You apparently neglected, in your description/recipe, to say that you also, sometime prior to trying to trash the file, visited it, so there is a buffer visiting it. (And you neglected to say that you have option
delete-by-moving-to-trash
set to non-nil
.– Drew
6 hours ago
FWIW those screenshots are really hard to read due to small size of text.
– Reid
21 mins ago
FWIW those screenshots are really hard to read due to small size of text.
– Reid
21 mins ago
add a comment |
1 Answer
1
active
oldest
votes
So when you open a file it creates a 'buffer' with the file's contents. The first yes moves the physical file to the trash. But the 'buffer' is still loaded in Emacs. If you say no to the second option you can still view the file in Emacs even though it's in the trash can. If this is too redundant I think this answer has the proper solution (although admittedly I have not tested it myself).
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "583"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2femacs.stackexchange.com%2fquestions%2f50611%2fwhy-emacs-dired-asks-me-twice-to-delete-file%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
So when you open a file it creates a 'buffer' with the file's contents. The first yes moves the physical file to the trash. But the 'buffer' is still loaded in Emacs. If you say no to the second option you can still view the file in Emacs even though it's in the trash can. If this is too redundant I think this answer has the proper solution (although admittedly I have not tested it myself).
add a comment |
So when you open a file it creates a 'buffer' with the file's contents. The first yes moves the physical file to the trash. But the 'buffer' is still loaded in Emacs. If you say no to the second option you can still view the file in Emacs even though it's in the trash can. If this is too redundant I think this answer has the proper solution (although admittedly I have not tested it myself).
add a comment |
So when you open a file it creates a 'buffer' with the file's contents. The first yes moves the physical file to the trash. But the 'buffer' is still loaded in Emacs. If you say no to the second option you can still view the file in Emacs even though it's in the trash can. If this is too redundant I think this answer has the proper solution (although admittedly I have not tested it myself).
So when you open a file it creates a 'buffer' with the file's contents. The first yes moves the physical file to the trash. But the 'buffer' is still loaded in Emacs. If you say no to the second option you can still view the file in Emacs even though it's in the trash can. If this is too redundant I think this answer has the proper solution (although admittedly I have not tested it myself).
answered 6 hours ago
GrethGreth
17019
17019
add a comment |
add a comment |
Thanks for contributing an answer to Emacs Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2femacs.stackexchange.com%2fquestions%2f50611%2fwhy-emacs-dired-asks-me-twice-to-delete-file%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I don't think this has anything to do with Dired, beyond the fact that you initiated the deletion there.
– Drew
6 hours ago
2
You apparently neglected, in your description/recipe, to say that you also, sometime prior to trying to trash the file, visited it, so there is a buffer visiting it. (And you neglected to say that you have option
delete-by-moving-to-trash
set to non-nil
.– Drew
6 hours ago
FWIW those screenshots are really hard to read due to small size of text.
– Reid
21 mins ago