From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.ciao.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, 21 Jan 2019 22:59:05 +0200 Organization: LINKOV.NET Message-ID: <87sgxlu3qe.fsf@mail.linkov.net> References: <87a7ktqqx7.fsf@mail.linkov.net> <878t02egph.fsf@mail.linkov.net> <878t011lch.fsf@mail.linkov.net> <83lg403o9c.fsf@gnu.org> <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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.org; posting-host="ciao.gmane.org:195.159.176.228"; logging-data="92636"; mail-complaints-to="usenet@ciao.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 21 22:01:23 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1glgh8-000O1U-Eb for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Jan 2019 22:01:23 +0100 Original-Received: from localhost ([127.0.0.1]:60011 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1glgh7-0003Vj-Ds for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Jan 2019 16:01:21 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37065) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1glggp-0003OP-NG for bug-gnu-emacs@gnu.org; Mon, 21 Jan 2019 16:01:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1glggo-0001ww-Tw for bug-gnu-emacs@gnu.org; Mon, 21 Jan 2019 16:01:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41292) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1glggo-0001we-Q0 for bug-gnu-emacs@gnu.org; Mon, 21 Jan 2019 16:01:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1glggo-0001wl-Mh for bug-gnu-emacs@gnu.org; Mon, 21 Jan 2019 16:01:02 -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, 21 Jan 2019 21:01: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.15481044457436 (code B ref 33870); Mon, 21 Jan 2019 21:01:02 +0000 Original-Received: (at 33870) by debbugs.gnu.org; 21 Jan 2019 21:00:45 +0000 Original-Received: from localhost ([127.0.0.1]:40572 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1glggW-0001vs-K5 for submit@debbugs.gnu.org; Mon, 21 Jan 2019 16:00:44 -0500 Original-Received: from bird.maple.relay.mailchannels.net ([23.83.214.17]:16689) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1glggU-0001vj-BQ for 33870@debbugs.gnu.org; Mon, 21 Jan 2019 16:00:42 -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 DEADF3E4FF8; Mon, 21 Jan 2019 21:00:39 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a6.g.dreamhost.com (unknown [100.96.11.179]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 31A0B3E4F1E; Mon, 21 Jan 2019 21:00:39 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a6.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, 21 Jan 2019 21:00:39 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Squirrel-Left: 6f611c3b2f6261ff_1548104439521_3610213059 X-MC-Loop-Signature: 1548104439521:325954626 X-MC-Ingress-Time: 1548104439520 Original-Received: from pdx1-sub0-mail-a6.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a6.g.dreamhost.com (Postfix) with ESMTP id B63518071E; Mon, 21 Jan 2019 13:00:38 -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; s=linkov.net; bh=jrItoD1eDYesg212QvSRo4iQ3/I=; b= YdbqG3AJeR6WG33Lik7AMAYCzzscjghbb/o5kD6iXOuc4BroVTfeXvNVLtE2Z+C3 MLxtJgapnM+BgOTSQ4GPBkNtfjTAATNXd8ziQYHFlKP0tFaTSU09lr37trCfJ2LV UcAX643Om39Kh0pMFKRCAzK7NMluyau4we4DKDw+p+k= Original-Received: from mail.jurta.org (m91-129-101-91.cust.tele2.ee [91.129.101.91]) (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-a6.g.dreamhost.com (Postfix) with ESMTPSA id 07DD980721; Mon, 21 Jan 2019 13:00:35 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a6 In-Reply-To: <5C3C40E9.6030905@gmx.at> (martin rudalics's message of "Mon, 14 Jan 2019 08:57:29 +0100") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtledrheeigddugeejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutddurdeludenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutddurdeluddprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopehruhgurghlihgtshesghhmgidrrghtnecuvehluhhsthgvrhfuihiivgepvd 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:154663 Archived-At: >> Like we already have such functions as window-in-direction and >> windmove-display-in-direction, the new function could have a similar name >> display-buffer-in-direction. > > OK (unless we find something better). We urgently need this. I discovered another case that will benefit from it. Currently it can be rewritten as in this patch but I don't like how it requires a non-trivial alist. Could these be replaced with something simpler? diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el index 52c0b5b74d..e90d70359f 100644 --- a/lisp/wid-edit.el +++ b/lisp/wid-edit.el @@ -252,7 +252,11 @@ widget-choose (define-key map [?\M--] 'negative-argument) (save-window-excursion (let ((buf (get-buffer " widget-choose"))) - (fit-window-to-buffer (display-buffer buf)) + (display-buffer + buf + '(display-buffer-maybe-below-selected + (window-height . fit-window-to-buffer) + (preserve-size nil . t))) (let ((cursor-in-echo-area t) (arg 1)) (while (not value)