GNU bug report logs - #47918
M-x occur should jump to the first match

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Tue, 20 Apr 2021 20:12:01 UTC

Severity: normal

Tags: notabug, wontfix

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 47918 in the body.
You can then email your comments to 47918 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#47918; Package emacs. (Tue, 20 Apr 2021 20:12:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 20 Apr 2021 20:12:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: bug-gnu-emacs <at> gnu.org
Subject: M-x occur should jump to the first match
Date: Wed, 21 Apr 2021 04:11:02 +0800
occur is an interactive compiled Lisp function in ‘replace.el’.

Odd that it doesn't jump to the first match like other similar emacs
functions do.

So it should, unless the user disables it via a variable.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#47918; Package emacs. (Tue, 20 Apr 2021 20:26:01 GMT) Full text and rfc822 format available.

Message #8 received at 47918 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 47918 <at> debbugs.gnu.org
Subject: Re: bug#47918: M-x occur should jump to the first match
Date: Tue, 20 Apr 2021 15:24:58 -0500
tags 47918 wontfix notabug
close 47918
thanks

積丹尼 Dan Jacobson <jidanni <at> jidanni.org> writes:

> occur is an interactive compiled Lisp function in ‘replace.el’.
>
> Odd that it doesn't jump to the first match like other similar emacs
> functions do.
>
> So it should, unless the user disables it via a variable.

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.

If you want to do this, I recommend:

    (add-hook 'occur-hook #'next-error)

Closing as wontfix.




Added tag(s) notabug and wontfix. Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Tue, 20 Apr 2021 20:26:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 47918 <at> debbugs.gnu.org and 積丹尼 Dan Jacobson <jidanni <at> jidanni.org> Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Tue, 20 Apr 2021 20:26:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#47918; Package emacs. (Wed, 21 Apr 2021 17:07:02 GMT) Full text and rfc822 format available.

Message #15 received at 47918 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 47918 <at> debbugs.gnu.org,
 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Subject: Re: bug#47918: M-x occur should jump to the first match
Date: Wed, 21 Apr 2021 19:54:35 +0300
> 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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#47918; Package emacs. (Mon, 03 May 2021 15:08:02 GMT) Full text and rfc822 format available.

Message #18 received at 47918 <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: Juri Linkov <juri <at> linkov.net>
Cc: 47918 <at> debbugs.gnu.org, Stefan Kangas <stefan <at> marxist.se>
Subject: Re: bug#47918: M-x occur should jump to the first match
Date: Mon, 03 May 2021 22:06:11 +0800
>>>>> "JL" == Juri Linkov <juri <at> linkov.net> writes:

>> (add-hook 'occur-hook #'next-error)

Nifty! Sure wish the occur docstring in replace.el, and perhaps even
(info "(emacs) Other Repeating Search")
would mention that.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 01 Jun 2021 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 329 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.