From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#33870: 27.0.50; xref-goto-xref not configurable Date: Fri, 1 Feb 2019 10:27:07 -0800 (PST) Message-ID: <004a5aec-2aef-4d4c-96ad-6c1baeb74705@default> References: <87a7ktqqx7.fsf@mail.linkov.net> <9215183d-0a44-88b5-5b3c-d0da31f749ad@yandex.ru> <878t02egph.fsf@mail.linkov.net> <874lak9kr0.fsf@mail.linkov.net> <87zhscklhq.fsf@gmail.com> <87bm4qel4t.fsf@mail.linkov.net> <67c9abb5-f546-361f-04ca-da96ceaca4e2@yandex.ru> <87bm4le0tm.fsf@mail.linkov.net> <87imys6x5s.fsf@mail.linkov.net> <87d0osjtna.fsf@mail.linkov.net> <8ffaaddb-1d19-b9e9-83f1-83da89445eb8@yandex.ru> <87munmosx4.fsf@mail.linkov.net> <77b96dc5-a994-de78-64bb-40ba7625d40f@yandex.ru> <838sz0yni3.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="223753"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 33870@debbugs.gnu.org, Dmitry Gutov , Juri Linkov To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 01 19:28:17 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gpdY0-000w4R-RI for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Feb 2019 19:28:17 +0100 Original-Received: from localhost ([127.0.0.1]:59809 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gpdXz-0004Zf-N8 for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Feb 2019 13:28:15 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53143) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gpdXo-0004Xc-EB for bug-gnu-emacs@gnu.org; Fri, 01 Feb 2019 13:28:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gpdXn-0003qm-OV for bug-gnu-emacs@gnu.org; Fri, 01 Feb 2019 13:28:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55981) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gpdXm-0003q5-Qi for bug-gnu-emacs@gnu.org; Fri, 01 Feb 2019 13:28:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gpdXm-0007Ln-8K for bug-gnu-emacs@gnu.org; Fri, 01 Feb 2019 13:28:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Feb 2019 18:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33870 X-GNU-PR-Package: emacs Original-Received: via spool by 33870-submit@debbugs.gnu.org id=B33870.154904564728205 (code B ref 33870); Fri, 01 Feb 2019 18:28:02 +0000 Original-Received: (at 33870) by debbugs.gnu.org; 1 Feb 2019 18:27:27 +0000 Original-Received: from localhost ([127.0.0.1]:55262 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gpdXC-0007Kq-N8 for submit@debbugs.gnu.org; Fri, 01 Feb 2019 13:27:26 -0500 Original-Received: from aserp2130.oracle.com ([141.146.126.79]:54044) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gpdX7-0007Ka-R2 for 33870@debbugs.gnu.org; Fri, 01 Feb 2019 13:27:24 -0500 Original-Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id x11IO3Ia144423; Fri, 1 Feb 2019 18:27:15 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=ZGXHb1UAp5krUF3B02OVjwUwj6HFoxYGmgWKyHYxMHE=; b=BCBMcTWwcvv56nBdxXDnLT1ztJ1Fgbwqm+tmM6X1ISqhQ4pQB/1ju1MSGQMRcgkMkoAa 7+pX7zm8ikma4zBarbQ/80wtwIYtJ9BdgosFOxKoDSzlvhGlAkGfmPDYeNSliLLwfxZC 4bcqTCBoYcjEzoG9tcJIsiAdVPH2aDSPrkAEK8Oq3/dgNMm95uY43HTcm0JmsRr4N+p4 8wz2tWRS9Hdcq5EtOwEVLTRcrkOFTGPBhgUcNEf8Z0XczJCb8EiARsSBQB5MvJ26eeTK vC47od6sliP0cz+kTj3LvQmbVW712nxZp5jUpxw4/Tqvhe8jeQ4iGmEquXPyz405sKFB NA== Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2130.oracle.com with ESMTP id 2q8d2erdg6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 01 Feb 2019 18:27:15 +0000 Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id x11IR9T0027946 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 1 Feb 2019 18:27:09 GMT Original-Received: from abhmp0020.oracle.com (abhmp0020.oracle.com [141.146.116.26]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x11IR7hq012359; Fri, 1 Feb 2019 18:27:07 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4795.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9154 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=18 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1902010135 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:154984 Archived-At: > > > When I try this with the new patch, it results in a third window bein= g=20 > > > created (the original window is being split, and the definition is sh= own there). > > > Is this the behavior we want? > > No, I don't think so. > > It might not be the behavior you want, but it was the behavior I designed= it to have.=C2=A0 > > You start with two windows, A and B. You ask to find definitions in anoth= er window > from A, because you want to preserve its contents. The symbol you searche= d for > happened to have multiple definitions so you decide to browse them from *= xref* > using bare 'n' and 'p' before settling on the definition you want. Those > "prospects" can't be shown in A because that would break the original > "other-window" contract/intention, and they can't be shown in B because t= hat's > where you're browsing from. They need a new window C which is not availab= le. > When the frame is relatively small (as it is with emacs -Q), C is created= by > splitting horizontally, which is kind of akward, but the decision where t= o create > C changes with larger frames.=C2=A0 I'm so glad I use separate frames by default. It's one thing to explicitly choose to replace the content of a particular window with other content (another buffer). It's quite another thing to have Emacs doing that left and right behind your back. It's not Emacs's fault for just trying to DTRT, of course. The problem is that TRT is hard to specify in advance. We can try to require users to specify it in advance, by configuration, but that runs into the same problem. This is why `pop-up-windows' and `pop-up-frames' are so helpful - as a start, at least, to prevent window splitting and replacing window content left and right. Of course, if Emacs pops up a new window or frame each time then you really need a good way to change focus among them. Yes, I know - mine's a (small) minority opinion.