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#28864: 25.3.50; next-error-no-select does select Date: Sun, 22 Oct 2017 23:32:14 +0300 Organization: LINKOV.NET Message-ID: <874lqreyj5.fsf@localhost> References: <87bml72qck.fsf@gmail.com> <4045abe7-1acb-314b-b9ac-72b62db30570@yandex.ru> <87sheh270d.fsf@gmail.com> <6f3b7c2c-31af-8eb2-8f13-a9ba17d3d8e6@yandex.ru> <87mv4m5lok.fsf@gmail.com> <87d15h5f97.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1508705363 18882 195.159.176.226 (22 Oct 2017 20:49:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 22 Oct 2017 20:49:23 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (build 1, x86_64-pc-linux-gnu) Cc: 28864@debbugs.gnu.org, Noam Postavsky , Dmitry Gutov To: Tino Calancha Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 22 22:49:19 2017 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 1e6NBH-0002s7-DM for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Oct 2017 22:49:11 +0200 Original-Received: from localhost ([::1]:34275 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e6NBL-00088b-4L for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Oct 2017 16:49:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e6NBC-00088V-O6 for bug-gnu-emacs@gnu.org; Sun, 22 Oct 2017 16:49:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e6NB8-0000ei-Sa for bug-gnu-emacs@gnu.org; Sun, 22 Oct 2017 16:49:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47604) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e6NB8-0000ec-O9 for bug-gnu-emacs@gnu.org; Sun, 22 Oct 2017 16:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e6NB8-0004p8-Cn for bug-gnu-emacs@gnu.org; Sun, 22 Oct 2017 16:49:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87bml72qck.fsf@gmail.com> Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Oct 2017 20:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28864 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28864-submit@debbugs.gnu.org id=B28864.150870531918509 (code B ref 28864); Sun, 22 Oct 2017 20:49:02 +0000 Original-Received: (at 28864) by debbugs.gnu.org; 22 Oct 2017 20:48:39 +0000 Original-Received: from localhost ([127.0.0.1]:56285 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e6NAk-0004oS-Lf for submit@debbugs.gnu.org; Sun, 22 Oct 2017 16:48:38 -0400 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:47282 helo=homiemail-a76.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e6NAi-0004oI-1M for 28864@debbugs.gnu.org; Sun, 22 Oct 2017 16:48:36 -0400 Original-Received: from homiemail-a76.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a76.g.dreamhost.com (Postfix) with ESMTP id D226845807C; Sun, 22 Oct 2017 13:48:32 -0700 (PDT) Original-Received: from localhost.linkov.net (m91-129-79-96.cust.tele2.ee [91.129.79.96]) (Authenticated sender: jurta@jurta.org) by homiemail-a76.g.dreamhost.com (Postfix) with ESMTPA id 8BBE945807B; Sun, 22 Oct 2017 13:48:31 -0700 (PDT) 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:138871 Archived-At: >> It's really a hack though, right? Maybe no major modes should set >> next-error-last-buffer by itself, no matter the current command. > That sounds better. >> I'd like to know what Juri thinks about this. > In case Juri think that change-log-mode should keep seting > next-error-last-buffer for other reasons we could just > bind next-error-last-buffer: Visiting a buffer should not set next-error-last-buffer, it should be set only by an explicit user request, like M-x compile/grep/rgrep/occur and other commands do. So please just remove setting of next-error-last-buffer from change-log-mode. After that, next-error will still remain available in ChangeLog buffers by running =E2=80=98next-error=E2=80=99 (w= hen there are no other next-error capable buffers such as *grep*) or explicit C-c C-c that will set next-error-last-buffer and continue visiting matches from the ChangeLog buffer. We also have other issues with next-error in bug#20489 where I'm waiting when Dmitry will send a comprehensive list of possible scenarios, so we could find a solution that fits all of them. Regarding the ChangeLog buffers, I have a solution for the following ChangeLog-related scenario: 1. M-x grep-find RET find . -type f -name ChangeLog\* -exec grep --color -nH -e baz {} + RE= T 2. C-x o RET M-n RET 3. M-g M-n should continue visiting next grep hits from the *grep* buffer 4. When the user needs to switch to visiting ChangeLog entries from the ChangeLog buffer, this can be achieved by typing C-c C-c (change-log-goto-source) once, then all subsequent M-g M-n will continue visiting next ChangeLog entries in the source files.