From: Kenichi Handa Date: Thu, 13 Jul 2006 06:06:45 +0000 (+0000) Subject: (Fformat): Fix calculation of text property positions X-Git-Tag: emacs-pretest-22.0.90~1474 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d40ec4a023ec50eb087323b427644663b054c0f0;p=emacs.git (Fformat): Fix calculation of text property positions of format string. --- diff --git a/src/ChangeLog b/src/ChangeLog index d45831da762..827abe51c57 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2006-07-13 Kenichi Handa + + * editfns.c (Fformat): Fix calculation of text property positions + of format string. + 2006-07-12 Kim F. Storm * lisp.h (CHECK_TYPE): New macro for generic type checking. diff --git a/src/editfns.c b/src/editfns.c index 98a42855ba5..cf37c10a9d5 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -3886,7 +3886,7 @@ usage: (format STRING &rest OBJECTS) */) /* Likewise adjust the property end position. */ pos = XINT (XCAR (XCDR (item))); - for (; bytepos < pos; bytepos++) + for (; position < pos; bytepos++) { if (! discarded[bytepos]) position++, translated++;