aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1998-06-16 04:32:03 +0000
committerRichard M. Stallman1998-06-16 04:32:03 +0000
commit43c158ed152cfcae012c12059fea2d42344f9997 (patch)
tree170feacc8c779e2c793f03d85e78d2b8ea8dadf9 /src
parent7c573adb3bd9d7b43c27493c9bdf10698acbca2c (diff)
downloademacs-43c158ed152cfcae012c12059fea2d42344f9997.tar.gz
emacs-43c158ed152cfcae012c12059fea2d42344f9997.zip
(message_dolog): GCPRO the oldpoint, oldbegv and oldzv
markers, and old_deactivate_mark.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 4b87ffba4a9..365b172c8a4 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -297,6 +297,7 @@ message_dolog (m, len, nlflag, multibyte)
297 int point_at_end = 0; 297 int point_at_end = 0;
298 int zv_at_end = 0; 298 int zv_at_end = 0;
299 Lisp_Object old_deactivate_mark, tem; 299 Lisp_Object old_deactivate_mark, tem;
300 struct gcpro gcpro1, gcpro2, gcpro3, gcpro4;
300 301
301 old_deactivate_mark = Vdeactivate_mark; 302 old_deactivate_mark = Vdeactivate_mark;
302 oldbuf = current_buffer; 303 oldbuf = current_buffer;
@@ -306,6 +307,7 @@ message_dolog (m, len, nlflag, multibyte)
306 oldpoint = Fpoint_marker (); 307 oldpoint = Fpoint_marker ();
307 oldbegv = Fpoint_min_marker (); 308 oldbegv = Fpoint_min_marker ();
308 oldzv = Fpoint_max_marker (); 309 oldzv = Fpoint_max_marker ();
310 GCPRO4 (oldpoint, oldbegv, oldzv, old_deactivate_mark);
309 311
310 if (PT == Z) 312 if (PT == Z)
311 point_at_end = 1; 313 point_at_end = 1;
@@ -415,6 +417,7 @@ message_dolog (m, len, nlflag, multibyte)
415 else 417 else
416 Fgoto_char (oldpoint); 418 Fgoto_char (oldpoint);
417 419
420 UNGCPRO;
418 free_marker (oldpoint); 421 free_marker (oldpoint);
419 free_marker (oldbegv); 422 free_marker (oldbegv);
420 free_marker (oldzv); 423 free_marker (oldzv);