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.bugs Subject: bug#70415: 30.0.50; [Cygwin] `lock-file' creates a symlink with funny name Date: Wed, 17 Apr 2024 15:08:18 +0300 Message-ID: <864jc0i43x.fsf@gnu.org> References: <861q75juvy.fsf@gnu.org> <8358ccc6-56f4-4f72-9c8a-08356ffd90a3@cornell.edu> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12525"; mail-complaints-to="usenet@ciao.gmane.io" Cc: yamaoka@jpl.org, 70415@debbugs.gnu.org To: Ken Brown Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 17 14:09:10 2024 Return-path: Envelope-to: geb-bug-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 1rx46A-00031v-3Q for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 17 Apr 2024 14:09:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rx45t-00045H-IS; Wed, 17 Apr 2024 08:08:53 -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 1rx45r-000458-C0 for bug-gnu-emacs@gnu.org; Wed, 17 Apr 2024 08:08:51 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rx45r-0006pm-3K for bug-gnu-emacs@gnu.org; Wed, 17 Apr 2024 08:08:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rx463-0000pm-Oj for bug-gnu-emacs@gnu.org; Wed, 17 Apr 2024 08:09:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Apr 2024 12:09:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70415 X-GNU-PR-Package: emacs Original-Received: via spool by 70415-submit@debbugs.gnu.org id=B70415.17133557273048 (code B ref 70415); Wed, 17 Apr 2024 12:09:03 +0000 Original-Received: (at 70415) by debbugs.gnu.org; 17 Apr 2024 12:08:47 +0000 Original-Received: from localhost ([127.0.0.1]:45961 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rx45n-0000n6-1g for submit@debbugs.gnu.org; Wed, 17 Apr 2024 08:08:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60354) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rx45j-0000m1-Iu for 70415@debbugs.gnu.org; Wed, 17 Apr 2024 08:08: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 1rx45N-0006nq-T0; Wed, 17 Apr 2024 08:08:24 -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=NshFUFinCAkCBSK5Q98bkzXtAXCXjZJ1jETnSp8iDhg=; b=ISJNjn1xUdWh 0odgEcr7eUyPRAkL6NbnyT/oaHkPkAFfvdnx+yriEK7fJXrGBQpMD6edSIQne2RtTT2QW2yFQc4U8 ONLJPXgYUjd2qKKKKH6y2MfzMb//LhzBW90idn+YDOxp9iIFpmTxa1A5WeXb8E9aYsJ2T7Mwdux9c VyNc/NIsXV1Ov8GlXBosEZzRNCaV9+DHiHonjLwuIXzPdM/T1f10XeSWo1kc7L02N6D8MQAF82KQa 4GVRwwr5Td5GneOliUlw9Si748OCrBkd0R/ObCNyi97AMLNvf5OWw0XZ9ReJgF6d6wwSd+R/TGxHZ UdF3DaB7PfuwzzeCXPDO0w==; In-Reply-To: <8358ccc6-56f4-4f72-9c8a-08356ffd90a3@cornell.edu> (message from Ken Brown on Tue, 16 Apr 2024 18:57:21 -0400) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:283482 Archived-At: > Date: Tue, 16 Apr 2024 18:57:21 -0400 > Cc: 70415@debbugs.gnu.org > From: Ken Brown > > On 4/16/2024 9:32 AM, Eli Zaretskii wrote: > >> Date: Tue, 16 Apr 2024 21:33:07 +0900 > >> From: Katsumi Yamaoka > >> > >> As you know, Emacs creates a lock file when start editing a FILE > >> by default, it is a symbolic link that is linked to a name > >> looking like this: > >> > >> .#FILE -> username@hostname.1234 > >> > >> Where 1234 is Emacs' pid. It will be removed after saving > >> the FILE. Even if the lock file is left, Emacs will remove it > >> when opening the FILE for the next time. However, recently lock > >> files no longer got deleted on at least the latest Cygwin on > >> Windows 11. It is (probably) because Emacs came to create lock > >> files with a funny name like this: > >> > >> .#FILE -> username@hostname.1234:-11644473599 > >> > >> For that case `(unlock-file "FILE")' issues this warning: > >> > >> Warning (unlock-file): Unlocking file: Invalid argument, FILE, ignored > > > > Does Cygwin support file names with a colon, such as the above? > > I'm traveling at the moment, and it will be a while until I have a > chance to look at this report closely or try to reproduce it. But I can > answer your question: Cygwin does support file names with a colon. This > is documented at > > https://cygwin.com/cygwin-ug-net/using-specialnames.html That's what I thought. But in that case, someone will have to step through the code in filelock.c and tell why removing these lock files fails in the Cygwin build of Emacs.