From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nix Newsgroups: gmane.emacs.devel Subject: Re: xref and leaving "temporary" buffers open Date: Mon, 27 Jul 2015 18:34:16 +0100 Message-ID: <87fv49qzc7.fsf@spindle.srvr.nix> 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> <83615819bd.fsf@gnu.org> <55B3C14D.9020005@yandex.ru> <55B3D2C8.3090606@gmx.at> <55B3D5A8.6090904@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1438018491 24740 80.91.229.3 (27 Jul 2015 17:34:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Jul 2015 17:34:51 +0000 (UTC) Cc: martin rudalics , Eli Zaretskii , emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 27 19:34:46 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 1ZJmIW-0001Yu-4l for ged-emacs-devel@m.gmane.org; Mon, 27 Jul 2015 19:34:44 +0200 Original-Received: from localhost ([::1]:54765 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJmIV-0000AQ-G3 for ged-emacs-devel@m.gmane.org; Mon, 27 Jul 2015 13:34:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49476) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJmII-0000AE-Ld for emacs-devel@gnu.org; Mon, 27 Jul 2015 13:34:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZJmIH-0001iw-Ev for emacs-devel@gnu.org; Mon, 27 Jul 2015 13:34:30 -0400 Original-Received: from icebox.esperi.org.uk ([81.187.191.129]:34105 helo=mail.esperi.org.uk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJmIE-0001i2-0t; Mon, 27 Jul 2015 13:34:26 -0400 Original-Received: from spindle.srvr.nix (nix@spindle.srvr.nix [192.168.14.15]) by mail.esperi.org.uk (8.14.9/8.14.8) with ESMTP id t6RHYGjH020152; Mon, 27 Jul 2015 18:34:16 +0100 Emacs: indefensible, reprehensible, and fully extensible. In-Reply-To: <55B3D5A8.6090904@yandex.ru> (Dmitry Gutov's message of "Sat, 25 Jul 2015 21:30:00 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-DCC-URT-Metrics: spindle 1060; Body=4 Fuz1=4 Fuz2=4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 81.187.191.129 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:188113 Archived-At: On 25 Jul 2015, Dmitry Gutov outgrape: > On 07/25/2015 09:17 PM, martin rudalics wrote: >> > ... the distinction of open vs. loaded buffers, ... >> >> Please let's try to find a better notation. Both "open" and "loaded" >> are very confusing. "Fore-/background" buffers, "ex-/implicit" buffers >> are not good either. > > I'm also worried about that. > > Temporary? Might be not too good for the ones we'll want to keep > around indefinitely (although I've yet to see a solid use case for > that). FWIW, there are existing packages which automatically kill buffers that weren't modified for a certain period of time and are no longer displayed in any frame (using the buffer-modified-tick). If you combine that with a modification such that the comparatively limited set of commands that explicitly open buffers on user request set a buffer-local 'persistent-buffer' variable in them, you can then arrange to automatically erase all non-persistent buffers without touching the packages that open such buffers. (However, this would tend to break third-party modes that open lots of extra buffers -- but how many of those are there? It's mostly things, like Gnus, that implement whole multi-buffer applications inside Emacs, I think. There seem to be arguments in favour both of the local variable to mark temporariness and the local variable to mark *non*-temporariness...) -- NULL && (void)