From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#33870: 27.0.50; xref-goto-xref not configurable Date: Mon, 28 Jan 2019 22:07:20 +0200 Organization: LINKOV.NET Message-ID: <87r2cw35s7.fsf@mail.linkov.net> References: <87a7ktqqx7.fsf@mail.linkov.net> <87r2dq8z9n.fsf@mail.linkov.net> <5C31C477.9040108@gmx.at> <874laluz3g.fsf@mail.linkov.net> <5C3315E6.9010709@gmx.at> <87wongazxq.fsf@mail.linkov.net> <5C346C49.6060003@gmx.at> <8736q2ka0h.fsf@mail.linkov.net> <5C35C718.6000706@gmx.at> <874lahwgau.fsf@mail.linkov.net> <5C371C22.2030304@gmx.at> <874lag8d2g.fsf@mail.linkov.net> <5C3860D9.2090809@gmx.at> <87tvide172.fsf@mail.linkov.net> <5C3AF815.3020100@gmx.at> <87won89rb8.fsf@mail.linkov.net> <5C3C40E9.6030905@gmx.at> <87sgxlu3qe.fsf@mail.linkov.net> <5C498043.5040008@gmx.at> <87womqp08r.fsf@mail.linkov.net> <5C4F4C42.1090305@gmx.at> 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="70988"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: 33870@debbugs.gnu.org, joaotavora@gmail.com, dgutov@yandex.ru To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 28 21:22: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 1goDQ8-000IBQ-QJ for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Jan 2019 21:22:17 +0100 Original-Received: from localhost ([127.0.0.1]:38218 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goDQ6-0001eo-Sr for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Jan 2019 15:22:14 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goDPu-0001eY-Kl for bug-gnu-emacs@gnu.org; Mon, 28 Jan 2019 15:22:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1goDPt-0005si-VI for bug-gnu-emacs@gnu.org; Mon, 28 Jan 2019 15:22:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50262) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1goDPt-0005sY-S9 for bug-gnu-emacs@gnu.org; Mon, 28 Jan 2019 15:22:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1goDPt-0005Uh-Lt for bug-gnu-emacs@gnu.org; Mon, 28 Jan 2019 15:22:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Jan 2019 20:22:01 +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.154870690021079 (code B ref 33870); Mon, 28 Jan 2019 20:22:01 +0000 Original-Received: (at 33870) by debbugs.gnu.org; 28 Jan 2019 20:21:40 +0000 Original-Received: from localhost ([127.0.0.1]:49540 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goDPY-0005Tv-Ii for submit@debbugs.gnu.org; Mon, 28 Jan 2019 15:21:40 -0500 Original-Received: from eastern.maple.relay.mailchannels.net ([23.83.214.55]:64996) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goDPT-0005T0-CV for 33870@debbugs.gnu.org; Mon, 28 Jan 2019 15:21:38 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 2193D5E4286; Mon, 28 Jan 2019 20:21:34 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a26.g.dreamhost.com (unknown [100.96.30.62]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id A8E2D5E42EC; Mon, 28 Jan 2019 20:21:33 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a26.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Mon, 28 Jan 2019 20:21:34 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Desert-Slimy: 0b7de3dc3d8390fa_1548706893944_1037888350 X-MC-Loop-Signature: 1548706893944:3773585607 X-MC-Ingress-Time: 1548706893943 Original-Received: from pdx1-sub0-mail-a26.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a26.g.dreamhost.com (Postfix) with ESMTP id 204237FB4E; Mon, 28 Jan 2019 12:21:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=linkov.net; bh=oTfxHs 5tzpn2UCu+GH0riDCGXrY=; b=VxEf641IUxiN0aEAAH8j4ZgkjKQr/jATAS8Wmt qgepUkh9UClmsvuw/ZYIdSb0VElzEYexHjq/7kx7yVCd+ijdAaZAYSVaSjmbT5ts IGusfb9s+oicvoceigHGNX5sIrTTE882ApqiFU8XYk8h8UJI4SpDNeslpI7gE68o PZdxI= Original-Received: from mail.jurta.org (m91-129-110-202.cust.tele2.ee [91.129.110.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a26.g.dreamhost.com (Postfix) with ESMTPSA id B32E87FB3C; Mon, 28 Jan 2019 12:21:11 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a26 In-Reply-To: <5C4F4C42.1090305@gmx.at> (martin rudalics's message of "Mon, 28 Jan 2019 19:38:58 +0100") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtledrjedtgddugedvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgfgsehtkeertddtreejnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddutddrvddtvdenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrdduuddtrddvtddvpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtoheprhhuuggrlhhitghssehgmhigrdgrthenucevlhhushhtvghrufhiiigvpedt 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:154852 Archived-At: >> 1. avoid using dotted pair notation that often causes problems; > > You probably mean separate 'direction' and 'window' entries instead of > the (direction . (WIN . DIR)). But we didn't find a good term for > denoting the reference window and the two inherently belong together. I think your idea of combining them is good. >> 2. instead of asking the user to invent a value to use for the selecte= d window, >> allow omitting it in this case, by reversing WIN and DIR, for exam= ple: >> >> display-buffer-in-direction (direction DIR WIN) >> display-buffer-in-direction (direction up main) >> display-buffer-in-direction (direction up) -- by default means >> from the selected wi= ndow > > We can do that. > >> PS: what about 'resize-to-fit'? I guess it's impossible to implement = it >> as an alist, because currently fit-window-to-buffer/preserve-size usua= lly >> are used as an argument of the macro 'with-displayed-buffer-window'. > > If we don't implement it already via the window-height/window-width > entries we can add a window-size entry. But I forgot what you wanted > here. Currently it requires too much boilerplate code to do such simple things as displaying the buffer below/bottom with resizing to fit its height. Please grep =E2=80=9C-at-bottom=E2=80=9D and =E2=80=9C-below-selected=E2=80= =9D for the current cases, they are all ugly: some of them use =E2=80=98with-displayed-buffer-window= =E2=80=99 with '((window-height . fit-window-to-buffer) (preserve-size . (nil . t))) some are more uglier ,(if temp-buffer-resize-mode '(window-height . resize-temp-buffer-window) '(window-height . fit-window-to-buffer)) ,(when temp-buffer-resize-mode '(preserve-size . (nil . t))) some use the macro =E2=80=98with-current-buffer-window=E2=80=99, some use =E2=80=98pop-to-buffer=E2=80=99 with =E2=80=98display-buffer-below-select= ed=E2=80=99 action. Do you think it's possible to generalize all these cases to use simpler display actions/alists?