unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#19004: 24.4; Please provide a non-regexp interface to occur
@ 2014-11-09 20:00 Juliusz Chroboczek
  2014-11-09 20:49 ` Juri Linkov
  2021-05-28  2:20 ` Lars Ingebrigtsen
  0 siblings, 2 replies; 3+ messages in thread
From: Juliusz Chroboczek @ 2014-11-09 20:00 UTC (permalink / raw)
  To: 19004

Hi.

I like occur a lot, but I find it inflexible -- the matched lines can only
be specified by a regexp.  I'd like to be aple to pass a function to occur
instead of a regexp.

The function should be called with point at the beginning of a line to
match/not match, so that

  (occur regexp)

is equivalent to

  (occur #'(lambda () (looking-at regexp)))

Of course, the function should be able to examine the context around the
line being matched.

-- Juliusz





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-05-28  2:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-09 20:00 bug#19004: 24.4; Please provide a non-regexp interface to occur Juliusz Chroboczek
2014-11-09 20:49 ` Juri Linkov
2021-05-28  2:20 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).