From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/28960 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.gnus.general Subject: Re: string-match doesn't honor anchor when START is nonzero Date: Wed, 26 Jan 2000 07:42:12 -0700 (MST) Sender: owner-ding@hpc.uh.edu Message-ID: <200001261442.HAA00249@aztec.santafe.edu> References: Reply-To: rms@gnu.org NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035165713 32503 80.91.224.250 (21 Oct 2002 02:01:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:01:53 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, 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 C1FB7D051E for ; Wed, 26 Jan 2000 09:43:18 -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 IAB27435; Wed, 26 Jan 2000 08:43:03 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 26 Jan 2000 08:42:51 -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 IAA10512 for ; Wed, 26 Jan 2000 08:42:41 -0600 (CST) Original-Received: from pele.santafe.edu (pele.santafe.edu [192.12.12.119]) by mailhost.sclp.com (Postfix) with ESMTP id 4FFACD051E for ; Wed, 26 Jan 2000 09:42:34 -0500 (EST) Original-Received: from aztec.santafe.edu (aztec [192.12.12.49]) by pele.santafe.edu (8.9.1/8.9.1) with ESMTP id HAA24140; Wed, 26 Jan 2000 07:42:12 -0700 (MST) Original-Received: (from rms@localhost) by aztec.santafe.edu (8.9.1b+Sun/8.9.1) id HAA00249; Wed, 26 Jan 2000 07:42:12 -0700 (MST) X-Authentication-Warning: aztec.santafe.edu: rms set sender to rms@gnu.org using -f Original-To: meyering@ascend.com In-reply-to: (message from Jim Meyering on 25 Jan 2000 22:20:39 +0100) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:28960 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:28960 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?