From unknown Sat Jun 21 10:16:11 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#8207 <8207@debbugs.gnu.org> To: bug#8207 <8207@debbugs.gnu.org> Subject: Status: 24.0.50; undo in indirect buffer leaves stale file lock symlink Reply-To: bug#8207 <8207@debbugs.gnu.org> Date: Sat, 21 Jun 2025 17:16:11 +0000 retitle 8207 24.0.50; undo in indirect buffer leaves stale file lock symlink reassign 8207 emacs submitter 8207 Stephen Berman severity 8207 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 08 16:51:26 2011 Received: (at submit) by debbugs.gnu.org; 8 Mar 2011 21:51:26 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Px4oP-0007qD-Tx for submit@debbugs.gnu.org; Tue, 08 Mar 2011 16:51:26 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Px4oN-0007q1-Ns for submit@debbugs.gnu.org; Tue, 08 Mar 2011 16:51:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Px4oH-0002p4-MC for submit@debbugs.gnu.org; Tue, 08 Mar 2011 16:51:18 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:40969) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Px4oH-0002p0-Hj for submit@debbugs.gnu.org; Tue, 08 Mar 2011 16:51:17 -0500 Received: from [140.186.70.92] (port=37427 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Px4oG-0006fg-7u for bug-gnu-emacs@gnu.org; Tue, 08 Mar 2011 16:51:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Px4oE-0002oY-RM for bug-gnu-emacs@gnu.org; Tue, 08 Mar 2011 16:51:16 -0500 Received: from mailout-de.gmx.net ([213.165.64.22]:51766) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Px4oE-0002ny-DN for bug-gnu-emacs@gnu.org; Tue, 08 Mar 2011 16:51:14 -0500 Received: (qmail invoked by alias); 08 Mar 2011 21:51:11 -0000 Received: from i59F565EB.versanet.de (EHLO escher.home) [89.245.101.235] by mail.gmx.net (mp014) with SMTP; 08 Mar 2011 22:51:11 +0100 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX18BolYNOrIBhhpOAdJdwPZQIkaZCq7cTTO2jxoIVt jZ9wTuwADgqpSw Received: by escher.home (Postfix, from userid 1000) id 3BD48638FC; Tue, 8 Mar 2011 22:51:10 +0100 (CET) From: Stephen Berman To: bug-gnu-emacs@gnu.org Subject: 24.0.50; undo in indirect buffer leaves stale file lock symlink Date: Tue, 08 Mar 2011 22:51:10 +0100 Message-ID: <87tyfdgu29.fsf@escher.fritz.box> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 199.232.76.165 X-Spam-Score: -4.6 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.6 (----) 1. emacs -Q 2. Visit some file, e.g. "foo". 3. M-: (switch-to-buffer (make-indirect-buffer (current-buffer) "bar")) 4. In the indirect buffer "bar" do something to modify the buffer, e.g. type SPC. This causes a file lock symlink like the following to be added to the directory containing "foo": .#foo -> steve@escher.fritz.box.800:1299574078 5. Type `C-_' to undo the change in step 4, so that "bar" is now unmodified, and then kill "bar". => The file lock symlink in foo's directory is still there. If instead of undoing the change in step 5 the file had been saved, then the lock would have been released and the symlink deleted. In fact, this is the only way, aside from deleting it manually, to eliminate the symlink. But if a change is undone, the file is unmodified and hence cannot be saved, so the symlink should be deleted in this case. In GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.20.1) of 2011-03-08 on escher Windowing system distributor `The X.Org Foundation', version 11.0.10800000 configured using `configure '--without-toolkit-scroll-bars' 'CFLAGS=-g -O2 -fno-optimize-sibling-calls'' From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 21 23:10:07 2012 Received: (at 8207) by debbugs.gnu.org; 22 Sep 2012 03:10:07 +0000 Received: from localhost ([127.0.0.1]:47774 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TFG6Z-0003OO-FI for submit@debbugs.gnu.org; Fri, 21 Sep 2012 23:10:07 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:42269) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TFG6X-0003OH-MK for 8207@debbugs.gnu.org; Fri, 21 Sep 2012 23:10:06 -0400 Received: by padfb11 with SMTP id fb11so620985pad.3 for <8207@debbugs.gnu.org>; Fri, 21 Sep 2012 20:08:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=YdQ3TkjUcok9uk9wZq2Aor0YYluBg1w4JkxPNCnZVys=; b=Qw3qwnT1kAqmZvs3yh9z+L3ibnv9hGO3YohH2Q8Q0r/KuPvfwyLM4VCbBcTP6Kx9fV GSfV8ih7X4Bzm5Jri5RWA44i/1ERA5wkZfG9QJj1ZQXX6GGnOizFcMWdEkTdF6/FrDek AeT4jOxInkckGSszWcu7UdFdMqASMeuhHCV31XjsHKNrzoB9h5/tnBvPeiUj+Vsv2Klt uRr918b5GEt6KGg0NJfLHCtoleUEwm4UIZ+5r3XTp9LOnASPS+kKtewjYbMVog6991fU De5yFonSgCijzCL5Pnj7a1ur4DByJpB40M8BsOuIXCUNlq86g2Mwc6xVXFuumNAyNzXb U2qQ== Received: by 10.66.73.100 with SMTP id k4mr17404444pav.49.1348283304567; Fri, 21 Sep 2012 20:08:24 -0700 (PDT) Received: from ulysses (cm162.gamma80.maxonline.com.sg. [202.156.80.162]) by mx.google.com with ESMTPS id uj3sm6011142pbc.39.2012.09.21.20.08.21 (version=SSLv3 cipher=OTHER); Fri, 21 Sep 2012 20:08:23 -0700 (PDT) From: Chong Yidong To: Stephen Berman Subject: Re: bug#8207: 24.0.50; undo in indirect buffer leaves stale file lock symlink References: <87tyfdgu29.fsf@escher.fritz.box> Date: Sat, 22 Sep 2012 11:08:19 +0800 In-Reply-To: <87tyfdgu29.fsf@escher.fritz.box> (Stephen Berman's message of "Tue, 08 Mar 2011 22:51:10 +0100") Message-ID: <87lig2bvq4.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 8207 Cc: 8207@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Stephen Berman writes: > 1. emacs -Q > 2. Visit some file, e.g. "foo". > 3. M-: (switch-to-buffer (make-indirect-buffer (current-buffer) "bar")) > 4. In the indirect buffer "bar" do something to modify the buffer, > e.g. type SPC. This causes a file lock symlink like the following to > be added to the directory containing "foo": > .#foo -> steve@escher.fritz.box.800:1299574078 > 5. Type `C-_' to undo the change in step 4, so that "bar" is now > unmodified, and then kill "bar". > => The file lock symlink in foo's directory is still there. Fixed in trunk, thanks. From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 21 23:10:22 2012 Received: (at control) by debbugs.gnu.org; 22 Sep 2012 03:10:22 +0000 Received: from localhost ([127.0.0.1]:47777 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TFG6n-0003On-NE for submit@debbugs.gnu.org; Fri, 21 Sep 2012 23:10:22 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:42269) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TFG6m-0003OH-Mj for control@debbugs.gnu.org; Fri, 21 Sep 2012 23:10:21 -0400 Received: by mail-pa0-f44.google.com with SMTP id fb11so620985pad.3 for ; Fri, 21 Sep 2012 20:08:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version:content-type; bh=AVJy0EBL5W/eYhckFaUzt+BbnCsCZ2HGxfjxCCR3jFk=; b=G+pMR0kDdGN90OHPmi+TDWZ8gzWmYgn5+brhvp30bdXJHesoBTOPCCxwk7/paIF2da h+eRrmqgf43LUgG+okPbEhQG0EbsytrZCFIHf6Pa9MzJTyXX+pST1r6fLVUDVtfjSO3w r60CnaJAoJ4j5sdehqM9pspV8ShJDd6wCyE7toq1nL4bAzVZ3WHOuC7axBqobKy7Y1s4 oW4Tz9VQ4trBzZxV2qojq0Vn2ZE4fyhGrE7gfccq+dKFnkmdMCod32TToRgO9Hg3RID/ 4Fl+3wscd47RlM38vfYf7rYTkDRAUWTWD/KQ+wsexenZPuJILrV+FCG6QuVk+/yd/R8F WtBw== Received: by 10.68.242.9 with SMTP id wm9mr20097045pbc.62.1348283320290; Fri, 21 Sep 2012 20:08:40 -0700 (PDT) Received: from ulysses (cm162.gamma80.maxonline.com.sg. [202.156.80.162]) by mx.google.com with ESMTPS id e9sm5030133pay.34.2012.09.21.20.08.38 (version=SSLv3 cipher=OTHER); Fri, 21 Sep 2012 20:08:39 -0700 (PDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 8207 Date: Sat, 22 Sep 2012 11:08:36 +0800 Message-ID: <87mx0i7o0b.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) close 8207 thanks From unknown Sat Jun 21 10:16:11 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 20 Oct 2012 11:24:03 +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