From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: xref and leaving "temporary" buffers open Date: Tue, 28 Jul 2015 17:40:33 +0200 Message-ID: <55B7A271.9060908@gmx.at> 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> <55B4C439.1040909@gmx.at> <55B4E5B3.3000108@yandex.ru> <55B65610.7070308@gmx.at> <55B77C57.6010306@yandex.ru> <55B780C1.6020307@gmx.at> <55B78512.7060309@yandex.ru> <55B79B71.7060807@gmx.at> <55B79D52.2000000@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1438098072 14721 80.91.229.3 (28 Jul 2015 15:41:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Jul 2015 15:41:12 +0000 (UTC) To: Dmitry Gutov , emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 28 17:41:03 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 1ZK701-000709-A7 for ged-emacs-devel@m.gmane.org; Tue, 28 Jul 2015 17:41:01 +0200 Original-Received: from localhost ([::1]:59579 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZK6zz-0003oZ-VE for ged-emacs-devel@m.gmane.org; Tue, 28 Jul 2015 11:40:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZK6zj-0003oJ-7H for emacs-devel@gnu.org; Tue, 28 Jul 2015 11:40:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZK6ze-0006C8-7r for emacs-devel@gnu.org; Tue, 28 Jul 2015 11:40:43 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:64970) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZK6zd-0006BY-Sw for emacs-devel@gnu.org; Tue, 28 Jul 2015 11:40:38 -0400 Original-Received: from [91.113.4.165] ([91.113.4.165]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0LwXCt-1YpVyV2VZP-018JJu; Tue, 28 Jul 2015 17:40:36 +0200 In-Reply-To: <55B79D52.2000000@yandex.ru> X-Provags-ID: V03:K0:j8EcdFkNZj8p2oJ+0lMGqQ/VbjfjMsyoNYFqSzCVPOq+/xPCpXD 06Q5QxOhUTKGKY/k9KUmvT/2IDqe1rsqRnIGeY+tIqemBkYTQBK4Zm5kl4Ac/d29d2EaDJp gL887T89EU81ndsJ/FSlsDc1z+0Xjvg7UxnrEs2j2KVVRAtcOPtNSet0uGSaGZL6gp0mtjW E378SxOvc89jqZvz1y9GA== X-UI-Out-Filterresults: notjunk:1;V01:K0:QoM1BzrpWpM=:03hu3jldJeUP2d5jjGkYcg dwgPVg4wD+DbkxmMQWI27iUgKpQNOmSNXU8ddXLqO8MORBUBChINyASvii+wqKigam03I7FM+ 4IELH4FS88XMl+SXCyItzryOR5mpjcjdzo9vFxWS64sGxaD/y8wAllSx5TLL2yKur4Xph7Oy9 X6SAQ3/dd6L3pjv+8RCGk1E4TKOM6l5fNZqMXiX3wvVkixGoabh/dNpXcKLBTTHf8gEtgai2S gkQUEAc4NYTkemlXSFAgD3f4c2lPRjS3a1hhE7Jxv17Ir1SFj5kqZnU6L21sJMqpxb3Ben788 sdb8WJIzf7+BS0bkyX0duvKqKrSJQlMhRaaccdcGHhJ2bVrwL3UVSL9Zvo35QX2Hex+2AzPQX 8uvry/4e/ernqPW2PaClNV8pC75adkWN9P0C8V5AKKV+ulugRp81HZVt4uOF5srOXngHB4m0o auFxdWOZDYrhWQjDGbZNrxkxF9eJfzCbHHQx2vBH7ccA1STUqCj7BaY97lEswM9XomhmSKAw7 WHslmgZfzG0Q1IMPfBdsHNVjmlFwmvmwSxlAslVqfoMI1pOS2KAn5qqLnuprJfPOYNaSRd9P3 tbVH8O3PaDbRexeXx/K9GiC4DGcXkkA127Vv8OTRd+Vx/K9SL38333sun2hGNO1ezmYVCfB/Z d0Ns5/bQ2a+Lm8roZbqsSwq81AaLZRNUDmfljW12lf4sXy4AY00as2UgxCXF8cQVqVC0= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.22 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:188135 Archived-At: >> I suppose you mean that `find-file-hidden' should always behave the same >> as `find-file-noselect' but for setting the hidden flag. > > In this case it wouldn't set the flag either. If the file is already open, just return its buffer. The caller can then proceed to read its contents. Suppose a user is visiting a file ~/foo/bar in a buffer called bar and has set `uniquify-buffer-name-style' to 'post-forward-angle-brackets. Now xref visits a file ~/bar/bar which the user has _not_ visited yet. In this case uniquify will rename the first buffer to bar and name the second buffer bar. The user will notice that her buffer has been renamed although she has no idea that a buffer bar exists. > I suppose. That's the same issue I mentioned WRT find-buffer-visiting, right? Probably. I forgot. How many files do we need to make this investment pay off? martin