From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#17706: 24.4.50; locked file error in rmail-insert-inbox-text Date: Fri, 06 Jun 2014 11:03:44 +0300 Message-ID: <83ha3y4g7z.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1402041872 7997 80.91.229.3 (6 Jun 2014 08:04:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Jun 2014 08:04:32 +0000 (UTC) Cc: 17706@debbugs.gnu.org To: Ken Olum Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 06 10:04:25 2014 Return-path: Envelope-to: geb-bug-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 1Wsp8P-0008Hj-ED for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Jun 2014 10:04:21 +0200 Original-Received: from localhost ([::1]:45713 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wsp8O-00022j-RN for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Jun 2014 04:04:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38149) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wsp8E-000222-Pv for bug-gnu-emacs@gnu.org; Fri, 06 Jun 2014 04:04:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wsp86-0006GG-Sh for bug-gnu-emacs@gnu.org; Fri, 06 Jun 2014 04:04:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47623) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wsp86-0006G3-QZ for bug-gnu-emacs@gnu.org; Fri, 06 Jun 2014 04:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wsp86-0006O6-8d for bug-gnu-emacs@gnu.org; Fri, 06 Jun 2014 04:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Jun 2014 08:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17706 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17706-submit@debbugs.gnu.org id=B17706.140204184124551 (code B ref 17706); Fri, 06 Jun 2014 08:04:02 +0000 Original-Received: (at 17706) by debbugs.gnu.org; 6 Jun 2014 08:04:01 +0000 Original-Received: from localhost ([127.0.0.1]:46500 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wsp85-0006Nr-B9 for submit@debbugs.gnu.org; Fri, 06 Jun 2014 04:04:01 -0400 Original-Received: from mtaout26.012.net.il ([80.179.55.182]:45164) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wsp83-0006NP-EW for 17706@debbugs.gnu.org; Fri, 06 Jun 2014 04:04:00 -0400 Original-Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0N6Q00800M5KYY00@mtaout26.012.net.il> for 17706@debbugs.gnu.org; Fri, 06 Jun 2014 11:00:27 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N6Q0072AM8RJB20@mtaout26.012.net.il>; Fri, 06 Jun 2014 11:00:27 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:90115 Archived-At: > From: Ken Olum > Date: Thu, 05 Jun 2014 16:10:25 -0400 > > If I have two invocations of emacs and in one I have modified but not > saved my RMAIL file, and then I try to read my mail in the other, > rmail-insert-inbox-text gives the error "RMAIL file ... is locked". I > think it should call ask-user-about-lock instead, so I have the > opportunity to steal the lock and so forth. > > This happens to me because I run emacs on the same server machine from > home and work, so if I go home without saving my mail file, I will get > this problem when I tried to read my mail from home. But it seems to me > that it has only started happening recently, even though the code in > rmail-insert-inbox-text has been there a long time. Previously I always > got the usual query: "... locked by kdo... (pid ....): (s, q, p, ?)?". > Perhaps it was formerly trying to modify file earlier in the process, > before the explicit check at the start of rmail-insert-inbox-text, and > so generating the usual query. Can you please give a complete recipe starting with "emacs -Q" in both sessions? I tried something I thought you were doing, but couldn't reproduce it. I got the "locked by NNNN (pid nnn): (s, q, p, ?)" message, as you expected.