GNU bug report logs - #10916
Using occur to list occurrencies of the symbol at point

Previous Next

Package: emacs;

Reported by: nisse <at> lysator.liu.se (Niels Möller)

Date: Thu, 1 Mar 2012 10:12:02 UTC

Severity: wishlist

Tags: wontfix

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Juri Linkov <juri <at> jurta.org>
To: nisse <at> lysator.liu.se (Niels Möller)
Cc: 10916 <at> debbugs.gnu.org
Subject: bug#10916: Using occur to list occurrencies of the symbol at point
Date: Thu, 01 Mar 2012 12:42:41 +0200
> I first expected C-u M-x occur to behave the same way, but instead it
> interprets the prefix argument as the amount of additional context to
> include in the output buffer. This is a feature I don't need very often.

`C-u M-x occur' doesn't interpret the prefix argument as the amount of
additional context.  `C-u M-x occur' collects strings matching regexp.
It is like grep command line argument `-o --only-matching' that prints
only the matched parts of a matching line, with each such part
on a separate output line.

> Or maybe there's already some emacs function which does this and does it
> better, which I'm not aware of...

Have you tried `M-x occur M-n RET'?




This bug report was last modified 5 years and 221 days ago.

Previous Next


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