[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error in gnus-delay-article and extension
From: |
Dan Christensen |
Subject: |
Re: Error in gnus-delay-article and extension |
Date: |
Mon, 21 Dec 2009 23:05:33 -0500 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux) |
I'll just comment on your second question:
Cecil Westerhof <Cecil@decebal.nl> writes:
> Secondly I have been playing a little:
> (setq delay "2009-12-22")
>
> (string-match "\\([0-9][0-9][0-9][0-9]\\)-\\([0-9]+\\)-\\([0-9]+\\)"
> delay)
>
> (match-string 1 delay)
>
> (match-string 2 delay)
>
> (match-string 3 delay)
>
> (match-string 0 delay)
>
> The string-match gives 0, so the match is found. But the first three
> match-string do give nil.
> And the last gives:
> Debugger entered--Lisp error: (args-out-of-range "2009-12-22" 973 976)
Hmm, here's what I get:
(setq delay "2009-12-22")
"2009-12-22"
(string-match "\\([0-9][0-9][0-9][0-9]\\)-\\([0-9]+\\)-\\([0-9]+\\)"
delay)
0
(match-string 1 delay)
"2009"
(match-string 2 delay)
"12"
(match-string 3 delay)
"22"
(match-string 0 delay)
"2009-12-22"
Dan