From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: xref and leaving "temporary" buffers open Date: Sat, 25 Jul 2015 19:38:46 +0300 Message-ID: <83615819bd.fsf@gnu.org> References: <55B2DC8F.3050305@yandex.ru> <83vbd81yti.fsf@gnu.org> <55B38E95.5060902@yandex.ru> <83h9os1gbx.fsf@gnu.org> <55B39C3A.9070107@yandex.ru> <83egjw1ez7.fsf@gnu.org> <55B3A6AD.6030008@yandex.ru> <83bnf01cly.fsf@gnu.org> <55B3B428.5080301@yandex.ru> <83a8uk1aef.fsf@gnu.org> <55B3B91A.2000509@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1437842345 22928 80.91.229.3 (25 Jul 2015 16:39:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 25 Jul 2015 16:39:05 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 25 18:38:55 2015 Return-path: Envelope-to: ged-emacs-devel@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 1ZJ2TO-00024R-Ib for ged-emacs-devel@m.gmane.org; Sat, 25 Jul 2015 18:38:54 +0200 Original-Received: from localhost ([::1]:48585 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJ2TN-000091-Vp for ged-emacs-devel@m.gmane.org; Sat, 25 Jul 2015 12:38:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38344) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJ2TL-00008t-5I for emacs-devel@gnu.org; Sat, 25 Jul 2015 12:38:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZJ2TG-0002iG-5B for emacs-devel@gnu.org; Sat, 25 Jul 2015 12:38:51 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:51056) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJ2TF-0002hF-TO for emacs-devel@gnu.org; Sat, 25 Jul 2015 12:38:46 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NS100G00Y43E900@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Sat, 25 Jul 2015 19:38:44 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NS100FTCY8KY2C0@a-mtaout20.012.net.il>; Sat, 25 Jul 2015 19:38:44 +0300 (IDT) In-reply-to: <55B3B91A.2000509@yandex.ru> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:188078 Archived-At: > Cc: emacs-devel@gnu.org > From: Dmitry Gutov > Date: Sat, 25 Jul 2015 19:28:10 +0300 > > On 07/25/2015 07:15 PM, Eli Zaretskii wrote: > > > You could detect this using buffer-modified-tick, no? You could also > > refrain from killing any of these buffers displayed in some window, or > > present in the relevant history lists. > > The tick doesn't change if the user hasn't modified the contents. And if > the buffer is not visible just now, that doesn't mean that it's > unwanted. Both useful heuristics, but still less than ideal, IMO. I meant 3 devices, not 2. And I think all of them together go a long way towards eliminating accidental deletion of a buffer the user would like to keep. Plus, they can always refrain from invoking the command, if they are afraid of losing buffers. And if worse comes to worst, the file can be visited again.