aboutsummaryrefslogtreecommitdiffstats
path: root/src/editfns.c
diff options
context:
space:
mode:
authorDmitry Antipov2013-01-17 10:29:40 +0400
committerDmitry Antipov2013-01-17 10:29:40 +0400
commit468afbaceaeb045f69b1a47aa1550a2556cd7dfd (patch)
treeff5bd77d87a3f52802196d04ef4c6ca493c47fe7 /src/editfns.c
parent0e70695aa48cb34d8c3df6e4d4173b6adb474b23 (diff)
downloademacs-468afbaceaeb045f69b1a47aa1550a2556cd7dfd.tar.gz
emacs-468afbaceaeb045f69b1a47aa1550a2556cd7dfd.zip
* lisp.h (toplevel): Add comment about using Lisp_Save_Value
objects, related functions and macros. (make_save_value): Adjust prototype. (make_save_pointer): New prototype. (SAFE_NALLOCA): Fix indentation. Use make_save_pointer. (SAFE_ALLOCA_LISP): Adjust make_save_value usage. * alloc.c (format_save_value): Rename to make_save_value. (make_save_pointer): New function. (record_xmalloc): Use make_save_pointer. * dired.c, editfns.c, fileio.c, font.c, gtkutil.c, lread.c: * nsmenu.m, nsterm.m, xfns.c, xmenu.c, xselect.c, keymap.c: Change users of make_save_value to make_save_pointer. Likewise for format_save_value and make_save_value.
Diffstat (limited to 'src/editfns.c')
-rw-r--r--src/editfns.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/editfns.c b/src/editfns.c
index 8910b66e4d3..197950517b7 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -833,7 +833,7 @@ This function does not move point. */)
833Lisp_Object 833Lisp_Object
834save_excursion_save (void) 834save_excursion_save (void)
835{ 835{
836 return format_save_value 836 return make_save_value
837 ("oooo", 837 ("oooo",
838 Fpoint_marker (), 838 Fpoint_marker (),
839 /* Do not copy the mark if it points to nowhere. */ 839 /* Do not copy the mark if it points to nowhere. */
@@ -4249,7 +4249,7 @@ usage: (format STRING &rest OBJECTS) */)
4249 { 4249 {
4250 buf = xmalloc (bufsize); 4250 buf = xmalloc (bufsize);
4251 sa_must_free = 1; 4251 sa_must_free = 1;
4252 buf_save_value = make_save_value (buf, 0); 4252 buf_save_value = make_save_pointer (buf);
4253 record_unwind_protect (safe_alloca_unwind, buf_save_value); 4253 record_unwind_protect (safe_alloca_unwind, buf_save_value);
4254 memcpy (buf, initial_buffer, used); 4254 memcpy (buf, initial_buffer, used);
4255 } 4255 }