all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [NEED HELP] How to find out weird thing caused Emacs auto save scratch buffer as lot of files
@ 2023-05-23  3:09 Christopher M. Miles
  2023-05-23  8:54 ` Dr Rainer Woitok
  2023-05-23 11:10 ` Eli Zaretskii
  0 siblings, 2 replies; 5+ messages in thread
From: Christopher M. Miles @ 2023-05-23  3:09 UTC (permalink / raw)
  To: Emacs Help

[-- Attachment #1: Type: text/plain, Size: 1571 bytes --]

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?

I know maybe bug-hunter can be used here, but it need to wait for Emacs
trigger this behavior randomly without knowing how long the time spend.

So I send asking help email here. Hope someone can help me. Thanks a lot!

-- 

[ 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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [NEED HELP] How to find out weird thing caused Emacs auto save scratch buffer as lot of files
  2023-05-23  3:09 [NEED HELP] How to find out weird thing caused Emacs auto save scratch buffer as lot of files Christopher M. Miles
@ 2023-05-23  8:54 ` Dr Rainer Woitok
  2023-05-23  9:46   ` Christopher M. Miles
  2023-05-23 11:10 ` Eli Zaretskii
  1 sibling, 1 reply; 5+ messages in thread
From: Dr Rainer Woitok @ 2023-05-23  8:54 UTC (permalink / raw)
  To: numbchild; +Cc: Emacs Help

Christopher,

On Tuesday, 2023-05-23 11:09:28 +0800, you wrote:

> Recently I found in my user home directory, has lot of files named like:
> ...
> /Users/stardiviner/#%2Ascratch%2A#UKK9EL#

Not a real solution, but:

The ASCII character at 0x2a is "*".   And a running Emacs definitely has
a buffer "*scratch*" open.   Personally I have never seen Emacs autosav-
ing it, but who knows.   Perhaps the contents  of these files could give
you some hint where they originate from ...

Sincerely,
  Rainer



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [NEED HELP] How to find out weird thing caused Emacs auto save scratch buffer as lot of files
  2023-05-23  8:54 ` Dr Rainer Woitok
@ 2023-05-23  9:46   ` Christopher M. Miles
  0 siblings, 0 replies; 5+ messages in thread
From: Christopher M. Miles @ 2023-05-23  9:46 UTC (permalink / raw)
  To: Dr Rainer Woitok; +Cc: numbchild, Emacs Help

[-- Attachment #1: Type: text/plain, Size: 1265 bytes --]


Dr Rainer Woitok <rainer.woitok@gmail.com> writes:

> Christopher,
>
> On Tuesday, 2023-05-23 11:09:28 +0800, you wrote:
>
>> Recently I found in my user home directory, has lot of files named like:
>> ...
>> /Users/stardiviner/#%2Ascratch%2A#UKK9EL#
>
> Not a real solution, but:
>
> The ASCII character at 0x2a is "*".   And a running Emacs definitely has
> a buffer "*scratch*" open.   Personally I have never seen Emacs autosav-
> ing it, but who knows.   Perhaps the contents  of these files could give
> you some hint where they originate from ...
>
Thanks for hint of ASCII character.

I accidentally see somewhere using temporary buffer with scratch buffer.
But I don't know the package name. I will notice this to confirm whether
the package caused this problem. I think this code should found in my
previous code searching of my installed Emacs packages. But the
searching result is none. This is weird. Even I did searching three
times with different queries.

-- 

[ 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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [NEED HELP] How to find out weird thing caused Emacs auto save scratch buffer as lot of files
  2023-05-23  3:09 [NEED HELP] How to find out weird thing caused Emacs auto save scratch buffer as lot of files Christopher M. Miles
  2023-05-23  8:54 ` Dr Rainer Woitok
@ 2023-05-23 11:10 ` Eli Zaretskii
  2023-05-23 12:41   ` [SOLVED] " Christopher M. Miles
  1 sibling, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2023-05-23 11:10 UTC (permalink / raw)
  To: help-gnu-emacs

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [SOLVED] Re: [NEED HELP] How to find out weird thing caused Emacs auto save scratch buffer as lot of files
  2023-05-23 11:10 ` Eli Zaretskii
@ 2023-05-23 12:41   ` Christopher M. Miles
  0 siblings, 0 replies; 5+ messages in thread
From: Christopher M. Miles @ 2023-05-23 12:41 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 2392 bytes --]


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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-05-23 12:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-23  3:09 [NEED HELP] How to find out weird thing caused Emacs auto save scratch buffer as lot of files Christopher M. Miles
2023-05-23  8:54 ` Dr Rainer Woitok
2023-05-23  9:46   ` Christopher M. Miles
2023-05-23 11:10 ` Eli Zaretskii
2023-05-23 12:41   ` [SOLVED] " Christopher M. Miles

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.