aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1998-11-05 20:06:22 +0000
committerKarl Heuer1998-11-05 20:06:22 +0000
commit101e446fa00b3fec42efd784d3a21ce16cba6bbd (patch)
tree2b5d5d086b78c3047e199a36a24901430888c4f2
parent63b896163c637232fff18ba6b47b59236a1664a4 (diff)
downloademacs-101e446fa00b3fec42efd784d3a21ce16cba6bbd.tar.gz
emacs-101e446fa00b3fec42efd784d3a21ce16cba6bbd.zip
(Fcombine_after_change_execute): Return nil, not junk.
If nothing to do, return immediately. (syms_of_insdel): Initialize combine_after_change_buffer.
-rw-r--r--src/insdel.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/insdel.c b/src/insdel.c
index 3806d3809e6..4ed8ac46674 100644
--- a/src/insdel.c
+++ b/src/insdel.c
@@ -2570,12 +2570,14 @@ DEFUN ("combine-after-change-execute", Fcombine_after_change_execute,
2570 "This function is for use internally in `combine-after-change-calls'.") 2570 "This function is for use internally in `combine-after-change-calls'.")
2571 () 2571 ()
2572{ 2572{
2573 register Lisp_Object val;
2574 int count = specpdl_ptr - specpdl; 2573 int count = specpdl_ptr - specpdl;
2575 int beg, end, change; 2574 int beg, end, change;
2576 int begpos, endpos; 2575 int begpos, endpos;
2577 Lisp_Object tail; 2576 Lisp_Object tail;
2578 2577
2578 if (NILP (combine_after_change_list))
2579 return Qnil;
2580
2579 record_unwind_protect (Fset_buffer, Fcurrent_buffer ()); 2581 record_unwind_protect (Fset_buffer, Fcurrent_buffer ());
2580 2582
2581 Fset_buffer (combine_after_change_buffer); 2583 Fset_buffer (combine_after_change_buffer);
@@ -2633,7 +2635,7 @@ DEFUN ("combine-after-change-execute", Fcombine_after_change_execute,
2633 Vcombine_after_change_calls); 2635 Vcombine_after_change_calls);
2634 signal_after_change (begpos, endpos - begpos - change, endpos - begpos); 2636 signal_after_change (begpos, endpos - begpos - change, endpos - begpos);
2635 2637
2636 return unbind_to (count, val); 2638 return unbind_to (count, Qnil);
2637} 2639}
2638 2640
2639void 2641void
@@ -2641,6 +2643,7 @@ syms_of_insdel ()
2641{ 2643{
2642 staticpro (&combine_after_change_list); 2644 staticpro (&combine_after_change_list);
2643 combine_after_change_list = Qnil; 2645 combine_after_change_list = Qnil;
2646 combine_after_change_buffer = Qnil;
2644 2647
2645 DEFVAR_BOOL ("check-markers-debug-flag", &check_markers_debug_flag, 2648 DEFVAR_BOOL ("check-markers-debug-flag", &check_markers_debug_flag,
2646 "Non-nil means enable debugging checks for invalid marker positions."); 2649 "Non-nil means enable debugging checks for invalid marker positions.");