From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#33870: 27.0.50; xref-goto-xref not configurable Date: Thu, 27 Dec 2018 23:21:39 +0200 Organization: LINKOV.NET Message-ID: <87zhsq1x98.fsf@mail.linkov.net> References: <87a7ktqqx7.fsf@mail.linkov.net> <9215183d-0a44-88b5-5b3c-d0da31f749ad@yandex.ru> <87imzfkhb4.fsf@mail.linkov.net> <87imzfhm04.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1545945839 25123 195.159.176.226 (27 Dec 2018 21:23:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 27 Dec 2018 21:23:59 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: 33870@debbugs.gnu.org, =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 27 22:23:55 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gcd8F-0006P7-1y for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Dec 2018 22:23:55 +0100 Original-Received: from localhost ([127.0.0.1]:55317 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gcdAL-0001FC-Us for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Dec 2018 16:26:05 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:48588) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gcd9Q-00007C-Mb for bug-gnu-emacs@gnu.org; Thu, 27 Dec 2018 16:25:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gcd9N-0000Dn-BT for bug-gnu-emacs@gnu.org; Thu, 27 Dec 2018 16:25:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52243) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gcd9N-0000DY-6T for bug-gnu-emacs@gnu.org; Thu, 27 Dec 2018 16:25:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gcd9N-0005gz-0h for bug-gnu-emacs@gnu.org; Thu, 27 Dec 2018 16:25:05 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Dec 2018 21:25:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33870 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33870-submit@debbugs.gnu.org id=B33870.154594587521810 (code B ref 33870); Thu, 27 Dec 2018 21:25:04 +0000 Original-Received: (at 33870) by debbugs.gnu.org; 27 Dec 2018 21:24:35 +0000 Original-Received: from localhost ([127.0.0.1]:39583 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gcd8t-0005fh-0o for submit@debbugs.gnu.org; Thu, 27 Dec 2018 16:24:35 -0500 Original-Received: from bird.maple.relay.mailchannels.net ([23.83.214.17]:29809) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gcd8r-0005fa-QP for 33870@debbugs.gnu.org; Thu, 27 Dec 2018 16:24:34 -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 D77805E36BE; Thu, 27 Dec 2018 21:24:32 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a68.g.dreamhost.com (unknown [100.96.30.62]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 7F32B5E37BA; Thu, 27 Dec 2018 21:24:32 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a68.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); Thu, 27 Dec 2018 21:24:32 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Vacuous-Reaction: 36bcf5fa004ad1b3_1545945872715_3785973627 X-MC-Loop-Signature: 1545945872715:2501762688 X-MC-Ingress-Time: 1545945872714 Original-Received: from pdx1-sub0-mail-a68.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a68.g.dreamhost.com (Postfix) with ESMTP id 0CF9F7FD05; Thu, 27 Dec 2018 13:24:32 -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=W3VWqi TZ+lb2ZiprHVgYFW3Tgqw=; b=wBusx3cXTsE981NBnpq7n5Tgt2dObmYrpkykMt /AFkkB3BONh1aIS5/w8MnewEu+t0BBrriyyYBjbmru3rRmb+3HCB4/yseNFQRHL9 nNiP43RYvHzBEx6qgfH2ZKTBbVIIfpp0/29P59f21RBzrEJAphusKboDdrKmx0vO PC2ms= Original-Received: from mail.jurta.org (m91-129-108-193.cust.tele2.ee [91.129.108.193]) (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-a68.g.dreamhost.com (Postfix) with ESMTPSA id 51E877FD0C; Thu, 27 Dec 2018 13:24:29 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a68 In-Reply-To: (Dmitry Gutov's message of "Thu, 27 Dec 2018 15:20:22 +0200") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtledrtdefgdekkecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtgfesthekredttderudenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdekrdduleefnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtkedrudelfedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopegughhuthhovheshigrnhguvgigrdhruhenucevlhhushhtvghrufhiiigvpedt 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: 208.118.235.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:153931 Archived-At: > Does this work well for everybody? > > diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el > index c71802c918..85d4325d9e 100644 > --- a/lisp/progmodes/xref.el > +++ b/lisp/progmodes/xref.el > @@ -494,7 +494,8 @@ xref--show-pos-in-buf > (or (and (window-live-p xref--original-window) > xref--original-window) > (selected-window)) > - (display-buffer buf action)) > + (pop-to-buffer buf action) > + (selected-window)) > (xref--goto-char pos) > (run-hooks 'xref-after-jump-hook) > (let ((buf (current-buffer))) Unfortunately, I see no difference. It still selects the original window before calling pop-to-buffer, so the display action is relative to the original window, not to the currently selected window as it would be natural to expect.