From debbugs-submit-bounces@debbugs.gnu.org Tue May 26 02:22:52 2015 Received: (at submit) by debbugs.gnu.org; 26 May 2015 06:22:52 +0000 Received: from localhost ([127.0.0.1]:56173 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yx8GJ-0004EM-VH for submit@debbugs.gnu.org; Tue, 26 May 2015 02:22:52 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51632) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yx7aF-0001lh-Qz for submit@debbugs.gnu.org; Tue, 26 May 2015 01:39:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yx7a9-0007rK-Po for submit@debbugs.gnu.org; Tue, 26 May 2015 01:39:18 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:55274) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yx7a9-0007rG-MX for submit@debbugs.gnu.org; Tue, 26 May 2015 01:39:17 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36900) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yx7a8-0004fJ-Id for bug-gnu-emacs@gnu.org; Tue, 26 May 2015 01:39:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yx7a7-0007qv-Dp for bug-gnu-emacs@gnu.org; Tue, 26 May 2015 01:39:16 -0400 Received: from mail-ob0-x235.google.com ([2607:f8b0:4003:c01::235]:34570) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yx7a7-0007qn-9N for bug-gnu-emacs@gnu.org; Tue, 26 May 2015 01:39:15 -0400 Received: by obew15 with SMTP id w15so4902498obe.1 for ; Mon, 25 May 2015 22:39:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=NbifsTpBQ2owzfPKwR/s/YsMEgOb+9HwdtC+wFiFpKA=; b=Xj/+0juC9DQZDwe3kw6RT23BL4oQa8TuFc8P2f/RFi0hhY6gthIU4b4J2dil3Rtg5h +nAekDEEIcIqK1LKjL5YvMUG3tx5qg2YU3Cw+00GIVBbJiSSTIGL9vJ3Ze8UTsi2UKkf 5UYbhcJEuL9k48ndugVboxIuWc58SWLOuctA2TD696eMYwUcUWft6uKpd1IOgYaASTDd d+O4wPYXO+SIqRXsRkF+6pxiYcDIML0NdWYEj2GSxJCIRs9sGQoEor9vw9eIPTY/Cpv2 pwdf/4CrLE7aQ3C1kQdmxGK1BZ33E7AaNpxNB3rcD/D0xtGUNZF0TcKVOOu28frBZdnJ kq9g== X-Received: by 10.202.192.7 with SMTP id q7mr18984033oif.85.1432618754431; Mon, 25 May 2015 22:39:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.196.14 with HTTP; Mon, 25 May 2015 22:38:54 -0700 (PDT) From: Nicolas Calderon Date: Tue, 26 May 2015 01:38:54 -0400 Message-ID: Subject: auto-save-visited-file-name: leaks interlock files and abandons unsaved buffers To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 26 May 2015 02:22:49 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) Hi, When auto-save-visited-file-name is set, emacs auto-saves directly to file rather than a different file (##). Unfortunately, auto-saving does not get rid of the interlock file (symlink from .# -> @.:). Since the buffer is saved and not modified (buffer-modified-p is false, as evidenced by the modline), emacs can be exited without the "Save file?" prompt. Leaving emacs at this point, without making a proper save (save-buffer), leaves the interlock files behind modifications directly to the file rather than auto-saving. While looking at that, I noticed something a bit more "dangerous". Normally, auto-save-visited-file-name is only enabled upon restarting auto-save-mode (http://www.gnu.org/software/emacs/manual/html_node/elisp/Auto_002dSaving.html), and indeed, if auto-save-visited-file-name is set and auto-save-mode, emacs keeps saving auto-saves under ## and not directly to file. After an auto-save though, the file is marked as not modified (buffer_modified-p is false). At this point, if the user leaves emacs, their file is not saved and the user is not prompted for saving!!! The content of the file can still be recovered from the auto-save file. -- Nicolas Calderon Asselin From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 19 15:35:12 2017 Received: (at 20659-quiet) by debbugs.gnu.org; 19 Jan 2017 20:35:12 +0000 Received: from localhost ([127.0.0.1]:35803 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cUJQO-0007xv-6E for submit@debbugs.gnu.org; Thu, 19 Jan 2017 15:35:12 -0500 Received: from eggs.gnu.org ([208.118.235.92]:36683) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cUJQM-0007xi-Kb for 20659-quiet@debbugs.gnu.org; Thu, 19 Jan 2017 15:35:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cUJQG-0007Wn-Ov for 20659-quiet@debbugs.gnu.org; Thu, 19 Jan 2017 15:35:05 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47531) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cUJQG-0007Wj-MK for 20659-quiet@debbugs.gnu.org; Thu, 19 Jan 2017 15:35:04 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1cUJQG-0005cn-8B; Thu, 19 Jan 2017 15:35:04 -0500 From: Glenn Morris To: 20659-quiet@debbugs.gnu.org Subject: Re: bug#20659: auto-save-visited-file-name: leaks interlock files and abandons unsaved buffers References: X-Spook: SAFE Tremor Vaccine Bellcore BROMURE Suicide attack Metro X-Ran: GztxyTVha=V9xQKE"60PT'IRWmUvv5xu'6rV,qFq0"WW>OfM_QjKLYJfxFHI0&5o|12`aP X-Hue: black X-Attribution: GM Date: Thu, 19 Jan 2017 15:35:04 -0500 In-Reply-To: (Nicolas Calderon's message of "Tue, 26 May 2015 01:38:54 -0400") Message-ID: <7a4m0u3i13.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -8.2 (--------) X-Debbugs-Envelope-To: 20659-quiet X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -8.2 (--------) See bug 25470. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 23 16:45:24 2021 Received: (at 20659) by debbugs.gnu.org; 23 Jan 2021 21:45:24 +0000 Received: from localhost ([127.0.0.1]:35457 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l3Qii-0002EC-FA for submit@debbugs.gnu.org; Sat, 23 Jan 2021 16:45:24 -0500 Received: from quimby.gnus.org ([95.216.78.240]:56270) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l3Qig-0002Du-MX for 20659@debbugs.gnu.org; Sat, 23 Jan 2021 16:45:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=fJctk6gZhTAS8wCGtmFy8jpxm+Ss8ask0skqQWHY6tU=; b=H+RyBY5Gucc/vVPgZHj17a58UU wlHUsLzZbfBQ2zKPiH7hnpCKJbqJvHoswnX96YUxxHh2oOru4yM45Kd3w27cF160cGoiHBCnsTvzD YIcaC8EGFUdt75VQZsK60QQpccoefhomfngoQrMLDfrPc7uJZhramrsGO/s7m22E6FR8=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l3QiV-0005j2-BC; Sat, 23 Jan 2021 22:45:16 +0100 From: Lars Ingebrigtsen To: Nicolas Calderon Subject: Re: bug#20659: auto-save-visited-file-name: leaks interlock files and abandons unsaved buffers References: X-Now-Playing: Liturgy's _Origin of the Alimonies_: "Apparition of the Eternal Church" Date: Sat, 23 Jan 2021 22:45:10 +0100 In-Reply-To: (Nicolas Calderon's message of "Tue, 26 May 2015 01:38:54 -0400") Message-ID: <87a6sztjix.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Nicolas Calderon writes: > When auto-save-visited-file-name is set, emacs auto-saves directly to > file rather than a different file (##). Unfortunately, > auto-saving does not get rid of the interlock file (symlink [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 20659 Cc: 20659@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Nicolas Calderon writes: > When auto-save-visited-file-name is set, emacs auto-saves directly to > file rather than a different file (##). Unfortunately, > auto-saving does not get rid of the interlock file (symlink from > .# -> @.:). Since the buffer is saved > and not modified (buffer-modified-p is false, as evidenced by the > modline), emacs can be exited without the "Save file?" prompt. Leaving > emacs at this point, without making a proper save (save-buffer), > leaves the interlock files behind modifications directly to the file > rather than auto-saving. (I'm going through old bug reports that unfortunately got no response at the time.) I'm not able to reproduce this bug in Emacs 28, and indeed this has all been rewritten in 2017: commit 4db844a4532592ed2542c05a1747dad7ed319e15 Author: Philipp Stephani AuthorDate: Sat Apr 22 20:58:38 2017 +0200 Reimplement auto-saving to visited files This reacts to confusing behavior of 'auto-save-visited-file-name', cf. Bug#25478. So I'm going to go ahead and guess that this has been fixed by now, and I'm closing this bug report. If there are still bugs in this area, please respond to the debbugs address and we'll reopen. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 23 16:45:30 2021 Received: (at control) by debbugs.gnu.org; 23 Jan 2021 21:45:31 +0000 Received: from localhost ([127.0.0.1]:35460 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l3Qio-0002EU-ON for submit@debbugs.gnu.org; Sat, 23 Jan 2021 16:45:30 -0500 Received: from quimby.gnus.org ([95.216.78.240]:56284) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l3Qin-0002EA-6Z for control@debbugs.gnu.org; Sat, 23 Jan 2021 16:45:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=OHSwU++reJczK8dHCVTI6IlHkjYw+8lyuHAUN0nPXI4=; b=mHKRl0+qCP7o5JoIJh0lhO/3vE B/NF3iNRdNPnygFlkZlrbcOGzdAyh3K772t8O9X/gFvwOhbUwCiNFnegFQfk7kjtLhAoq9vM6N9+s mcHwO+VBTrJF+FCP5FoLndj9ih1WAYtHC0XHvyApDoq1C3HcObNABclrNxR5jlSwDkIw=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l3Qif-0005jD-JF for control@debbugs.gnu.org; Sat, 23 Jan 2021 22:45:23 +0100 Date: Sat, 23 Jan 2021 22:45:20 +0100 Message-Id: <878s8jtjin.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #20659 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 20659 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 20659 quit From unknown Tue Jun 24 22:39:00 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 21 Feb 2021 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator