diff options
Diffstat (limited to 'src/editfns.c')
| -rw-r--r-- | src/editfns.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/editfns.c b/src/editfns.c index dead48c1a62..cddb0d4eae6 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -908,6 +908,10 @@ even in case of abnormal exit (throw or error). | |||
| 908 | If you only want to save the current buffer but not point, | 908 | If you only want to save the current buffer but not point, |
| 909 | then just use `save-current-buffer', or even `with-current-buffer'. | 909 | then just use `save-current-buffer', or even `with-current-buffer'. |
| 910 | 910 | ||
| 911 | Before Emacs 25.1, `save-excursion' used to save the mark state. | ||
| 912 | To save the marker state as well as the point and buffer, use | ||
| 913 | `save-mark-and-excursion'. | ||
| 914 | |||
| 911 | usage: (save-excursion &rest BODY) */) | 915 | usage: (save-excursion &rest BODY) */) |
| 912 | (Lisp_Object args) | 916 | (Lisp_Object args) |
| 913 | { | 917 | { |
| @@ -4386,9 +4390,6 @@ usage: (format STRING &rest OBJECTS) */) | |||
| 4386 | nchars = multibyte_chars_in_text ((unsigned char *) buf, p - buf); | 4390 | nchars = multibyte_chars_in_text ((unsigned char *) buf, p - buf); |
| 4387 | val = make_specified_string (buf, nchars, p - buf, multibyte); | 4391 | val = make_specified_string (buf, nchars, p - buf, multibyte); |
| 4388 | 4392 | ||
| 4389 | /* If we allocated BUF with malloc, free it too. */ | ||
| 4390 | SAFE_FREE (); | ||
| 4391 | |||
| 4392 | /* If the format string has text properties, or any of the string | 4393 | /* If the format string has text properties, or any of the string |
| 4393 | arguments has text properties, set up text properties of the | 4394 | arguments has text properties, set up text properties of the |
| 4394 | result string. */ | 4395 | result string. */ |
| @@ -4494,6 +4495,9 @@ usage: (format STRING &rest OBJECTS) */) | |||
| 4494 | UNGCPRO; | 4495 | UNGCPRO; |
| 4495 | } | 4496 | } |
| 4496 | 4497 | ||
| 4498 | /* If we allocated BUF or INFO with malloc, free it too. */ | ||
| 4499 | SAFE_FREE (); | ||
| 4500 | |||
| 4497 | return val; | 4501 | return val; |
| 4498 | } | 4502 | } |
| 4499 | 4503 | ||