From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: xref and leaving "temporary" buffers open Date: Sun, 26 Jul 2015 14:00:57 -0500 Message-ID: <86h9oqbv6e.fsf@stephe-leake.org> References: <55B2DC8F.3050305@yandex.ru> <55B3489C.2070009@gmx.at> <55B390CE.6020104@yandex.ru> <55B3994A.5010709@gmx.at> <55B3A0B6.6080101@yandex.ru> <55B3B0FC.3080004@gmx.at> <55B3EDBD.8050409@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1437937296 14164 80.91.229.3 (26 Jul 2015 19:01:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 26 Jul 2015 19:01:36 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 26 21:01:21 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 1ZJRAn-0004D2-6W for ged-emacs-devel@m.gmane.org; Sun, 26 Jul 2015 21:01:21 +0200 Original-Received: from localhost ([::1]:50736 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJRAm-0006sr-IL for ged-emacs-devel@m.gmane.org; Sun, 26 Jul 2015 15:01:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43914) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJRAj-0006sb-M2 for emacs-devel@gnu.org; Sun, 26 Jul 2015 15:01:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZJRAf-0007Lk-5c for emacs-devel@gnu.org; Sun, 26 Jul 2015 15:01:17 -0400 Original-Received: from gproxy4-pub.mail.unifiedlayer.com ([69.89.23.142]:55343) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1ZJRAe-0007LQ-Th for emacs-devel@gnu.org; Sun, 26 Jul 2015 15:01:13 -0400 Original-Received: (qmail 25399 invoked by uid 0); 26 Jul 2015 19:01:09 -0000 Original-Received: from unknown (HELO CMOut01) (10.0.90.82) by gproxy4.mail.unifiedlayer.com with SMTP; 26 Jul 2015 19:01:08 -0000 Original-Received: from host114.hostmonster.com ([74.220.207.114]) by CMOut01 with id x7101q00U2UdiVW0171311; Sun, 26 Jul 2015 13:01:08 -0600 X-Authority-Analysis: v=2.1 cv=NJxGpSKg c=1 sm=1 tr=0 a=CQdxDb2CKd3SRg4I0/XZPQ==:117 a=CQdxDb2CKd3SRg4I0/XZPQ==:17 a=DsvgjBjRAAAA:8 a=f5113yIGAAAA:8 a=9i_RQKNPAAAA:8 a=y7kgw_RnJtkA:10 a=hEr_IkYJT6EA:10 a=x_XPkuGwIRMA:10 a=zOBTXjUuO1YA:10 a=vaJtXVxTAAAA:8 a=dFqsQC2dJ1GZifKB7QUA:9 Original-Received: from [76.218.37.33] (port=56140 helo=TAKVER2) by host114.hostmonster.com with esmtpa (Exim 4.84) (envelope-from ) id 1ZJRAS-00056G-T9 for emacs-devel@gnu.org; Sun, 26 Jul 2015 13:01:01 -0600 In-Reply-To: <55B3EDBD.8050409@yandex.ru> (Dmitry Gutov's message of "Sat, 25 Jul 2015 23:12:45 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (windows-nt) X-Identified-User: {2442:host114.hostmonster.com:stephele:stephe-leake.org} {sentby:smtp auth 76.218.37.33 authed with stephen_leake@stephe-leake.org} X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 69.89.23.142 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:188099 Archived-At: Dmitry Gutov writes: > On 07/25/2015 06:53 PM, martin rudalics wrote: > >> All file visiting functions must be aware of it and take it out. As far >> as implementation is concerned we have the usual two choices: Pass an >> extra argument (clean but costly) or bind some variable around the calls >> that visit the file in the background which is probably the way to go. > > How about this: > > (defvar-local buffer-hidden nil > "When non-nil, this buffer is not returned by `buffer-list', > unless passed a non-nil INCLUDE-HIDDEN argument.") That means you have to use set-buffer to check for the buffer-local variable. Can't we set a property list on the buffer itself? That would be more efficient to search on. -- -- Stephe