unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Luc Teirlinck <teirllm@dms.auburn.edu>
Subject: Re: Matches for multiline regexps
Date: Fri, 17 Jun 2005 22:17:29 -0500 (CDT)	[thread overview]
Message-ID: <200506180317.j5I3HTP04899@raven.dms.auburn.edu> (raw)
In-Reply-To: message from Luc Teirlinck on 17 Jun 2005 21:48:32 -0500

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.

  parent reply	other threads:[~2005-06-18  3:17 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-16  1:40 Matches for multiline regexps Luc Teirlinck
2005-06-16  2:09 ` Luc Teirlinck
2005-06-16  2:24 ` Luc Teirlinck
2005-06-16 16:24 ` Richard Stallman
2005-06-17  3:26   ` Luc Teirlinck
2005-06-17 14:58     ` Richard Stallman
2005-06-18  2:48       ` Luc Teirlinck
2005-06-19  3:50         ` Richard Stallman
2005-06-19 14:14           ` Juri Linkov
2005-06-20  3:50             ` Richard Stallman
2005-06-20  4:47               ` Juri Linkov
2005-06-21  2:00                 ` Richard Stallman
2005-06-20  1:57           ` Luc Teirlinck
2005-06-20 17:51             ` Richard Stallman
2005-06-18  3:17       ` Luc Teirlinck [this message]
2005-06-17  3:30   ` Luc Teirlinck
2005-06-17 14:58     ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200506180317.j5I3HTP04899@raven.dms.auburn.edu \
    --to=teirllm@dms.auburn.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).