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)?













1















windows 10, Emacs 26.1, dired+



Suppose I want to delete (move to trash) file in dired mode.



D



Emacs asks me:



enter image description here



I press y



and now it's asking me again to kill file.



enter image description here



Why Emacs asks me twice?
I want to answer only once to delete (move to trash) the file.










share|improve this question
























  • 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-trash set to non-nil.

    – Drew
    5 hours ago
















1















windows 10, Emacs 26.1, dired+



Suppose I want to delete (move to trash) file in dired mode.



D



Emacs asks me:



enter image description here



I press y



and now it's asking me again to kill file.



enter image description here



Why Emacs asks me twice?
I want to answer only once to delete (move to trash) the file.










share|improve this question
























  • 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-trash set to non-nil.

    – Drew
    5 hours ago














1












1








1








windows 10, Emacs 26.1, dired+



Suppose I want to delete (move to trash) file in dired mode.



D



Emacs asks me:



enter image description here



I press y



and now it's asking me again to kill file.



enter image description here



Why Emacs asks me twice?
I want to answer only once to delete (move to trash) the file.










share|improve this question
















windows 10, Emacs 26.1, dired+



Suppose I want to delete (move to trash) file in dired mode.



D



Emacs asks me:



enter image description here



I press y



and now it's asking me again to kill file.



enter image description here



Why Emacs asks me twice?
I want to answer only once to delete (move to trash) the file.







files deletion






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 option delete-by-moving-to-trash set 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







  • 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

















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











1 Answer
1






active

oldest

votes


















4














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).






share|improve this answer























    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
    );



    );













    draft saved

    draft discarded


















    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









    4














    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).






    share|improve this answer



























      4














      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).






      share|improve this answer

























        4












        4








        4







        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).






        share|improve this answer













        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).







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 5 hours ago









        GrethGreth

        16019




        16019



























            draft saved

            draft discarded
















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

            Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

            In Tikz, how to set a node's label alignment to the left?Rotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?Numerical conditional within tikz keys?TikZ/ERD: node (=Entity) label on the insideLine up nested tikz enviroments or how to get rid of themVertically align a tikzpicture and forestDrawing tikz line in the margin for multiple pagesLongtable, contained tikz, padding, custom columns, and an alignment issueTikZ: define arrow starting position based on style and format node labelAlign node name in Tikz