Subject: bug#9514: 24.0.50; eval + format weirdness

From: Andreas Schwab <[email-masked]>
Date: Fri, 16 Sep 2011 10:06:23 +0200

Paul Eggert <[email-masked]> writes:

> The patch you just installed for text properties (bzr 105788)
> causes (format "%4000s%%" "") to fail with
> (error "Format string ends in middle of format specifier"),
> and it causes (length (format "%%")) to incorrectly return 2.
> I fixed those two problems in a further patch (bzr 105791);
> I hope this also fixes the text-property issue.

Thanks, looks good.  For reference, here's a testcase for the
text-property issue:

(let ((s (string-to-multibyte "%%%%foo")))
  (add-text-properties 2 7 '(foo t) s)
  (format s))

Before my patch it returned #("%%foo" 0 5 (foo t)).

Andreas.

-- 
Andreas Schwab, [email-masked]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."