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 displaying locations in appropriate window or frame Date: Sun, 24 Jan 2016 11:55:33 +0100 Message-ID: <56A4ADA5.4070607@gmx.at> References: <83wprimto9.fsf@gnu.org> <56916C10.6050004@yandex.ru> <83oacumqmj.fsf@gnu.org> <56917246.1010800@yandex.ru> <5691795E.9010008@yandex.ru> <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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1453632974 17113 80.91.229.3 (24 Jan 2016 10:56:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Jan 2016 10:56:14 +0000 (UTC) Cc: Helmut Eller , emacs-devel@gnu.org To: Dmitry Gutov , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 24 11:56:06 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 1aNIKy-0000Jc-R8 for ged-emacs-devel@m.gmane.org; Sun, 24 Jan 2016 11:56:05 +0100 Original-Received: from localhost ([::1]:59953 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNIKy-0005RH-0N for ged-emacs-devel@m.gmane.org; Sun, 24 Jan 2016 05:56:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNIKi-0005R0-9N for emacs-devel@gnu.org; Sun, 24 Jan 2016 05:55:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aNIKe-0007oU-7e for emacs-devel@gnu.org; Sun, 24 Jan 2016 05:55:48 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:51673) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNIKd-0007nS-U9; Sun, 24 Jan 2016 05:55:44 -0500 Original-Received: from [192.168.1.100] ([212.95.7.84]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0Lfolq-1ZmHkU3T1W-00pKPU; Sun, 24 Jan 2016 11:55:40 +0100 In-Reply-To: <56A434A9.6040404@yandex.ru> X-Provags-ID: V03:K0:0SBadXbXkBk0NkbMkB4DwWVn4nxGo26kIoOzPigtOX/CjxkQ9fz wEb6h3UwF1WY9Yg5OHf8YN2SCsyc8BgYr/McWQZEmIbSth37Tz5rfaEXbtE8veIuLCQvFq1 EWKhf98bPFch1LCP6zadMhy2PV/Nz00d9D0rM+Xjk8xPFOL1x98davc/iSli8Cpo7OpT11v rQMLpgJwvVXXUB1szu+HA== X-UI-Out-Filterresults: notjunk:1;V01:K0:fsZ+yc5aliw=:bL6qYI8GtInLzmoRKMIOyb a2R9hZNd90M+gklmodNFY6rwBCZhNEKvMjYHi+n9P8fIW+Rd4bo//Fu+JQF3oTdS/WZgNGS3e vDygaZMNdWfYiTgfSN0HXcDWUl5DYK/3pjCX+xVFSV3rAf2e0fap9p8qSv+V6tfsr8mwnDX/H EROQLf34Di8FgWnQLMM3lXIqsI+PdlBAbIrNjbjTzm7z0PbFMptSSOqmd6Suikhw7/yL8BN85 9OmRVBHpqaXeVafwc3un17bsS9S3gVpwDQfcRtcC+laaM/KSQ+NtR8BRotmUYX2yNXM+gXrK8 /Bp2gTSXmFP3gRD9Lm9dsdUy3uUV/uVMRx4u4bw497gWEt9lGfeUnG6SZxZKIFIxRVUrTQKaA ntWWLnqSXJZuMh/PrtADos8ZmL/Yu+e4tNqcWjlSqjR+KT3MG9cEUHfdFaRhtEY+f2B8TbgGk ZCbpcCTdA27/L3cGUbFIYngEE+WXWpnNiXfJjSVH/f3/Fr2ZMJpmxk98RBAkLVPYKqytsNjOW eW+PUQbqcBADK7rXk3l4ZDfBVGSFjzj1CUjhKXh2WO0Efl8ppWfL4CiSS8zo/LLgd/XMiSofs Muvgys4aNoJC5OnYiZfu6EgSHVwHAL0dEJhcRTcl9xz1v37d6w8M3D79HFCicbGQd3ng7+tdD d6jFCtuM+9Y+Pl172u4ubfVPn6k1eE2ByY9rRtvBAXvrMwVTni7Tulo5ruHmoc34etmfL+JS+ xM9Lp6PF59X6gbz5ezk+Z/TEFzneWis0RSryUqUqRb2VFgYvDIfBp66DJZ7um3Wt99h8/Piz X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-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:198688 Archived-At: > - xref-find-definitions-other-window should, apparently, pick some > window which isn't the original one, nor the one which displays the > *xref* buffer. Or create a new one, in a pop-to-buffer fashion. Is > there a function in window.el I can reuse, and/or display-buffer alist= > argument that would make it ignore whole two buffers, and not just the= > currently selected one? No. Satisfying a contract that requires three windows to appear simultaneously on a frame is impossible with =91display-buffer=92 on a default Emacs. I can only give my personal preference, feel free to ignore it: *xref* would be displayed by =91with-temp-buffer-window=92 so that I can use =91temp-buffer-resize-mode=92 on it. By default *xref* would be shown at= the bottom of the frame with columns arranged as in the *Completions* buffer. Conceptually, this should allow to split the "original" window into two side-by-side windows where the left one would continue to display the original buffer and the right one would display the buffer chosen by =91xref-find-definitions-other-window=92. If there's already another win= dow on the side of the original window, that window would be reused by =91xref-find-definitions-other-window=92. Obviously, if the frame is too narrow, splitting will fail and the buffer will be shown in the original window. But, as mentioned above, there's nothing you can do about this. The doc-string of =91xref-find-definitions-other-window=92 should probably mention it. And =91xref-find-definitions=92 would display its buffer in the original window above the *xref* window. martin