diff options
author | Richard M. Stallman <rms@gnu.org> | 1995-11-10 06:41:14 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1995-11-10 06:41:14 +0000 |
commit | a9e480a6f8b31033400c3371d0517a676470d901 (patch) | |
tree | 275ced79e0cff18c204937881d102a53569c0ec8 /src/editfns.c | |
parent | 275c152d616fb1cdb52e0e6bbc93a2012477a32b (diff) | |
download | emacs-a9e480a6f8b31033400c3371d0517a676470d901.tar.gz |
(Fformat): Use doprnt_lisp.
Diffstat (limited to 'src/editfns.c')
-rw-r--r-- | src/editfns.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/editfns.c b/src/editfns.c index 1c3b2c3b393..e11b92a494c 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -1896,8 +1896,12 @@ Use %% to put a single % into the output.") strings[i++] = (unsigned char *) u.half[1]; } #endif - else + else if (i == 0) + /* The first string is treated differently + because it is the format string. */ strings[i++] = XSTRING (args[n])->data; + else + strings[i++] = (unsigned char *) XFASTINT (args[n]); } /* Make room in result for all the non-%-codes in the control string. */ @@ -1909,7 +1913,8 @@ Use %% to put a single % into the output.") buf = (char *) alloca (total + 1); buf[total - 1] = 0; - length = doprnt (buf, total + 1, strings[0], end, i-1, strings + 1); + length = doprnt_lisp (buf, total + 1, strings[0], + end, i-1, strings + 1); if (buf[total - 1] == 0) break; |