From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#47918: M-x occur should jump to the first match Date: Wed, 21 Apr 2021 19:54:35 +0300 Organization: LINKOV.NET Message-ID: <87sg3jd384.fsf@mail.linkov.net> References: <87v98g7m3t.8.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1648"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 47918@debbugs.gnu.org, =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 21 19:07:25 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lZGJw-0000K9-U6 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Apr 2021 19:07:24 +0200 Original-Received: from localhost ([::1]:43370 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZGJv-00018P-NN for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Apr 2021 13:07:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43152) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZGJc-00017m-8I for bug-gnu-emacs@gnu.org; Wed, 21 Apr 2021 13:07:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48147) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lZGJa-0004f8-LI for bug-gnu-emacs@gnu.org; Wed, 21 Apr 2021 13:07:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lZGJa-000312-Gp for bug-gnu-emacs@gnu.org; Wed, 21 Apr 2021 13:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Apr 2021 17:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47918 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug wontfix Original-Received: via spool by 47918-submit@debbugs.gnu.org id=B47918.161902477811507 (code B ref 47918); Wed, 21 Apr 2021 17:07:02 +0000 Original-Received: (at 47918) by debbugs.gnu.org; 21 Apr 2021 17:06:18 +0000 Original-Received: from localhost ([127.0.0.1]:59688 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZGIs-0002zX-1C for submit@debbugs.gnu.org; Wed, 21 Apr 2021 13:06:18 -0400 Original-Received: from relay8-d.mail.gandi.net ([217.70.183.201]:35067) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZGIm-0002zD-5D for 47918@debbugs.gnu.org; Wed, 21 Apr 2021 13:06:16 -0400 X-Originating-IP: 91.129.102.166 Original-Received: from mail.gandi.net (m91-129-102-166.cust.tele2.ee [91.129.102.166]) (Authenticated sender: juri@linkov.net) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 282291BF209; Wed, 21 Apr 2021 17:06:03 +0000 (UTC) In-Reply-To: (Stefan Kangas's message of "Tue, 20 Apr 2021 15:24:58 -0500") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:204641 Archived-At: > That would break existing workflows. Also, `rgrep' and `compile' > doesn't jump to the first match, so I don't see why `occur' should be > different. There is 'compilation-auto-jump-to-first-error', but it doesn't visit matches. > If you want to do this, I recommend: > > (add-hook 'occur-hook #'next-error) This is a nice solution to immediately visit matches.