[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: flush-lines and regexp problems with emacs 22.0.x
From: |
martin rudalics |
Subject: |
Re: flush-lines and regexp problems with emacs 22.0.x |
Date: |
Wed, 17 Jan 2007 09:01:04 +0100 |
User-agent: |
Mozilla Thunderbird 1.0 (Windows/20041206) |
> I'd say that the blank line shouldn't be deleted because nothing is
> matched on it. But the end point is on this line, so I'm not sure.
> The flush-lines documentation is not clear about that.
`flush-lines' deletes everything from the beginning of the line where
the match starts to the beginning of the line following the end of the
match. I think the documentation of `flush-lines' should be improved in
this regard.
> (flush-lines "^\\(> \n\\)*> foo$\\(\n> .*\\)*") has no effect on it.
This is explained in the manuals:
For historical compatibility reasons, `$' can be used only at the
end of the regular expression, or before `\)' or `\|'.
> (flush-lines "^\\(> \n\\)*> foo\\($\\|\\(\n> .*\\)+\\)") doesn't have
> any effect either,
This is strange, it does match
> foo
on my system, hence it should flush that line. Please recheck.
- Re: flush-lines and regexp problems with emacs 22.0.x,
martin rudalics <=