GNU bug report logs -
#10705
24.0.93; Collect strings matching regexp from Isearch
Previous Next
Reported by: Juri Linkov <juri <at> jurta.org>
Date: Thu, 2 Feb 2012 21:38:02 UTC
Severity: normal
Found in version 24.0.93
Done: Juri Linkov <juri <at> jurta.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Juri Linkov <juri <at> jurta.org>
> Date: Thu, 02 Feb 2012 23:02:03 +0200
>
> Currently `isearch-occur' is not in sync with the interactive specification
> of `occur' that provides a new feature of `C-u M-x occur RET' that collects
> the matching strings into the `*Occur*' buffer without line numbers.
>
> The following patch syncs code from `occur-read-primary-args' to `isearch-occur'.
Btw, while at that, how about fixing the doc string as well. What it
says now, viz.
> Interactively, REGEXP is the current search regexp or a quoted search
> string. NLINES has the same meaning as in `occur'."
is not clear enough: what is a "quoted search string"? I'd suggest to
describe explicitly the 3 cases handled by the code:
> + (regexp (cond
> + (isearch-word (word-search-regexp isearch-string))
> + (isearch-regexp isearch-string)
> + (t (regexp-quote isearch-string)))))
and refer to the relevant string in each case.
This bug report was last modified 13 years and 116 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.