bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#21279: 24.4; (match-end 0) doesn't always return nil when previous s


From: Ernesto Alfonso
Subject: bug#21279: 24.4; (match-end 0) doesn't always return nil when previous string-match fails
Date: Mon, 17 Aug 2015 03:34:06 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

I see.

I think the documentation of match-end and others should be updated, though, 
since right now it is a little misleading:

"Value is nil if SUBEXPth pair didn't match, or there were less than
  SUBEXP pairs.
"

seems to suggest that if match fails, value should be nil. I was certaily 
confused.

Ernesto
Andreas Schwab <schwab@suse.de> writes:

> Ernesto Alfonso <erjoalgo@gmail.com> writes:
>
>> (match-end 0) doesn't always return nil when previous string-match fails:
>
> A failing match doesn't set match-data.
>
> Andreas.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]