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: Sun, 03 Feb 2019 22:22:32 +0200 Organization: LINKOV.NET Message-ID: <871s4ooc53.fsf@mail.linkov.net> References: <87a7ktqqx7.fsf@mail.linkov.net> <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> <87r2cw35s7.fsf@mail.linkov.net> <5C5013BE.6090107@gmx.at> <877eenjhl6.fsf@mail.linkov.net> <5C515B8F.1000702@gmx.at> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="256694"; 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 Sun Feb 03 21:55:00 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 1gqOn5-0014bz-9f for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Feb 2019 21:54:59 +0100 Original-Received: from localhost ([127.0.0.1]:60260 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gqOn4-0004AQ-8K for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Feb 2019 15:54:58 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57557) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gqOml-000456-9F for bug-gnu-emacs@gnu.org; Sun, 03 Feb 2019 15:54:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gqOiI-0004Rr-7q for bug-gnu-emacs@gnu.org; Sun, 03 Feb 2019 15:50:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58513) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gqOiI-0004R5-46 for bug-gnu-emacs@gnu.org; Sun, 03 Feb 2019 15:50:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gqOiH-0004Ev-RW for bug-gnu-emacs@gnu.org; Sun, 03 Feb 2019 15:50: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: Sun, 03 Feb 2019 20:50: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.154922697216211 (code B ref 33870); Sun, 03 Feb 2019 20:50:01 +0000 Original-Received: (at 33870) by debbugs.gnu.org; 3 Feb 2019 20:49:32 +0000 Original-Received: from localhost ([127.0.0.1]:57788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gqOho-0004DO-2l for submit@debbugs.gnu.org; Sun, 03 Feb 2019 15:49:32 -0500 Original-Received: from goldenrod.birch.relay.mailchannels.net ([23.83.209.74]:62207) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gqOhl-0004DD-GQ for 33870@debbugs.gnu.org; Sun, 03 Feb 2019 15:49:30 -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 65D821236A4; Sun, 3 Feb 2019 20:49:27 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a23.g.dreamhost.com (unknown [100.96.11.179]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 113D0123DD2; Sun, 3 Feb 2019 20:49:27 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a23.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); Sun, 03 Feb 2019 20:49:27 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Stretch-Descriptive: 7021368e137073ae_1549226967221_1922773653 X-MC-Loop-Signature: 1549226967221:946689771 X-MC-Ingress-Time: 1549226967220 Original-Received: from pdx1-sub0-mail-a23.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a23.g.dreamhost.com (Postfix) with ESMTP id EE0EE818C5; Sun, 3 Feb 2019 12:49:25 -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=uMG+Ds4ifkEqez12WLS4r8UZxr0=; b= TlQaxF4ySJLQCMGXAmkC7Bn5zN1G2KukiAk5Lvsdb+n4Vl36kiLNV9f6JhbGdqd5 ygVXBJN8T+Nykx7jE77r1saZ/Yf8JaKzYv9j47d/4j30Wo7vpyN6k4XhnvTuJvVe TDnQosHLaLLNSMr9eirWM5fzHGR9gVIWO3ak9a8cj1Q= Original-Received: from mail.jurta.org (m91-129-111-71.cust.tele2.ee [91.129.111.71]) (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-a23.g.dreamhost.com (Postfix) with ESMTPSA id 3D736818BB; Sun, 3 Feb 2019 12:49:22 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a23 In-Reply-To: <5C515B8F.1000702@gmx.at> (martin rudalics's message of "Wed, 30 Jan 2019 09:08:47 +0100") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtledrkedvgddugeegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrdduuddurdejudenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrdduuddurdejuddprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopehruhgurghlihgtshesghhmgidrrghtnecuvehluhhsthgvrhfuihiivgepud 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:155060 Archived-At: >> And what to do when the future will require adding a third arg? >> This is why better to avoid dotted pairs, and use a list like >> >> (direction DIR WIN) > > OK. Let's do that. I'm trying to use your implementation of display-buffer-in-direction, but with this patch: diff --git a/lisp/files.el b/lisp/files.el index 9948bd4a03..dac75fdb78 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -3396,7 +3396,7 @@ hack-local-variables-confirm ;; Display the buffer and read a choice. (save-window-excursion - (pop-to-buffer buf '(display-buffer--maybe-at-bottom)) + (pop-to-buffer buf '(display-buffer-in-direction (direction bottom main))) (let* ((exit-chars '(?y ?n ?\s ?\C-g ?\C-v)) (prompt (format "Please type %s%s: " (if offer-save "y, n, or !" "y or n") while visiting a file with Local Variables it fails with: Debugger entered--Lisp error: (error "Cannot share edge from within live window #) windows-sharing-edge(# below t) display-buffer-in-direction(# ((direction bottom main))) display-buffer(# (display-buffer-in-direction (direction bottom main))) pop-to-buffer(# (display-buffer-in-direction (direction bottom main))) Please help.