From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: xref and leaving "temporary" buffers open Date: Sat, 25 Jul 2015 19:07:04 +0300 Message-ID: <55B3B428.5080301@yandex.ru> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1437840439 26886 80.91.229.3 (25 Jul 2015 16:07:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 25 Jul 2015 16:07:19 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 25 18:07:18 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 1ZJ1yn-0005D3-D0 for ged-emacs-devel@m.gmane.org; Sat, 25 Jul 2015 18:07:17 +0200 Original-Received: from localhost ([::1]:48532 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJ1ym-0001oo-GL for ged-emacs-devel@m.gmane.org; Sat, 25 Jul 2015 12:07:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60052) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJ1yi-0001jh-Up for emacs-devel@gnu.org; Sat, 25 Jul 2015 12:07:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZJ1yf-0004Nl-Pk for emacs-devel@gnu.org; Sat, 25 Jul 2015 12:07:12 -0400 Original-Received: from mail-wi0-x22f.google.com ([2a00:1450:400c:c05::22f]:35521) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJ1yf-0004NK-IX; Sat, 25 Jul 2015 12:07:09 -0400 Original-Received: by wibxm9 with SMTP id xm9so61567666wib.0; Sat, 25 Jul 2015 09:07:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=5Em6oRAw/2c2+DRwXuzwdylZ5HSGqYx1m8xQIZj1iLk=; b=ryXvc7GsLAGdFeqMBILK4vOSUQ9Mt/+q5Y5febBAkOhz+F1LUPkNClkDqMJfLSz25P 0FmZgV6n2CkbR6Yuj5NoL+E9UxadgOFQizxS1E5l4qlYGNvThwis32nScf9K1E2QsZa4 L5szsjE7AVhY2Fe8BZfBbelkVV5AazpdShFh1spYoK7BcTkthuvqKkZ7YnbZeF1RkWOv 9XSmYR5X1LHl/WteLfYuISu7ppGiFKPM9Eu9x1SxARucs5CYLWd93zjbF76/9cJ+1T+Y jUYcMMuku6F806oGKbSEBu550TTcc0i0+yh6HVz27CONchlHw+QaBtES1aUwzIA5LhhE IYVA== X-Received: by 10.180.77.69 with SMTP id q5mr7784869wiw.75.1437840428890; Sat, 25 Jul 2015 09:07:08 -0700 (PDT) Original-Received: from [192.168.1.2] ([185.105.175.24]) by smtp.googlemail.com with ESMTPSA id r19sm3925473wib.7.2015.07.25.09.07.07 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 25 Jul 2015 09:07:08 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0 In-Reply-To: <83bnf01cly.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::22f 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:188075 Archived-At: On 07/25/2015 06:27 PM, Eli Zaretskii wrote: > Then perhaps there should be a command to kill all those buffers > created by xref for these purposes. Suppose we tag them with a buffer-local variable. What if the use switches to one of these buffers on their own accord, with find-file or switch-to-buffer? They might not be aware that that buffer was opened by xref, and would be surprised to see M-x xref-kill-temporary-buffers kill that buffer as well. > OTOH, look at the example of info.el's info-apropos: it doesn't keep > around the Info manuals it visits. So this is also a reasonable > behavior we have elsewhere. It keeps a cache of search results (and initiates full search for any input not in cached list). That's nice, but probably solves a different problem. > Again, if that can be identified, fine. But if not, having several > optional behaviors is the Emacs'y way of not forcing users into > Procrustean situations. Of course. But first we should try.