From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#20489: 25.0.50; next-error-find-buffer chooses non-current buffer without good reason Date: Mon, 29 Feb 2016 18:23:42 +0200 Message-ID: <83lh638oz5.fsf@gnu.org> References: <86wq0q602w.fsf@yandex.ru> <56CA4FD1.3060609@yandex.ru> <838u26cvf4.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1456763127 29757 80.91.229.3 (29 Feb 2016 16:25:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Feb 2016 16:25:27 +0000 (UTC) Cc: 20489@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 29 17:25:16 2016 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 1aaQdF-0006Jj-GZ for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Feb 2016 17:25:13 +0100 Original-Received: from localhost ([::1]:37564 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaQdE-0008Q1-SZ for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Feb 2016 11:25:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49189) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaQdA-0008N0-5j for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 11:25:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aaQd4-0004SE-Cy for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 11:25:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56746) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaQd4-0004S9-3F for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 11:25:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aaQd3-0006ap-Vv for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 11:25:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Feb 2016 16:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20489 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20489-submit@debbugs.gnu.org id=B20489.145676304525271 (code B ref 20489); Mon, 29 Feb 2016 16:25:01 +0000 Original-Received: (at 20489) by debbugs.gnu.org; 29 Feb 2016 16:24:05 +0000 Original-Received: from localhost ([127.0.0.1]:53873 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaQc9-0006ZW-Lb for submit@debbugs.gnu.org; Mon, 29 Feb 2016 11:24:05 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57962) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaQc8-0006Z1-Kh for 20489@debbugs.gnu.org; Mon, 29 Feb 2016 11:24:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aaQbz-000465-Gb for 20489@debbugs.gnu.org; Mon, 29 Feb 2016 11:23:59 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33338) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaQbz-000461-D5; Mon, 29 Feb 2016 11:23:55 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4743 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aaQby-0001PF-Nm; Mon, 29 Feb 2016 11:23:55 -0500 In-reply-to: (message from Dmitry Gutov on Mon, 29 Feb 2016 05:15:10 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:114140 Archived-At: > Cc: 20489@debbugs.gnu.org > From: Dmitry Gutov > Date: Mon, 29 Feb 2016 05:15:10 +0200 > > On 02/27/2016 12:14 PM, Eli Zaretskii wrote: > > > . When one uses next-error to step through hits found by Dired's 'A' > > command, point in the *xref* buffer doesn't move to the hit that is > > visited in the window displayed above *xref*. Given how next-error > > works in other cases, I think users will expect point to move > > accordingly; at least I did. > > It would be helpful, but it doesn't seem like `next-error' was designed > with this in mind. Really? Isn't that strange? Doesn't every user of next-error want that? > Wrapping xref--next-error-function's definition in > > (with-selected-window (get-buffer-window xref-buffer-name) > ...) > > does help, but that seems silly. Right. Too bad if this doesn't have an easy solution, but if so, I guess we will have to live with that. > Not sure how to introduce that feature into the API in a generic > fashion. Perhaps if we decided that the "summary" of each xref-match > instance is always defined by the buffer contents? OK, then let's forget about this until the necessary infrastructure is in place. Please uncomment those lines, if you didn't already. Thanks.