From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: [NEED HELP] How to find out weird thing caused Emacs auto save scratch buffer as lot of files Date: Tue, 23 May 2023 14:10:35 +0300 Message-ID: <83h6s3pal0.fsf@gnu.org> References: <646c3199.170a0220.12d51.9eb2@mx.google.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23546"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 23 13:11:25 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q1PvJ-0005wO-0z for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 23 May 2023 13:11:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q1Pul-00018Q-GL; Tue, 23 May 2023 07:10:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q1Puc-000174-Cs for help-gnu-emacs@gnu.org; Tue, 23 May 2023 07:10:45 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q1Pub-0005gY-VI for help-gnu-emacs@gnu.org; Tue, 23 May 2023 07:10:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=6XgLd9y1UBAcq13MW9JNgtzhECDbhE0hVeSTrkOjjqk=; b=b5XFchZ3aIIR O+nCnFlZI9Sm1kioh3jpBRT7Hltgg0cPcH7eOksRMIXqRdcImXAUPXSZn78gReFJUL+Y8k3NYiN0M Jg4ZtiY3OsF8t+kVY7sFIf9i0zC4cAiN9cYAB3CeSnW5zFy2I2gP6ih69eu4Fqa3VbO2RCruGQgJt t4zVV+x3Gv5T1oNajSjMVPBzaSA4CUZZeYeDbePUK29LeXqfIUL07GzU3HhxjxH/aK7UCiwcCPgCQ K4M3sSZi909tlqdw6ynuwdsTFdE51OD/LzF1kUofez4WQaHUUmXuPIj0k+Wj1PAAxs4hhbmib0bHw SooSOYvFtRQuvLu6nX5K6A==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q1Pu8-00028l-PP for help-gnu-emacs@gnu.org; Tue, 23 May 2023 07:10:41 -0400 In-Reply-To: <646c3199.170a0220.12d51.9eb2@mx.google.com> (numbchild@gmail.com) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143713 Archived-At: > From: "Christopher M. Miles" > 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*.