From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/28948 Path: main.gmane.org!not-for-mail From: Jim Meyering Newsgroups: gmane.emacs.gnus.general Subject: string-match doesn't honor anchor when START is nonzero Date: 25 Jan 2000 22:20:39 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035165704 32451 80.91.224.250 (21 Oct 2002 02:01:44 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:01:44 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: from bart.math.uh.edu (bart.math.uh.edu [129.7.128.48]) by mailhost.sclp.com (Postfix) with ESMTP id 105A3D051E for ; Tue, 25 Jan 2000 16:38:30 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by bart.math.uh.edu (8.9.1/8.9.1) with ESMTP id PAB26186; Tue, 25 Jan 2000 15:37:59 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 25 Jan 2000 15:37:07 -0600 (CST) Original-Received: from mailhost.sclp.com (postfix@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id PAA29841 for ; Tue, 25 Jan 2000 15:36:52 -0600 (CST) Original-Received: from mail.emea.ascend.com (ex.ascend.fr [212.234.166.11]) by mailhost.sclp.com (Postfix) with ESMTP id D6364D051E for ; Tue, 25 Jan 2000 16:36:34 -0500 (EST) Original-Received: from ixi.eng.ascend.com (root@ixi [172.27.61.1]) by mail.emea.ascend.com (8.8.6/8.8.6) with ESMTP id WAA08091; Tue, 25 Jan 2000 22:30:06 +0100 (MET) Original-Received: (from meyering@localhost) by ixi.eng.ascend.com (8.9.3/8.9.3) id WAA18565; Tue, 25 Jan 2000 22:20:40 +0100 X-Authentication-Warning: ixi.eng.ascend.com: meyering set sender to meyering@ascend.com using -f Original-To: bug-gnu-emacs@gnu.org User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.5 Original-Lines: 31 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:28948 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:28948 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"