[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SOLVED] Re: [NEED HELP] How to find out weird thing caused Emacs auto s
From: |
Christopher M. Miles |
Subject: |
[SOLVED] Re: [NEED HELP] How to find out weird thing caused Emacs auto save scratch buffer as lot of files |
Date: |
Tue, 23 May 2023 20:41:38 +0800 |
User-agent: |
mu4e 1.10.3; emacs 30.0.50 |
Eli Zaretskii <eliz@gnu.org> writes:
>> From: "Christopher M. Miles" <numbchild@gmail.com>
>> Date: Tue, 23 May 2023 11:09:28 +0800
>>
>> Recently I found in my user home directory, has lot of files named like:
>>
>> #+begin_src sh
>> find ~ -maxdepth 1 -iregex ".*scratch.*" -print | head -n 8
>> echo ""
>> echo "Counted files number: "
>> find ~ -maxdepth 1 -iregex ".*scratch.*" -print | wc -l
>> #+end_src
>>
>> #+RESULTS[(2023-05-23 11:18:44) aeb151fa27fcf758a5339bed5dc6617cb4f731ba]:
>> #+begin_example
>> /Users/stardiviner/#%2Ascratch%2A#UKK9EL#
>> /Users/stardiviner/#%2Ascratch%2A#4gsYFq#
>> /Users/stardiviner/#%2Ascratch%2A#ufEZRq#
>> /Users/stardiviner/#%2Ascratch%2A#XzrExY#
>> /Users/stardiviner/#%2Ascratch%2A#jGa6jP#
>> /Users/stardiviner/#%2Ascratch%2A#mweKr5#
>> /Users/stardiviner/#%2Ascratch%2A#mDmbh3#
>> /Users/stardiviner/#%2Ascratch%2A#CTbcQ7#
>>
>> Counted files number:
>> 321
>> #+end_example
>>
>> - I tried search "scratch" in my Emacs config files, not found any clue.
>> - I tried to check out some minor modes like auto-save, savehist, etc. Not
>> them neither.
>> - I tried to search "scratch" in my Emacs packages installation directory
>> elpa/, still not found.
>>
>> Does anybody have any clue how to debug this issue quickly?
>
> Do you have auto-save-mode enabled in the *scratch* buffer? What does
>
> M-: buffer-auto-save-file-name RET
>
> produce if you invoke it from the *scratch* buffer? If it produces a
> non-nil value, you have somehow turned auto-save-mode in *scratch*.
I checked the *scratch* buffer status, indeed the `auto-save-mode` and
`auto-save-visited-mode` are enabled. And the value of variable
`buffer-auto-save-file-name` is: "/Users/stardiviner/#%2Ascratch%2A#lfiW0Q#"
Indeed found the problem! Hahaha, Thanks, Eli.
How to get around this problem? I disabled `auto-save-mode` now in my Emacs
config now.
But I use git blame check out the `auto-save-mode` config lines, I
enabled it long time ago, but have not happened this problem before.
Anyway, problem solved now. Thanks a lot! Guys
--
[ stardiviner ]
I try to make every word tell the meaning that I want to express without
misunderstanding.
Blog: https://stardiviner.github.io/
IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner
GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
signature.asc
Description: PGP signature