From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#33870: 27.0.50; xref-goto-xref not configurable Date: Thu, 27 Dec 2018 15:20:22 +0200 Message-ID: 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=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1545917694 4461 195.159.176.226 (27 Dec 2018 13:34:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 27 Dec 2018 13:34:54 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:64.0) Gecko/20100101 Thunderbird/64.0 Cc: 33870@debbugs.gnu.org To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= , Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 27 14:34:49 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 1gcVoG-00011w-JW for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Dec 2018 14:34:48 +0100 Original-Received: from localhost ([127.0.0.1]:52062 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gcVqN-0000wC-Fz for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Dec 2018 08:36:59 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:34418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gcVoi-0007yE-ME for bug-gnu-emacs@gnu.org; Thu, 27 Dec 2018 08:35:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gcVax-0007Ka-35 for bug-gnu-emacs@gnu.org; Thu, 27 Dec 2018 08:21:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35864) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gcVaw-0007K3-VJ for bug-gnu-emacs@gnu.org; Thu, 27 Dec 2018 08:21:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gcVaw-00085r-L6 for bug-gnu-emacs@gnu.org; Thu, 27 Dec 2018 08:21:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Dec 2018 13:21:02 +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.154591683331051 (code B ref 33870); Thu, 27 Dec 2018 13:21:02 +0000 Original-Received: (at 33870) by debbugs.gnu.org; 27 Dec 2018 13:20:33 +0000 Original-Received: from localhost ([127.0.0.1]:38259 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gcVaT-00084k-G4 for submit@debbugs.gnu.org; Thu, 27 Dec 2018 08:20:33 -0500 Original-Received: from mail-lj1-f175.google.com ([209.85.208.175]:45652) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gcVaR-00084V-LR for 33870@debbugs.gnu.org; Thu, 27 Dec 2018 08:20:32 -0500 Original-Received: by mail-lj1-f175.google.com with SMTP id s5-v6so16213017ljd.12 for <33870@debbugs.gnu.org>; Thu, 27 Dec 2018 05:20:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=VvXe749Xzv8fFCwGcn5UedfF+flRrLnTg+RKko0ToJw=; b=EACcVXSmNcMfn76MjJmV3G9MkVPmvaqgEaoPpbyJuSvchjYTxk/9T48mrWCzvmDT9e 9ZnAo+4ZEdI1Z6Cfmt74iuFyDxyDZHx3aWjUwByiT+GFNdf6/EX1r38dk+8zjOCIikSN TsK4bRHdocwrB6MJy7dUZshTBJVTjVIXxa0Ec9Jepgpjk83YmK9CWhAvKoy4REPNHU1D /IjJSEn3bTJiE0e6f/HhagFD7RMveS3SuNb3YVUxTtwuWlSoruf/dJ2PjfS6mq4Z02YB ruzHoWSJzS6BBG4OVyuSpDn9ottLTuRMeUduAMx6d3wsRLy7pdr4uDzKGF5+bfXZpTFf CMZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=VvXe749Xzv8fFCwGcn5UedfF+flRrLnTg+RKko0ToJw=; b=bnAVA+sNqo3t/tQ8kAWMxoXTvlREo2jUcfqPq42Xl6yFdPwvY0D45WZ19aGrwSYVM8 m0GJnomSV6L2vQT+bhbWw+eMjKZkPUXpBbzU5KtwFlOROpBujMIktNWVhmxWm7Ysc0cO YM3QtrEa9YxpJlB3bh3bJ9Qk9ZgZiEGyO0t+kS/Vnk/YAOQhJwy6c2aR9MphGBEopK8z c44hHMrsVUETm7/DvUIqpQ8jqhSM7RYjJ0pTlbjC+p/q5VEJtdlChqxDtHJWU3RDNzip yqAaKu9g9plFXQ892FrXvd2clcQmcxVreWnTgJnibD+TarFrO7TGGk8xw8c5jpJe/dah TurA== X-Gm-Message-State: AJcUukdFOpyRiwd/Y4VYsFZckxO3nJ5+2I0yl6dnf8iIYDiR5+tulznm 8bgEsJTIOQS1rCKvn4ntpVmfP9sW X-Google-Smtp-Source: AFSGD/U8F5Gqb9+eHyXbFRqZ1IubyeqvCc8kJ1sggKdiSnQ3M7kSohikWmsUm1sbADaaFnrU+6ZS2A== X-Received: by 2002:a2e:2f15:: with SMTP id v21-v6mr13812095ljv.56.1545916825424; Thu, 27 Dec 2018 05:20:25 -0800 (PST) Original-Received: from [10.1.22.152] (test2-113.cytanet.com.cy. [212.31.113.2]) by smtp.googlemail.com with ESMTPSA id 65sm7666809lfp.55.2018.12.27.05.20.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Dec 2018 05:20:24 -0800 (PST) In-Reply-To: <87imzfhm04.fsf@gmail.com> Content-Language: en-US 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:153902 Archived-At: On 27.12.2018 2:05, João Távora wrote: > You can read up the whole bug here: > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=28814 > > I quote from that thread: > > Here are two very simple Emacs -Q recipes that demonstrate [the bug] 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)))