diff options
| author | Richard M. Stallman | 1995-11-10 06:41:14 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-11-10 06:41:14 +0000 |
| commit | 102cfe92466b5fa00e419e266b047abfa699fd45 (patch) | |
| tree | 0b4cd2828712801284dbfeda33e7a5cea68c9123 | |
| parent | 1513af9e91d145bbd1cf46db2e7afdfe3359bebb (diff) | |
| download | emacs-102cfe92466b5fa00e419e266b047abfa699fd45.tar.gz emacs-102cfe92466b5fa00e419e266b047abfa699fd45.zip | |
(Fformat): Use doprnt_lisp.
| -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.") | |||
| 1896 | strings[i++] = (unsigned char *) u.half[1]; | 1896 | strings[i++] = (unsigned char *) u.half[1]; |
| 1897 | } | 1897 | } |
| 1898 | #endif | 1898 | #endif |
| 1899 | else | 1899 | else if (i == 0) |
| 1900 | /* The first string is treated differently | ||
| 1901 | because it is the format string. */ | ||
| 1900 | strings[i++] = XSTRING (args[n])->data; | 1902 | strings[i++] = XSTRING (args[n])->data; |
| 1903 | else | ||
| 1904 | strings[i++] = (unsigned char *) XFASTINT (args[n]); | ||
| 1901 | } | 1905 | } |
| 1902 | 1906 | ||
| 1903 | /* Make room in result for all the non-%-codes in the control string. */ | 1907 | /* 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.") | |||
| 1909 | buf = (char *) alloca (total + 1); | 1913 | buf = (char *) alloca (total + 1); |
| 1910 | buf[total - 1] = 0; | 1914 | buf[total - 1] = 0; |
| 1911 | 1915 | ||
| 1912 | length = doprnt (buf, total + 1, strings[0], end, i-1, strings + 1); | 1916 | length = doprnt_lisp (buf, total + 1, strings[0], |
| 1917 | end, i-1, strings + 1); | ||
| 1913 | if (buf[total - 1] == 0) | 1918 | if (buf[total - 1] == 0) |
| 1914 | break; | 1919 | break; |
| 1915 | 1920 | ||