emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Matches for multiline regexps


From: Luc Teirlinck
Subject: Re: Matches for multiline regexps
Date: Fri, 17 Jun 2005 22:17:29 -0500 (CDT)

Of course, in my previous message, with "overlapping matches", I meant
overlapping _multiline_ matches.

The current occur implementation treats overlapping _one-line_ matches
according to the same philosophy as the one I propose for multiline
matches, which is one further argument for my proposal.  The _current_
occur implementation shows the line only once and the only matches
that are highlighted are the ones that match according to the C-M-s
philosophy.

For example, with a buffer containing only "111", with the current
occur,  after `M-x occur RET 11 RET", the highlighting only finds a
match at position 1, not at position 2. 

To be consistent with the way it currently treats multiline
overlapping matches, occur should show the line enough times to
highlight all overlapping matches without overlap in their highlighting.

I am starting to wonder whether the change from the Emacs 21 behavior
in the multiline case was really intentional.

Sincerely,

Luc.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]