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: Sat, 07 Jun 2014 11:34:39 +0300 Message-ID: <83tx7x2k4g.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1402130125 14066 80.91.229.3 (7 Jun 2014 08:35:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 7 Jun 2014 08:35:25 +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 Sat Jun 07 10:35:18 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 1WtC5t-0007OI-Mv for geb-bug-gnu-emacs@m.gmane.org; Sat, 07 Jun 2014 10:35:17 +0200 Original-Received: from localhost ([::1]:51027 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtC5t-00026F-93 for geb-bug-gnu-emacs@m.gmane.org; Sat, 07 Jun 2014 04:35:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43983) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtC5k-00023C-LQ for bug-gnu-emacs@gnu.org; Sat, 07 Jun 2014 04:35:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WtC5f-00043B-Aj for bug-gnu-emacs@gnu.org; Sat, 07 Jun 2014 04:35:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48961) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtC5f-00042z-7p for bug-gnu-emacs@gnu.org; Sat, 07 Jun 2014 04:35:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WtC5e-0000s2-PI for bug-gnu-emacs@gnu.org; Sat, 07 Jun 2014 04:35: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: Sat, 07 Jun 2014 08:35: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.14021300963331 (code B ref 17706); Sat, 07 Jun 2014 08:35:02 +0000 Original-Received: (at 17706) by debbugs.gnu.org; 7 Jun 2014 08:34:56 +0000 Original-Received: from localhost ([127.0.0.1]:40111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WtC5Y-0000rd-1k for submit@debbugs.gnu.org; Sat, 07 Jun 2014 04:34:56 -0400 Original-Received: from mtaout24.012.net.il ([80.179.55.180]:48035) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WtC5U-0000rH-VO for 17706@debbugs.gnu.org; Sat, 07 Jun 2014 04:34:54 -0400 Original-Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0N6S00K00HF30U00@mtaout24.012.net.il> for 17706@debbugs.gnu.org; Sat, 07 Jun 2014 11:31:05 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N6S00IPSIBTQJ40@mtaout24.012.net.il>; Sat, 07 Jun 2014 11:31:05 +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:90159 Archived-At: > From: Ken Olum > Cc: 17706@debbugs.gnu.org > Date: Fri, 06 Jun 2014 12:29:33 -0400 > > From: Eli Zaretskii > Date: Fri, 06 Jun 2014 18:50:23 +0300 > > I wonder in what Emacs version you don't see it. > > I don't see it in 23.3. The reason is that this version has a bug in > which it deletes newlines from the end of the mail file before getting > new mail. So it modifies the file before calling > rmail-insert-inbox-text and so gives the ask-user-about-lock query > before calling rmail-insert-inbox-text. > > My recollection is that this didn't happen either in builds that I made > from trunk a few months ago, but I could easily be confused. In > particular, I have a bunch of rmail hacks, and if one of these were > modifying the buffer before rmail-insert-inbox-text it would be the same > as above. In 24.3 (using -Q to make sure nothing strange is going on), > I get the "RMAIL file RMAIL is locked". So I think we should not worry > too much about why it seems only to be bothering me now. Maybe we should improve what Emacs does in this case by calling ask-user-about-lock instead of just erroring out? The information with which to call ask-user-about-lock is already available at that point, since it is the value returned by file-locked-p. Then the prompt will be what you expected it to be, and will also be consistent with what Emacs does when 2 sessions try to modify the same file. Would you like to prepare a patch along these lines?