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)?
How to escape dependency hell?
ifconfig shows UP while ip link shows DOWN
Why is 'additive' EQ more difficult to use than 'subtractive'?
Are runways booked by airlines to land their planes?
Why A=2 and B=1 in the call signs for Spirit and Opportunity?
Why do the i8080 I/O instructions take a byte-sized operand to determine the port?
Why'd a rational buyer offer to buy with no conditions precedent?
The disk image is 497GB smaller than the target device
Why does the painters tape have to be blue?
Writing "hahaha" versus describing the laugh
What did the 'turbo' button actually do?
Can a UK national work as a paid shop assistant in the USA?
Complications of displaced core material?
Why is std::ssize() introduced in C++20
Comparison of bool data types in C++
Are PMR446 walkie-talkies legal in Switzerland?
Is a world with one country feeding everyone possible?
Status of proof by contradiction and excluded middle throughout the history of mathematics?
Would cybernetic implants allow humans to use biofeedback to boost their performance to superhuman levels? If so how far could we take it?
EU rights when flight delayed so much that return is missed
Alexandrov's generalization of Cauchy's rigidity theorem
Using too much dialogue?
Why was this character made Grand Maester?
How do you earn the reader's trust?
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
5 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-trashset to non-nil.
– Drew
5 hours 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 4 hours ago
DoMiNeLa10♦
2,0241624
2,0241624
asked 8 hours ago
AlexeiAlexei
823212
823212
I don't think this has anything to do with Dired, beyond the fact that you initiated the deletion there.
– Drew
5 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-trashset to non-nil.
– Drew
5 hours 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
5 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-trashset to non-nil.
– Drew
5 hours ago
I don't think this has anything to do with Dired, beyond the fact that you initiated the deletion there.
– Drew
5 hours ago
I don't think this has anything to do with Dired, beyond the fact that you initiated the deletion there.
– Drew
5 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
5 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
5 hours 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 5 hours ago
GrethGreth
16019
16019
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
5 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-trashset to non-nil.– Drew
5 hours ago