From: Alan Mackenzie<none@example.invalid>
Subject: Problem with re-search-backward and "\\="
Date: Tue, 16 Sep 2003 16:44:29 +0000 [thread overview]
Message-ID: <dle7kb.r5.ln@acm.acm> (raw)
GNU Emacs 21.1
Suppose I have this in a buffer:
foo bar
If point is immediately after foo, then (re-search-forward "\\= *")
leaves point immediately before bar, as one would expect.
However, with point immediately before bar (re-search-backward " *\\=")
fails. I would have expected this search to have succeeded, leaving
point just after foo.
The definition of `\=' in the elisp info page "Regexp Backslash" is:
> matches the empty string, but only at point. (This construct is not
> defined when matching against a string.)
Is this a bug, or have I misunderstood something?
--
Alan Mackenzie (Munich, Germany)
Email: aacm@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").
next reply other threads:[~2003-09-16 16:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-16 16:44 Alan Mackenzie [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-09-16 18:57 Problem with re-search-backward and "\\=" Greg Hill
[not found] <mailman.313.1063738732.21628.help-gnu-emacs@gnu.org>
2003-09-17 8:13 ` Alan Mackenzie
2003-09-17 17:39 ` Greg Hill
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=dle7kb.r5.ln@acm.acm \
--to=none@example.invalid \
/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.
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).