|
From: | Stefan Monnier |
Subject: | Re: Strange results from lwarn + match-string |
Date: | Tue, 19 Feb 2008 17:08:20 -0500 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
> (lwarn t :warning "0: %s" (match-string-no-properties 0)) > (lwarn t :warning "1: %s" (match-string-no-properties 1)) > (lwarn t :warning "2: %s" (match-string-no-properties 2)) > (lwarn t :warning "3: %s" (match-string-no-properties 3)) Since you don't know for a fact that lwarn is among the few functions that do not affect match-data, you need to call all 4 `match-string-no-properties' before you call the 4 `lwarn'. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |