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 displaying locations in appropriate window or frame Date: Wed, 27 Jan 2016 21:43:31 +0300 Message-ID: <56A90FD3.9010407@yandex.ru> References: <83wprimto9.fsf@gnu.org> <83lh7ym725.fsf@gnu.org> <5691D768.3020908@yandex.ru> <83bn8tmnvq.fsf@gnu.org> <56928356.2000609@yandex.ru> <8360z1mkfc.fsf@gnu.org> <5696EE9D.2090708@yandex.ru> <838u3si22k.fsf@gnu.org> <5697C7A8.6060601@yandex.ru> <83wprcgjxk.fsf@gnu.org> <5697DA3B.3070706@yandex.ru> <83io2wggh8.fsf@gnu.org> <5697EC73.6040302@yandex.ru> <83fuy0gf2j.fsf@gnu.org> <5697F3C9.5040702@yandex.ru> <83bn8ogd8c.fsf@gnu.org> <56980073.7050604@yandex.ru> <838u3rhpzk.fsf@gnu.org> <569D3ADC.5060803@yandex.ru> <83si1sa47q.fsf@gnu.org> <56A06965.7050501@yandex.ru> <83r3ha97yu.fsf@gnu.org> <56A434A9.6040404@yandex.ru> <56A4ADA5.4070607@gmx.at> <56A4CB54.90808@yandex.ru> <56A4E1CF.9010002@gmx.at> <56A50514.9040509@yandex.ru> <56A5140F.2040905@gmx.at> <56A51FA4.5020807@yandex.ru> <56A5EFEE.2080607@gmx.at> <56A6559E.5040301@yandex.ru> <56A666FB.3080709@gmx.at> <56A6A41B.20001@yandex.ru> <56A744E7.5080306@gmx.at> <56A816A8.5020205@yandex.ru> <56A88984.6000407@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1453920269 3354 80.91.229.3 (27 Jan 2016 18:44:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Jan 2016 18:44:29 +0000 (UTC) Cc: Helmut Eller , emacs-devel@gnu.org To: martin rudalics , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 27 19:44:28 2016 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 1aOV4H-0007OE-UQ for ged-emacs-devel@m.gmane.org; Wed, 27 Jan 2016 19:43:50 +0100 Original-Received: from localhost ([::1]:52058 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOV4H-00084P-8D for ged-emacs-devel@m.gmane.org; Wed, 27 Jan 2016 13:43:49 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOV44-00083o-Qh for emacs-devel@gnu.org; Wed, 27 Jan 2016 13:43:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aOV41-000577-LB for emacs-devel@gnu.org; Wed, 27 Jan 2016 13:43:36 -0500 Original-Received: from mail-lf0-x22f.google.com ([2a00:1450:4010:c07::22f]:33447) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOV41-000573-Cq; Wed, 27 Jan 2016 13:43:33 -0500 Original-Received: by mail-lf0-x22f.google.com with SMTP id s81so12153205lfd.0; Wed, 27 Jan 2016 10:43:33 -0800 (PST) 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=VJxww6q4bGD89EoIrcLFNKiGBdkaM58o9bfslEEGQGk=; b=HvbjuzaUESd6SjMVDQTtbu2jqjc+1Jw1RDvecUPLQkcW/6/rYQHmgf6uB4n6YRsx7A AN0C3z/zWSYlhzUW1FDOSDIol9tDGaeTrRvkfhxBJlSbyFKEk4k6V6pk39iRuEQUgWYl A/nBkYtfEukxyAhdjXKza3tYKEPGylKj5XmTJ3ZF7mYbZGLVLpLPmai1lEWqdxb7GMin dt1iq/op0U0PszIzCZXOkaZpv+ZwY34HUls5PUnC1z9DPfUpf5XfdFslfvuz+nKjZ1uT FKalPhYW5vINqjm3WIKxEnPF/X4HDxFw0GXsvPzyihscdj3uzmcfkASS7cDkeC//D7zC Eo4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:cc:from:message-id :date:user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=VJxww6q4bGD89EoIrcLFNKiGBdkaM58o9bfslEEGQGk=; b=gxP8eoEn9gi7MmHMtin7n0qI3sNr6KFcXvl5+kH4f6HQpMqs2PMLPk6mHHcGTkgvFO Z5B6GN7W1hF233OHfGi7oN4Ako/Km3UgFZYGJwOhosVSnhx3ejY3BOT+KpWx8FXXFGq6 iBPsPW7mS90dMnw6Rt26iJXvCp27E26rIsxSAZ11GiVKn6+mrRTWzwdP6ZDnyXpXiB2s PHxx/YEPpzSuo52YAaazhZJJ9jezMJ+HaZcDs4ybabP/zfGmeIu79KnKHGhhdxS0kMKd uXqMP6XzxWLIP6p0z1yUBgANYUm7zRIqvwuiwbNFy4OA3KBODAfu2M3bdxSW316yCjnL bG0w== X-Gm-Message-State: AG10YORhoCxXOggofRegD1BJccZTtn3TkECnkLPb8UFrlSfoESm7Nzb05OB5ZitxIxll2w== X-Received: by 10.25.90.13 with SMTP id o13mr11826029lfb.114.1453920212557; Wed, 27 Jan 2016 10:43:32 -0800 (PST) Original-Received: from [192.168.1.190] ([178.252.127.222]) by smtp.googlemail.com with ESMTPSA id a124sm971280lfa.40.2016.01.27.10.43.31 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 27 Jan 2016 10:43:31 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:44.0) Gecko/20100101 Thunderbird/44.0 In-Reply-To: <56A88984.6000407@gmx.at> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::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:198922 Archived-At: On 01/27/2016 12:10 PM, martin rudalics wrote: > > Why <= 2? Are you saying I should use some different function, after > > applying the dedicated status and switch to the window O? > > Did you try it? In a default Emacs this won't split anything but either > reuse O or make a new frame. Why is it a drawback of pop-to-buffer, though? It should work fine, as long as split thresholds have adequate values. > > I thought pop-to-buffer is basically the default choice for displaying > > a buffer when you're not sure which window to use. > > It is. But in a default Emacs you still won't get your third window. > You can't beat the system by using ‘pop-to-buffer’ alone. I think "beating the system" here would be a wrong choice. > Which IMHO is no problem per se. But you probably have to explain > somewhere that ‘xref-find-definitions-other-window’ _by default_ behaves > just like ‘xref-find-definitions’ when leaving *xref* visible. You're right, it's a problem, and I don't know a good solution. It's not a great thing to have to document.