diff options
| -rw-r--r-- | etc/NEWS | 16 |
1 files changed, 9 insertions, 7 deletions
| @@ -1361,6 +1361,15 @@ non-nil, but the code returned the list in the increasing order of | |||
| 1361 | priority instead. Now the code does what the documentation says it | 1361 | priority instead. Now the code does what the documentation says it |
| 1362 | should do. | 1362 | should do. |
| 1363 | 1363 | ||
| 1364 | +++ | ||
| 1365 | ** 'format' now avoids allocating a new string in more cases. | ||
| 1366 | 'format' was previously documented to return a newly-allocated string, | ||
| 1367 | but this documentation was not correct, as (eq x (format x)) returned | ||
| 1368 | t when x was the empty string. 'format' is no longer documented to | ||
| 1369 | return a newly-allocated string, and the implementation now takes | ||
| 1370 | advantage of the doc change to avoid making copies of strings in | ||
| 1371 | common cases like (format "foo") and (format "%s" "foo"). | ||
| 1372 | |||
| 1364 | --- | 1373 | --- |
| 1365 | ** The function 'eldoc-message' now accepts a single argument. | 1374 | ** The function 'eldoc-message' now accepts a single argument. |
| 1366 | Programs that called it with multiple arguments before should pass | 1375 | Programs that called it with multiple arguments before should pass |
| @@ -1556,13 +1565,6 @@ Emacs integers with %e, %f, or %g conversions. For example, on these | |||
| 1556 | hosts (eql N (string-to-number (format "%.0f" N))) now returns t for | 1565 | hosts (eql N (string-to-number (format "%.0f" N))) now returns t for |
| 1557 | all Emacs integers N. | 1566 | all Emacs integers N. |
| 1558 | 1567 | ||
| 1559 | +++ | ||
| 1560 | ** 'format' is no longer documented to return a newly-allocated string. | ||
| 1561 | This documentation was not correct, as (eq x (format x)) returned t | ||
| 1562 | when x was the empty string. 'format' now takes advantage of the doc | ||
| 1563 | change to avoid making copies of strings in common cases like (format | ||
| 1564 | "foo") and (format "%s" "foo"). | ||
| 1565 | |||
| 1566 | --- | 1568 | --- |
| 1567 | ** Calls that accept floating-point integers (for use on hosts with | 1569 | ** Calls that accept floating-point integers (for use on hosts with |
| 1568 | limited integer range) now signal an error if arguments are not | 1570 | limited integer range) now signal an error if arguments are not |