From: Gerd Moellmann <gerd@gnu.org>
Cc: bug-gnu-emacs@gnu.org, ding@gnus.org
Subject: Re: string-match doesn't honor anchor when START is nonzero
Date: 27 Jan 2000 13:53:04 +0100 [thread overview]
Message-ID: <86u2jz7k27.fsf@gerd.segv.de> (raw)
In-Reply-To: Jim Meyering's message of "26 Jan 2000 17:34:16 +0100"
Jim Meyering <meyering@ascend.com> writes:
> Gerd Moellmann <gerd@gnu.org> writes:
> | > This illustrates the problem:
> | >
> | > (setq rmail-dont-reply-to-names "f.")
> | > (load "mail-utils")
> | > (rmail-dont-reply-to "b, f1, f2, f3, f4, f5, f6")
> | >
> | > Return value: "b, f2, f4, f6"
> | >
> |
> | Thanks for the test case. Does the following patch solve the problem?
>
> Thanks for the quick work, but that doesn't quite do it
> since it removes only the matching part of the ID. Instead,
> it should remove the entire ID.
>
> Consider this example:
> (rmail-dont-reply-to "b, foo1, foo2, no-match")
> With your patch, it evaluates to this:
> bo1o2, no-match
Ah, sorry, you're right. How about this one, applied to the patched
version?
diff -c -r1.1 mail-utils.el
*** mail-utils.el 2000/01/27 12:48:26 1.1
--- mail-utils.el 2000/01/27 12:50:08
***************
*** 226,232 ****
;; Include the human name that precedes <foo@bar>.
"\\([^\,.<\"]\\|\"[^\"]*\"\\)*"
"<\\(" rmail-dont-reply-to-names "\\)"
! "\\)"))
(case-fold-search t)
pos epos)
(while (setq pos (string-match match userids pos))
--- 226,232 ----
;; Include the human name that precedes <foo@bar>.
"\\([^\,.<\"]\\|\"[^\"]*\"\\)*"
"<\\(" rmail-dont-reply-to-names "\\)"
! "\\)[^,]*"))
(case-fold-search t)
pos epos)
(while (setq pos (string-match match userids pos))
next prev parent reply other threads:[~2000-01-27 12:53 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
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 [this message]
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=86u2jz7k27.fsf@gerd.segv.de \
--to=gerd@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).