From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: {file} "locked by ... pid NNN", but there is no process NNN Date: Sat, 09 Jan 2016 18:55:39 +0200 Message-ID: <83ziwen14k.fsf@gnu.org> References: <2a0feba2-1cf6-498f-bbea-7fca8ce5d56e@googlegroups.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1452358558 26407 80.91.229.3 (9 Jan 2016 16:55:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Jan 2016 16:55:58 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 09 17:55:54 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aHwnw-0007rl-RL for geh-help-gnu-emacs@m.gmane.org; Sat, 09 Jan 2016 17:55:52 +0100 Original-Received: from localhost ([::1]:41352 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHwnw-0002Ih-8k for geh-help-gnu-emacs@m.gmane.org; Sat, 09 Jan 2016 11:55:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41812) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHwnm-0002IQ-H1 for help-gnu-emacs@gnu.org; Sat, 09 Jan 2016 11:55:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aHwnj-0005YX-BT for help-gnu-emacs@gnu.org; Sat, 09 Jan 2016 11:55:42 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38299) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHwnj-0005YT-8T for help-gnu-emacs@gnu.org; Sat, 09 Jan 2016 11:55:39 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2568 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aHwni-0003l6-5o for help-gnu-emacs@gnu.org; Sat, 09 Jan 2016 11:55:38 -0500 In-reply-to: <2a0feba2-1cf6-498f-bbea-7fca8ce5d56e@googlegroups.com> (message from djc on Sat, 9 Jan 2016 08:12:05 -0800 (PST)) 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-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:108678 Archived-At: > Date: Sat, 9 Jan 2016 08:12:05 -0800 (PST) > From: djc > > With a single instance of emacs running a function of my own on a file that makes no use of external activities, I get the message > > ...{file} locked by AB@CDE (pid 3964): (s, q, p, ?)? > > but there is no process with PID 3964 and no other emacs running. There *is* another buffer open on the file under a different pathname ("~/..." vs "X:\..."), though I don't know how that happened, since I dragged the file from a Windows Explorer window to visit it. > > I found myself facing this message while debugging that function, which blocked or looped with high CPU usage when run in batch mode on that file or a similar one. > > The message seems wrongheaded to me, but what's the best response to the problem? Can you give a reproducible recipe for the problem, preferably starting from "emacs -Q"? When I drag a file from Explorer, Emacs correctly detects that X:\foo\bar and ~/bar are the same file, and doesn't create another buffer for the same file. So some other factor(s) is/are at work here.