[Top][All Lists]

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

bug#9514: 24.0.50; eval + format weirdness

From: Andreas Schwab
Subject: bug#9514: 24.0.50; eval + format weirdness
Date: Fri, 16 Sep 2011 10:06:23 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

Paul Eggert <address@hidden> 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 Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

reply via email to

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