New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recent undo-tree package leaves *.~undo-tree~ files #15426
Comments
This is because of a change in the default value of one of the custom variables upstream. The relevant diff is shown in the source block below. You can view the whole diff here
This is a very easy fix, all you need to do is to set that variable back to
|
Thanks for the investigation. |
That seems totally possible. All we need to do is to configure this function:
and just replace the last |
Cross the previous comment I made. There is a simpler way to have all the backups stored in a single directory.
and it works perfect. It's going to need some tidying up to ensure that it is OS-agnostic but you can get the idea. |
Guys, I'm not good with lisp frankly. Please let me know will it be fixed in the spacemacs itself or I should place something in config file :) Thank you so much in advance! |
@Antiarchitect |
@Antiarchitect
|
@lebensterben @arifer612 Thank you so much guys! 鉂わ笍 |
I'm also having the same issue. Wasn't sure if that was on purpose behaviour but it leaves a massive clutter imo. |
Resolves syl20bnr#15426 Signed-off-by: Arif Er <arifer612@pm.me>
to stop *.~undo-tree~ files from scattering. Fix: syl20bnr#15426
to stop *.~undo-tree~ files from scattering. Fix: syl20bnr#15426
to stop *.~undo-tree~ files from scattering. Fix: #15426
to stop *.~undo-tree~ files from scattering. Fix: syl20bnr#15426
to stop *.~undo-tree~ files from scattering. Fix: syl20bnr#15426
Somehow, undo-tree's use-package :init is never executed for me. I have no clue why but I really don't want to debug this. Disable auto-save-history globally instead to get rid of all these temporary files. Link: syl20bnr/spacemacs#15426 Signed-off-by: Mattijs Korpershoek <mattijs.korpershoek@gmail.com>
One relevant thought here which might tip the balance for some people is that this is another way that sensitive secrets can get leaked into the file system indefinitely and without the user realizing it. Because on the one hand, this is a really really nice feature! But on the other hand, most users don't expect that typing or pasting a password or private key into a text editor, then deleting or undoing it without saving it, would save that secret to disk, indefinitely, in a form that's not encrypted. (And since it's non-obviously encoded, it can add to a false sense of security once known, even though it has approximately the security of plaintext.) |
100% agree with @mentalisttraceur. I've completely disabled the feature due to the same secret leaking concern. I understand it's a useful feature, but I've postponed enabling it until I find the time to properly configure it in a secure way for me. Also, due to the above mentioned reason alone, I think it should be disabled by default but easily enabled via documenting comments in the init file. The configuration instructions should also warn clearly about the security implications of doing so. In my case, I'll be configuring it later only if I manage to place the But dropping all of them in the |
I've not typed my password in any file even for once. What's the scenario? |
@lebensterben to me your message reads very rudely - as dismissive and demanding that others do all the work of enumerating compelling-to-you possibilities while seemingly making very little effort to creatively think of even one possibility. Also, before being dismissive, I recommend first taking stock of why you're emotionally invested in not accepting a concern as valid or likely enough. (I, personally, don't care about getting the default changed, and it's a single-variable config change to explicitly ensure our preference either way. You, apparently, care enough to willfully make little effort to think of even one possible way that something could validly happen, even though two people said it could.) Anyway,
All of these are relatively negligible possibilities individually, of course. But they're there, and they happen, and they add up to some risk that is worth more than zero mention in an issue dedicated to discussing the technical merits of having persistent history on by default. And again, you can ask other to describe these possibilities for you (even though that's asking them to do more work than it would take you to think of them), or you can come at people so dismissively, but doing both is rude. |
I asked a legit question and you may decide whether to answer it. Instead you accuse me of being rude to you. What's wrong with you? Compelling and realistic use cases are needed before making breaking changes. |
Description
After
undo-tree
upgrade spacemacs starts leaving *.~undo-tree~ files on fsReproduction guide 馃
Observed behaviour: 馃憖 馃挃
See *.~undo-tree~ files related to those I edit
Expected behaviour: 鉂わ笍 馃槃
No extra files are created
System Info 馃捇
Backtrace 馃惥
The text was updated successfully, but these errors were encountered: