From: Richard Stallman <rms@gnu.org>
Cc: bug-gnu-emacs@gnu.org, ding@gnus.org
Subject: Re: string-match doesn't honor anchor when START is nonzero
Date: Wed, 26 Jan 2000 07:42:12 -0700 (MST) [thread overview]
Message-ID: <200001261442.HAA00249@aztec.santafe.edu> (raw)
In-Reply-To: <uryk8kxrgpk.fsf@ixi.eng.ascend.com> (message from Jim Meyering on 25 Jan 2000 22:20:39 +0100)
Is it expected that this would evaluate to nil? (it does)
(string-match "^j" " j" 1)
That is correct. The argument 1 means to look for a match starting no
earlier than position 1, but the criterion for a match does not treat
position 1 as the start of a line if it is not one.
If returning `nil' is the intended behavior, then there's a bug in
mail-utils.el (rmail-dont-reply-to) because it seems to expect `1' and
fails when it gets the `nil'.
Could you show which call to string-match is seems to have the problem?
It seems you have tracked this down already; I did a quick scan and
I don't see a bug of this kind. We could debug it, but if you already
have done so, why not tell us what you know?
next prev parent reply other threads:[~2000-01-26 14:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-01-25 21:20 Jim Meyering
2000-01-26 14:42 ` Richard Stallman [this message]
2000-01-26 15:08 ` Jim Meyering
2000-01-26 16:07 ` Gerd Moellmann
2000-01-26 16:34 ` Jim Meyering
2000-01-27 12:53 ` Gerd Moellmann
2000-01-27 16:30 ` Jim Meyering
2000-02-09 18:22 ` mail-utils.el (rmail-dont-reply-to) is still buggy Jim Meyering
2000-02-12 16:43 ` Gerd Moellmann
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200001261442.HAA00249@aztec.santafe.edu \
--to=rms@gnu.org \
--cc=bug-gnu-emacs@gnu.org \
--cc=ding@gnus.org \
/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 NNTP newsgroup(s).