Gnus development mailing list
 help / color / mirror / Atom feed
* string-match doesn't honor anchor when START is nonzero
@ 2000-01-25 21:20 Jim Meyering
  2000-01-26 14:42 ` Richard Stallman
  2000-01-26 16:07 ` Gerd Moellmann
  0 siblings, 2 replies; 9+ messages in thread
From: Jim Meyering @ 2000-01-25 21:20 UTC (permalink / raw)
  Cc: ding

In GNU Emacs 20.5.1 (i686-pc-linux-gnu, X toolkit)
 of Fri Dec 10 1999 on ixi.eng.ascend.com
configured using `configure  --prefix=/p/p/emacs-20.5'
------------

The following seems to be at the root of a problem I noticed in Gnus.

Is it expected that this would evaluate to nil?  (it does)

  (string-match "^j" " j" 1)

I expected it to return `1', but the `^' gets in the way.
The documentation for string-match doesn't address this point
as far as I could see.

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'.  The result is that that function removes
only one of two matching, adjacent addresses.

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"

It should be

  Return value: "b"



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2000-02-12 16:43 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-01-25 21:20 string-match doesn't honor anchor when START is nonzero 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
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

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).