GNU bug report logs -
#9514
24.0.50; eval + format weirdness
Previous Next
Reported by: Wolfgang Jenkner <wjenkner <at> inode.at>
Date: Thu, 15 Sep 2011 14:17:02 UTC
Severity: normal
Found in version 24.0.50
Done: Paul Eggert <eggert <at> cs.ucla.edu>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Paul Eggert <eggert <at> cs.ucla.edu> 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, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
This bug report was last modified 13 years and 310 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.