|
From: | Lennart Borgman (gmail) |
Subject: | Re: Strange results from lwarn + match-string |
Date: | Tue, 19 Feb 2008 23:22:33 +0100 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 |
Stefan Monnier wrote:
(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'.
Hm. It cured the problem, but that was really a surprise.
[Prev in Thread] | Current Thread | [Next in Thread] |