From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#20353: M-. sometimes jumps in another window Date: Sat, 18 Apr 2015 03:51:45 +0300 Message-ID: <5531AAA1.5010508@yandex.ru> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1429318345 29097 80.91.229.3 (18 Apr 2015 00:52:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Apr 2015 00:52:25 +0000 (UTC) To: Stefan Monnier , 20353@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 18 02:52:14 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YjGzU-00020d-V0 for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Apr 2015 02:52:13 +0200 Original-Received: from localhost ([::1]:44109 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjGzT-0003ZB-OS for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Apr 2015 20:52:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50042) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjGzP-0003Z3-Kb for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2015 20:52:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YjGzK-0006uc-HI for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2015 20:52:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41407) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjGzK-0006uS-DZ for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2015 20:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YjGzK-0007mD-1h for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2015 20:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Apr 2015 00:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20353 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20353-submit@debbugs.gnu.org id=B20353.142931831629881 (code B ref 20353); Sat, 18 Apr 2015 00:52:01 +0000 Original-Received: (at 20353) by debbugs.gnu.org; 18 Apr 2015 00:51:56 +0000 Original-Received: from localhost ([127.0.0.1]:59416 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YjGzE-0007lt-0j for submit@debbugs.gnu.org; Fri, 17 Apr 2015 20:51:56 -0400 Original-Received: from mail-wg0-f44.google.com ([74.125.82.44]:36690) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YjGzB-0007lg-PE for 20353@debbugs.gnu.org; Fri, 17 Apr 2015 20:51:54 -0400 Original-Received: by wgsk9 with SMTP id k9so128310200wgs.3 for <20353@debbugs.gnu.org>; Fri, 17 Apr 2015 17:51:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=jP9c3nzWUZ7yQzZ5O3nfaxkJ+CzqI/nGixwlaDYLo/Q=; b=IOEzIrf+l4XYxt1ZsoLKWetA9/JE6sG3ebfwYQ8I4olQIJaHxuj71Fvdx+PpuRF9Q/ C1rbnArNlvo7FV8+fO3+cWT/xuwY7Bd326Ua0or+mraJoXsictzyykT5ALzOM8+zfAm5 Jmk3cR7nidwt09+X6qKkXpSqBJzwkyBgXLwoP3vkRW9hDQwLq7SJJ2d2U2+ezDA230ca 8WEtwNal2M8bpjR70mozC8p+e12u1w8u0+AzEHlTdBet3ScW4XOo5cQNfgWHaw5LIfdi UEGhGJrO2Rc86WwNYAkaO/O+/xMCtvlhCdGi/trAQSS2H0lC96bPwFRJ6OOrE5UPaZo8 +7JA== X-Received: by 10.180.106.131 with SMTP id gu3mr5702437wib.16.1429318308144; Fri, 17 Apr 2015 17:51:48 -0700 (PDT) Original-Received: from [192.168.1.2] ([82.102.93.54]) by mx.google.com with ESMTPSA id gi17sm6581163wjc.8.2015.04.17.17.51.46 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Apr 2015 17:51:47 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:36.0) Gecko/20100101 Thunderbird/36.0 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:101658 Archived-At: On 04/17/2015 08:03 AM, Stefan Monnier wrote: > I tend to use many frames. When I hit M-. I sometimes get a new popup > frame asking me to choose a destination. All good so far. > > But sometimes once I choose my destination, xref choose the wrong window > to display that destination. More specifically I get the following scenario: Is the scenario reliable? I haven't seen the result you're describing after trying it. > - Window 1 (in frame 1) showing buffer B. > - Window 2 (in frame 2) showing buffer B as well. > - In window 1 I do M-. > - Get a popup to choose the destination. Are there some particular settings that make the xref buffer appear in a new frame? It always uses the current frame here. > - Choose some destination D which is also in buffer B. > - And here's the downer: sometimes Emacs decides to then select window > 2 to jump to D, instead of using the window 1 for that. The command that's called in the end is `xref-goto-xref'. Might it be that `xref-quit' ends up selecting the wrong frame?