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#13743: 24.2.93; Segmentation fault when trying to [s]teal a file opened elsewhere Date: Mon, 25 Feb 2013 21:31:46 +0200 Message-ID: <83r4k4i40t.fsf@gnu.org> References: <5125ADA9.3070603@cs.ucla.edu> <51283965.2020107@yandex.ru> <837glzkqvc.fsf@gnu.org> <83621ilvk9.fsf@gnu.org> <512A31A0.4040804@yandex.ru> <83ehg5k8xe.fsf@gnu.org> <512AFC18.4090504@yandex.ru> <83zjysicj7.fsf@gnu.org> <512BB694.3030501@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1361820754 27045 80.91.229.3 (25 Feb 2013 19:32:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Feb 2013 19:32:34 +0000 (UTC) Cc: 13743@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 25 20:32:57 2013 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 1UA3n9-0007DO-Ty for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Feb 2013 20:32:52 +0100 Original-Received: from localhost ([::1]:41984 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UA3mp-0007QI-3V for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Feb 2013 14:32:31 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53334) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UA3ml-0007Fj-4w for bug-gnu-emacs@gnu.org; Mon, 25 Feb 2013 14:32:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UA3mf-0006eL-OQ for bug-gnu-emacs@gnu.org; Mon, 25 Feb 2013 14:32:27 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44500) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UA3mf-0006eC-KX for bug-gnu-emacs@gnu.org; Mon, 25 Feb 2013 14:32:21 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UA3oH-0001IA-MA for bug-gnu-emacs@gnu.org; Mon, 25 Feb 2013 14:34:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Feb 2013 19:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13743 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13743-submit@debbugs.gnu.org id=B13743.13618208244935 (code B ref 13743); Mon, 25 Feb 2013 19:34:01 +0000 Original-Received: (at 13743) by debbugs.gnu.org; 25 Feb 2013 19:33:44 +0000 Original-Received: from localhost ([127.0.0.1]:49964 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UA3o0-0001HX-FL for submit@debbugs.gnu.org; Mon, 25 Feb 2013 14:33:44 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:48286) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UA3nx-0001HP-Qc for 13743@debbugs.gnu.org; Mon, 25 Feb 2013 14:33:43 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MIS00D00JJNVE00@a-mtaout20.012.net.il> for 13743@debbugs.gnu.org; Mon, 25 Feb 2013 21:31:52 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MIS00DLCJL4HK70@a-mtaout20.012.net.il>; Mon, 25 Feb 2013 21:31:52 +0200 (IST) In-reply-to: <512BB694.3030501@yandex.ru> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.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:71794 Archived-At: > Date: Mon, 25 Feb 2013 23:08:04 +0400 > From: Dmitry Gutov > CC: monnier@iro.umontreal.ca, 13743@debbugs.gnu.org > > On 25.02.2013 20:27, Eli Zaretskii wrote: > > Btw, what mmm-mode does is quite nasty, because it causes stale lock > > files to be left behind, if you press 'p' when Emacs says that the > > file is locked. This is because mmm-mode makes the buffer unmodified > > again after doing whatever it is that causes these prompts, and if you > > then kill Emacs without ever editing the file, the function that > > unlocks the file is not called (because the buffer is not modified). > > AFAICT, it only did that to make sure the subsequent `kill-buffer' > doesn't query the user. It doesn't seem to do that either way, so I > removed the `set-buffer-modified-p' call. And after removing that call, do you end up with a "modified" buffer after visiting a file? > But Emacs still leaves the orphan lock files upon exit. > Maybe that has something to do with the fact that said modification and > killing are being performed in a temporary indirect buffer. I doubt that. The only thing that matters to file locking is the name of the file. It doesn't care about buffers.