diff options
| author | Juanma Barranquero | 2002-07-11 14:18:02 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2002-07-11 14:18:02 +0000 |
| commit | aed13378308fae471bf2c11870a456e457166c31 (patch) | |
| tree | 89ee2f5aaffc88a04531e85b1c1da979f17483f2 /src | |
| parent | e20b31732ad01d8de7605ea740525dedc3dbdb90 (diff) | |
| download | emacs-aed13378308fae471bf2c11870a456e457166c31.tar.gz emacs-aed13378308fae471bf2c11870a456e457166c31.zip | |
Use macro SPECPDL_INDEX.
Diffstat (limited to 'src')
| -rw-r--r-- | src/alloc.c | 2 | ||||
| -rw-r--r-- | src/buffer.c | 8 | ||||
| -rw-r--r-- | src/bytecode.c | 8 | ||||
| -rw-r--r-- | src/callint.c | 6 | ||||
| -rw-r--r-- | src/callproc.c | 10 | ||||
| -rw-r--r-- | src/coding.c | 2 | ||||
| -rw-r--r-- | src/composite.c | 2 | ||||
| -rw-r--r-- | src/dired.c | 4 | ||||
| -rw-r--r-- | src/dispnew.c | 2 | ||||
| -rw-r--r-- | src/editfns.c | 8 | ||||
| -rw-r--r-- | src/emacs.c | 2 | ||||
| -rw-r--r-- | src/eval.c | 26 | ||||
| -rw-r--r-- | src/fileio.c | 14 | ||||
| -rw-r--r-- | src/fns.c | 4 | ||||
| -rw-r--r-- | src/insdel.c | 2 | ||||
| -rw-r--r-- | src/keyboard.c | 24 | ||||
| -rw-r--r-- | src/keymap.c | 2 | ||||
| -rw-r--r-- | src/lread.c | 10 | ||||
| -rw-r--r-- | src/macfns.c | 6 | ||||
| -rw-r--r-- | src/macmenu.c | 2 | ||||
| -rw-r--r-- | src/minibuf.c | 8 | ||||
| -rw-r--r-- | src/print.c | 8 | ||||
| -rw-r--r-- | src/process.c | 10 | ||||
| -rw-r--r-- | src/sound.c | 2 | ||||
| -rw-r--r-- | src/textprop.c | 4 | ||||
| -rw-r--r-- | src/w32fns.c | 2 | ||||
| -rw-r--r-- | src/w32menu.c | 2 | ||||
| -rw-r--r-- | src/window.c | 6 | ||||
| -rw-r--r-- | src/xfaces.c | 2 | ||||
| -rw-r--r-- | src/xmenu.c | 2 | ||||
| -rw-r--r-- | src/xselect.c | 4 | ||||
| -rw-r--r-- | src/xterm.c | 2 |
32 files changed, 98 insertions, 98 deletions
diff --git a/src/alloc.c b/src/alloc.c index e89981c4545..50de0a217c6 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -4020,7 +4020,7 @@ struct backtrace | |||
| 4020 | int | 4020 | int |
| 4021 | inhibit_garbage_collection () | 4021 | inhibit_garbage_collection () |
| 4022 | { | 4022 | { |
| 4023 | int count = specpdl_ptr - specpdl; | 4023 | int count = SPECPDL_INDEX (); |
| 4024 | int nbits = min (VALBITS, BITS_PER_INT); | 4024 | int nbits = min (VALBITS, BITS_PER_INT); |
| 4025 | 4025 | ||
| 4026 | specbind (Qgc_cons_threshold, make_number (((EMACS_INT) 1 << (nbits - 1)) - 1)); | 4026 | specbind (Qgc_cons_threshold, make_number (((EMACS_INT) 1 << (nbits - 1)) - 1)); |
diff --git a/src/buffer.c b/src/buffer.c index e371b3133ae..a5bc8532cfb 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -1297,7 +1297,7 @@ with SIGHUP. */) | |||
| 1297 | 1297 | ||
| 1298 | /* Run hooks with the buffer to be killed the current buffer. */ | 1298 | /* Run hooks with the buffer to be killed the current buffer. */ |
| 1299 | { | 1299 | { |
| 1300 | int count = specpdl_ptr - specpdl; | 1300 | int count = SPECPDL_INDEX (); |
| 1301 | Lisp_Object list; | 1301 | Lisp_Object list; |
| 1302 | 1302 | ||
| 1303 | record_unwind_protect (save_excursion_restore, save_excursion_save ()); | 1303 | record_unwind_protect (save_excursion_restore, save_excursion_save ()); |
| @@ -1548,7 +1548,7 @@ the current buffer's major mode. */) | |||
| 1548 | if (NILP (function) || EQ (function, Qfundamental_mode)) | 1548 | if (NILP (function) || EQ (function, Qfundamental_mode)) |
| 1549 | return Qnil; | 1549 | return Qnil; |
| 1550 | 1550 | ||
| 1551 | count = specpdl_ptr - specpdl; | 1551 | count = SPECPDL_INDEX (); |
| 1552 | 1552 | ||
| 1553 | /* To select a nonfundamental mode, | 1553 | /* To select a nonfundamental mode, |
| 1554 | select the buffer temporarily and then call the mode function. */ | 1554 | select the buffer temporarily and then call the mode function. */ |
| @@ -3586,7 +3586,7 @@ buffer. */) | |||
| 3586 | { | 3586 | { |
| 3587 | struct buffer *b, *ob; | 3587 | struct buffer *b, *ob; |
| 3588 | Lisp_Object obuffer; | 3588 | Lisp_Object obuffer; |
| 3589 | int count = specpdl_ptr - specpdl; | 3589 | int count = SPECPDL_INDEX (); |
| 3590 | 3590 | ||
| 3591 | CHECK_OVERLAY (overlay); | 3591 | CHECK_OVERLAY (overlay); |
| 3592 | if (NILP (buffer)) | 3592 | if (NILP (buffer)) |
| @@ -3687,7 +3687,7 @@ DEFUN ("delete-overlay", Fdelete_overlay, Sdelete_overlay, 1, 1, 0, | |||
| 3687 | { | 3687 | { |
| 3688 | Lisp_Object buffer; | 3688 | Lisp_Object buffer; |
| 3689 | struct buffer *b; | 3689 | struct buffer *b; |
| 3690 | int count = specpdl_ptr - specpdl; | 3690 | int count = SPECPDL_INDEX (); |
| 3691 | 3691 | ||
| 3692 | CHECK_OVERLAY (overlay); | 3692 | CHECK_OVERLAY (overlay); |
| 3693 | 3693 | ||
diff --git a/src/bytecode.c b/src/bytecode.c index 442729e477a..7f58b4d17ab 100644 --- a/src/bytecode.c +++ b/src/bytecode.c | |||
| @@ -420,7 +420,7 @@ If the third argument is incorrect, Emacs may crash. */) | |||
| 420 | (bytestr, vector, maxdepth) | 420 | (bytestr, vector, maxdepth) |
| 421 | Lisp_Object bytestr, vector, maxdepth; | 421 | Lisp_Object bytestr, vector, maxdepth; |
| 422 | { | 422 | { |
| 423 | int count = specpdl_ptr - specpdl; | 423 | int count = SPECPDL_INDEX (); |
| 424 | #ifdef BYTE_CODE_METER | 424 | #ifdef BYTE_CODE_METER |
| 425 | int this_op = 0; | 425 | int this_op = 0; |
| 426 | int prev_op; | 426 | int prev_op; |
| @@ -728,7 +728,7 @@ If the third argument is incorrect, Emacs may crash. */) | |||
| 728 | op -= Bunbind; | 728 | op -= Bunbind; |
| 729 | dounbind: | 729 | dounbind: |
| 730 | BEFORE_POTENTIAL_GC (); | 730 | BEFORE_POTENTIAL_GC (); |
| 731 | unbind_to (specpdl_ptr - specpdl - op, Qnil); | 731 | unbind_to (SPECPDL_INDEX () - op, Qnil); |
| 732 | AFTER_POTENTIAL_GC (); | 732 | AFTER_POTENTIAL_GC (); |
| 733 | break; | 733 | break; |
| 734 | 734 | ||
| @@ -909,7 +909,7 @@ If the third argument is incorrect, Emacs may crash. */) | |||
| 909 | temp_output_buffer_show (TOP); | 909 | temp_output_buffer_show (TOP); |
| 910 | TOP = v1; | 910 | TOP = v1; |
| 911 | /* pop binding of standard-output */ | 911 | /* pop binding of standard-output */ |
| 912 | unbind_to (specpdl_ptr - specpdl - 1, Qnil); | 912 | unbind_to (SPECPDL_INDEX () - 1, Qnil); |
| 913 | AFTER_POTENTIAL_GC (); | 913 | AFTER_POTENTIAL_GC (); |
| 914 | break; | 914 | break; |
| 915 | } | 915 | } |
| @@ -1725,7 +1725,7 @@ If the third argument is incorrect, Emacs may crash. */) | |||
| 1725 | byte_stack_list = byte_stack_list->next; | 1725 | byte_stack_list = byte_stack_list->next; |
| 1726 | 1726 | ||
| 1727 | /* Binds and unbinds are supposed to be compiled balanced. */ | 1727 | /* Binds and unbinds are supposed to be compiled balanced. */ |
| 1728 | if (specpdl_ptr - specpdl != count) | 1728 | if (SPECPDL_INDEX () != count) |
| 1729 | #ifdef BYTE_CODE_SAFE | 1729 | #ifdef BYTE_CODE_SAFE |
| 1730 | error ("binding stack not balanced (serious byte compiler bug)"); | 1730 | error ("binding stack not balanced (serious byte compiler bug)"); |
| 1731 | #else | 1731 | #else |
diff --git a/src/callint.c b/src/callint.c index 3eca790c6df..4bb5cd57ccf 100644 --- a/src/callint.c +++ b/src/callint.c | |||
| @@ -198,7 +198,7 @@ supply if the command inquires which events were used to invoke it. */) | |||
| 198 | Lisp_Object specs; | 198 | Lisp_Object specs; |
| 199 | Lisp_Object teml; | 199 | Lisp_Object teml; |
| 200 | Lisp_Object enable; | 200 | Lisp_Object enable; |
| 201 | int speccount = specpdl_ptr - specpdl; | 201 | int speccount = SPECPDL_INDEX (); |
| 202 | 202 | ||
| 203 | /* The index of the next element of this_command_keys to examine for | 203 | /* The index of the next element of this_command_keys to examine for |
| 204 | the 'e' interactive code. */ | 204 | the 'e' interactive code. */ |
| @@ -541,7 +541,7 @@ supply if the command inquires which events were used to invoke it. */) | |||
| 541 | 541 | ||
| 542 | case 'k': /* Key sequence. */ | 542 | case 'k': /* Key sequence. */ |
| 543 | { | 543 | { |
| 544 | int speccount1 = specpdl_ptr - specpdl; | 544 | int speccount1 = SPECPDL_INDEX (); |
| 545 | specbind (Qcursor_in_echo_area, Qt); | 545 | specbind (Qcursor_in_echo_area, Qt); |
| 546 | args[i] = Fread_key_sequence (build_string (callint_message), | 546 | args[i] = Fread_key_sequence (build_string (callint_message), |
| 547 | Qnil, Qnil, Qnil, Qnil); | 547 | Qnil, Qnil, Qnil, Qnil); |
| @@ -569,7 +569,7 @@ supply if the command inquires which events were used to invoke it. */) | |||
| 569 | 569 | ||
| 570 | case 'K': /* Key sequence to be defined. */ | 570 | case 'K': /* Key sequence to be defined. */ |
| 571 | { | 571 | { |
| 572 | int speccount1 = specpdl_ptr - specpdl; | 572 | int speccount1 = SPECPDL_INDEX (); |
| 573 | specbind (Qcursor_in_echo_area, Qt); | 573 | specbind (Qcursor_in_echo_area, Qt); |
| 574 | args[i] = Fread_key_sequence (build_string (callint_message), | 574 | args[i] = Fread_key_sequence (build_string (callint_message), |
| 575 | Qnil, Qt, Qnil, Qnil); | 575 | Qnil, Qt, Qnil, Qnil); |
diff --git a/src/callproc.c b/src/callproc.c index f671c044419..c95055c67aa 100644 --- a/src/callproc.c +++ b/src/callproc.c | |||
| @@ -172,7 +172,7 @@ call_process_cleanup (fdpid) | |||
| 172 | 172 | ||
| 173 | if (EMACS_KILLPG (pid, SIGINT) == 0) | 173 | if (EMACS_KILLPG (pid, SIGINT) == 0) |
| 174 | { | 174 | { |
| 175 | int count = specpdl_ptr - specpdl; | 175 | int count = SPECPDL_INDEX (); |
| 176 | record_unwind_protect (call_process_kill, fdpid); | 176 | record_unwind_protect (call_process_kill, fdpid); |
| 177 | message1 ("Waiting for process to die...(type C-g again to kill it instantly)"); | 177 | message1 ("Waiting for process to die...(type C-g again to kill it instantly)"); |
| 178 | immediate_quit = 1; | 178 | immediate_quit = 1; |
| @@ -220,7 +220,7 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */) | |||
| 220 | char buf[16384]; | 220 | char buf[16384]; |
| 221 | char *bufptr = buf; | 221 | char *bufptr = buf; |
| 222 | int bufsize = 16384; | 222 | int bufsize = 16384; |
| 223 | int count = specpdl_ptr - specpdl; | 223 | int count = SPECPDL_INDEX (); |
| 224 | 224 | ||
| 225 | register unsigned char **new_argv | 225 | register unsigned char **new_argv |
| 226 | = (unsigned char **) alloca ((max (2, nargs - 2)) * sizeof (char *)); | 226 | = (unsigned char **) alloca ((max (2, nargs - 2)) * sizeof (char *)); |
| @@ -936,7 +936,7 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */) | |||
| 936 | } | 936 | } |
| 937 | 937 | ||
| 938 | { | 938 | { |
| 939 | int post_read_count = specpdl_ptr - specpdl; | 939 | int post_read_count = SPECPDL_INDEX (); |
| 940 | 940 | ||
| 941 | record_unwind_protect (save_excursion_restore, save_excursion_save ()); | 941 | record_unwind_protect (save_excursion_restore, save_excursion_save ()); |
| 942 | inserted = PT - pt_orig; | 942 | inserted = PT - pt_orig; |
| @@ -1017,7 +1017,7 @@ usage: (call-process-region START END PROGRAM &optional DELETE BUFFER DISPLAY &r | |||
| 1017 | struct gcpro gcpro1; | 1017 | struct gcpro gcpro1; |
| 1018 | Lisp_Object filename_string; | 1018 | Lisp_Object filename_string; |
| 1019 | register Lisp_Object start, end; | 1019 | register Lisp_Object start, end; |
| 1020 | int count = specpdl_ptr - specpdl; | 1020 | int count = SPECPDL_INDEX (); |
| 1021 | /* Qt denotes we have not yet called Ffind_operation_coding_system. */ | 1021 | /* Qt denotes we have not yet called Ffind_operation_coding_system. */ |
| 1022 | Lisp_Object coding_systems; | 1022 | Lisp_Object coding_systems; |
| 1023 | Lisp_Object val, *args2; | 1023 | Lisp_Object val, *args2; |
| @@ -1091,7 +1091,7 @@ usage: (call-process-region START END PROGRAM &optional DELETE BUFFER DISPLAY &r | |||
| 1091 | } | 1091 | } |
| 1092 | 1092 | ||
| 1093 | { | 1093 | { |
| 1094 | int count1 = specpdl_ptr - specpdl; | 1094 | int count1 = SPECPDL_INDEX (); |
| 1095 | 1095 | ||
| 1096 | specbind (intern ("coding-system-for-write"), val); | 1096 | specbind (intern ("coding-system-for-write"), val); |
| 1097 | Fwrite_region (start, end, filename_string, Qnil, Qlambda, Qnil, Qnil); | 1097 | Fwrite_region (start, end, filename_string, Qnil, Qlambda, Qnil, Qnil); |
diff --git a/src/coding.c b/src/coding.c index 0c4f20f1253..af23b636764 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -5804,7 +5804,7 @@ run_pre_post_conversion_on_str (str, coding, encodep) | |||
| 5804 | struct coding_system *coding; | 5804 | struct coding_system *coding; |
| 5805 | int encodep; | 5805 | int encodep; |
| 5806 | { | 5806 | { |
| 5807 | int count = specpdl_ptr - specpdl; | 5807 | int count = SPECPDL_INDEX (); |
| 5808 | struct gcpro gcpro1; | 5808 | struct gcpro gcpro1; |
| 5809 | int multibyte = STRING_MULTIBYTE (str); | 5809 | int multibyte = STRING_MULTIBYTE (str); |
| 5810 | Lisp_Object buffer; | 5810 | Lisp_Object buffer; |
diff --git a/src/composite.c b/src/composite.c index 985f628f794..8a8406587e2 100644 --- a/src/composite.c +++ b/src/composite.c | |||
| @@ -612,7 +612,7 @@ compose_chars_in_text (start, end, string) | |||
| 612 | 612 | ||
| 613 | if (STRINGP (string)) | 613 | if (STRINGP (string)) |
| 614 | { | 614 | { |
| 615 | count = specpdl_ptr - specpdl; | 615 | count = SPECPDL_INDEX (); |
| 616 | GCPRO1 (string); | 616 | GCPRO1 (string); |
| 617 | stop = end; | 617 | stop = end; |
| 618 | ptr = XSTRING (string)->data + string_char_to_byte (string, start); | 618 | ptr = XSTRING (string)->data + string_char_to_byte (string, start); |
diff --git a/src/dired.c b/src/dired.c index 4b6b94d8122..0a119afb5eb 100644 --- a/src/dired.c +++ b/src/dired.c | |||
| @@ -144,7 +144,7 @@ directory_files_internal (directory, full, match, nosort, attrs) | |||
| 144 | Lisp_Object list, dirfilename, encoded_directory; | 144 | Lisp_Object list, dirfilename, encoded_directory; |
| 145 | struct re_pattern_buffer *bufp = NULL; | 145 | struct re_pattern_buffer *bufp = NULL; |
| 146 | int needsep = 0; | 146 | int needsep = 0; |
| 147 | int count = specpdl_ptr - specpdl; | 147 | int count = SPECPDL_INDEX (); |
| 148 | struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5; | 148 | struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5; |
| 149 | DIRENTRY *dp; | 149 | DIRENTRY *dp; |
| 150 | int retry_p; | 150 | int retry_p; |
| @@ -473,7 +473,7 @@ file_name_completion (file, dirname, all_flag, ver_flag) | |||
| 473 | struct stat st; | 473 | struct stat st; |
| 474 | int directoryp; | 474 | int directoryp; |
| 475 | int passcount; | 475 | int passcount; |
| 476 | int count = specpdl_ptr - specpdl; | 476 | int count = SPECPDL_INDEX (); |
| 477 | struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5; | 477 | struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5; |
| 478 | 478 | ||
| 479 | elt = Qnil; | 479 | elt = Qnil; |
diff --git a/src/dispnew.c b/src/dispnew.c index 35c1b87a886..59cc06b19ea 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -5928,7 +5928,7 @@ change_frame_size_1 (f, newheight, newwidth, pretend, delay, safe) | |||
| 5928 | int newheight, newwidth, pretend, delay, safe; | 5928 | int newheight, newwidth, pretend, delay, safe; |
| 5929 | { | 5929 | { |
| 5930 | int new_frame_window_width; | 5930 | int new_frame_window_width; |
| 5931 | int count = specpdl_ptr - specpdl; | 5931 | int count = SPECPDL_INDEX (); |
| 5932 | 5932 | ||
| 5933 | /* If we can't deal with the change now, queue it for later. */ | 5933 | /* If we can't deal with the change now, queue it for later. */ |
| 5934 | if (delay || (redisplaying_p && !safe)) | 5934 | if (delay || (redisplaying_p && !safe)) |
diff --git a/src/editfns.c b/src/editfns.c index a2e2aaf269e..72da635a9b4 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -851,7 +851,7 @@ usage: (save-excursion &rest BODY) */) | |||
| 851 | Lisp_Object args; | 851 | Lisp_Object args; |
| 852 | { | 852 | { |
| 853 | register Lisp_Object val; | 853 | register Lisp_Object val; |
| 854 | int count = specpdl_ptr - specpdl; | 854 | int count = SPECPDL_INDEX (); |
| 855 | 855 | ||
| 856 | record_unwind_protect (save_excursion_restore, save_excursion_save ()); | 856 | record_unwind_protect (save_excursion_restore, save_excursion_save ()); |
| 857 | 857 | ||
| @@ -867,7 +867,7 @@ usage: (save-current-buffer &rest BODY) */) | |||
| 867 | Lisp_Object args; | 867 | Lisp_Object args; |
| 868 | { | 868 | { |
| 869 | Lisp_Object val; | 869 | Lisp_Object val; |
| 870 | int count = specpdl_ptr - specpdl; | 870 | int count = SPECPDL_INDEX (); |
| 871 | 871 | ||
| 872 | record_unwind_protect (set_buffer_if_live, Fcurrent_buffer ()); | 872 | record_unwind_protect (set_buffer_if_live, Fcurrent_buffer ()); |
| 873 | 873 | ||
| @@ -2482,7 +2482,7 @@ Both characters must have the same length of multi-byte form. */) | |||
| 2482 | int changed = 0; | 2482 | int changed = 0; |
| 2483 | unsigned char fromstr[MAX_MULTIBYTE_LENGTH], tostr[MAX_MULTIBYTE_LENGTH]; | 2483 | unsigned char fromstr[MAX_MULTIBYTE_LENGTH], tostr[MAX_MULTIBYTE_LENGTH]; |
| 2484 | unsigned char *p; | 2484 | unsigned char *p; |
| 2485 | int count = specpdl_ptr - specpdl; | 2485 | int count = SPECPDL_INDEX (); |
| 2486 | #define COMBINING_NO 0 | 2486 | #define COMBINING_NO 0 |
| 2487 | #define COMBINING_BEFORE 1 | 2487 | #define COMBINING_BEFORE 1 |
| 2488 | #define COMBINING_AFTER 2 | 2488 | #define COMBINING_AFTER 2 |
| @@ -2894,7 +2894,7 @@ usage: (save-restriction &rest BODY) */) | |||
| 2894 | Lisp_Object body; | 2894 | Lisp_Object body; |
| 2895 | { | 2895 | { |
| 2896 | register Lisp_Object val; | 2896 | register Lisp_Object val; |
| 2897 | int count = specpdl_ptr - specpdl; | 2897 | int count = SPECPDL_INDEX (); |
| 2898 | 2898 | ||
| 2899 | record_unwind_protect (save_restriction_restore, save_restriction_save ()); | 2899 | record_unwind_protect (save_restriction_restore, save_restriction_save ()); |
| 2900 | val = Fprogn (body); | 2900 | val = Fprogn (body); |
diff --git a/src/emacs.c b/src/emacs.c index 7065b69e2f7..f52af3e6fa6 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -425,7 +425,7 @@ init_cmdargs (argc, argv, skip_args) | |||
| 425 | { | 425 | { |
| 426 | register int i; | 426 | register int i; |
| 427 | Lisp_Object name, dir, tem; | 427 | Lisp_Object name, dir, tem; |
| 428 | int count = specpdl_ptr - specpdl; | 428 | int count = SPECPDL_INDEX (); |
| 429 | Lisp_Object raw_name; | 429 | Lisp_Object raw_name; |
| 430 | 430 | ||
| 431 | initial_argv = argv; | 431 | initial_argv = argv; |
diff --git a/src/eval.c b/src/eval.c index 569b57f5aea..8dd2d734e10 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -231,7 +231,7 @@ call_debugger (arg) | |||
| 231 | Lisp_Object arg; | 231 | Lisp_Object arg; |
| 232 | { | 232 | { |
| 233 | int debug_while_redisplaying; | 233 | int debug_while_redisplaying; |
| 234 | int count = specpdl_ptr - specpdl; | 234 | int count = SPECPDL_INDEX (); |
| 235 | Lisp_Object val; | 235 | Lisp_Object val; |
| 236 | 236 | ||
| 237 | if (lisp_eval_depth + 20 > max_lisp_eval_depth) | 237 | if (lisp_eval_depth + 20 > max_lisp_eval_depth) |
| @@ -864,7 +864,7 @@ usage: (let* VARLIST BODY...) */) | |||
| 864 | Lisp_Object args; | 864 | Lisp_Object args; |
| 865 | { | 865 | { |
| 866 | Lisp_Object varlist, val, elt; | 866 | Lisp_Object varlist, val, elt; |
| 867 | int count = specpdl_ptr - specpdl; | 867 | int count = SPECPDL_INDEX (); |
| 868 | struct gcpro gcpro1, gcpro2, gcpro3; | 868 | struct gcpro gcpro1, gcpro2, gcpro3; |
| 869 | 869 | ||
| 870 | GCPRO3 (args, elt, varlist); | 870 | GCPRO3 (args, elt, varlist); |
| @@ -904,7 +904,7 @@ usage: (let VARLIST BODY...) */) | |||
| 904 | { | 904 | { |
| 905 | Lisp_Object *temps, tem; | 905 | Lisp_Object *temps, tem; |
| 906 | register Lisp_Object elt, varlist; | 906 | register Lisp_Object elt, varlist; |
| 907 | int count = specpdl_ptr - specpdl; | 907 | int count = SPECPDL_INDEX (); |
| 908 | register int argnum; | 908 | register int argnum; |
| 909 | struct gcpro gcpro1, gcpro2; | 909 | struct gcpro gcpro1, gcpro2; |
| 910 | 910 | ||
| @@ -1095,7 +1095,7 @@ internal_catch (tag, func, arg) | |||
| 1095 | c.backlist = backtrace_list; | 1095 | c.backlist = backtrace_list; |
| 1096 | c.handlerlist = handlerlist; | 1096 | c.handlerlist = handlerlist; |
| 1097 | c.lisp_eval_depth = lisp_eval_depth; | 1097 | c.lisp_eval_depth = lisp_eval_depth; |
| 1098 | c.pdlcount = specpdl_ptr - specpdl; | 1098 | c.pdlcount = SPECPDL_INDEX (); |
| 1099 | c.poll_suppress_count = poll_suppress_count; | 1099 | c.poll_suppress_count = poll_suppress_count; |
| 1100 | c.gcpro = gcprolist; | 1100 | c.gcpro = gcprolist; |
| 1101 | c.byte_stack = byte_stack_list; | 1101 | c.byte_stack = byte_stack_list; |
| @@ -1196,7 +1196,7 @@ usage: (unwind-protect BODYFORM UNWINDFORMS...) */) | |||
| 1196 | Lisp_Object args; | 1196 | Lisp_Object args; |
| 1197 | { | 1197 | { |
| 1198 | Lisp_Object val; | 1198 | Lisp_Object val; |
| 1199 | int count = specpdl_ptr - specpdl; | 1199 | int count = SPECPDL_INDEX (); |
| 1200 | 1200 | ||
| 1201 | record_unwind_protect (0, Fcdr (args)); | 1201 | record_unwind_protect (0, Fcdr (args)); |
| 1202 | val = Feval (Fcar (args)); | 1202 | val = Feval (Fcar (args)); |
| @@ -1262,7 +1262,7 @@ usage: (condition-case VAR BODYFORM HANDLERS...) */) | |||
| 1262 | c.backlist = backtrace_list; | 1262 | c.backlist = backtrace_list; |
| 1263 | c.handlerlist = handlerlist; | 1263 | c.handlerlist = handlerlist; |
| 1264 | c.lisp_eval_depth = lisp_eval_depth; | 1264 | c.lisp_eval_depth = lisp_eval_depth; |
| 1265 | c.pdlcount = specpdl_ptr - specpdl; | 1265 | c.pdlcount = SPECPDL_INDEX (); |
| 1266 | c.poll_suppress_count = poll_suppress_count; | 1266 | c.poll_suppress_count = poll_suppress_count; |
| 1267 | c.gcpro = gcprolist; | 1267 | c.gcpro = gcprolist; |
| 1268 | c.byte_stack = byte_stack_list; | 1268 | c.byte_stack = byte_stack_list; |
| @@ -1327,7 +1327,7 @@ internal_condition_case (bfun, handlers, hfun) | |||
| 1327 | c.backlist = backtrace_list; | 1327 | c.backlist = backtrace_list; |
| 1328 | c.handlerlist = handlerlist; | 1328 | c.handlerlist = handlerlist; |
| 1329 | c.lisp_eval_depth = lisp_eval_depth; | 1329 | c.lisp_eval_depth = lisp_eval_depth; |
| 1330 | c.pdlcount = specpdl_ptr - specpdl; | 1330 | c.pdlcount = SPECPDL_INDEX (); |
| 1331 | c.poll_suppress_count = poll_suppress_count; | 1331 | c.poll_suppress_count = poll_suppress_count; |
| 1332 | c.gcpro = gcprolist; | 1332 | c.gcpro = gcprolist; |
| 1333 | c.byte_stack = byte_stack_list; | 1333 | c.byte_stack = byte_stack_list; |
| @@ -1367,7 +1367,7 @@ internal_condition_case_1 (bfun, arg, handlers, hfun) | |||
| 1367 | c.backlist = backtrace_list; | 1367 | c.backlist = backtrace_list; |
| 1368 | c.handlerlist = handlerlist; | 1368 | c.handlerlist = handlerlist; |
| 1369 | c.lisp_eval_depth = lisp_eval_depth; | 1369 | c.lisp_eval_depth = lisp_eval_depth; |
| 1370 | c.pdlcount = specpdl_ptr - specpdl; | 1370 | c.pdlcount = SPECPDL_INDEX (); |
| 1371 | c.poll_suppress_count = poll_suppress_count; | 1371 | c.poll_suppress_count = poll_suppress_count; |
| 1372 | c.gcpro = gcprolist; | 1372 | c.gcpro = gcprolist; |
| 1373 | c.byte_stack = byte_stack_list; | 1373 | c.byte_stack = byte_stack_list; |
| @@ -1410,7 +1410,7 @@ internal_condition_case_2 (bfun, nargs, args, handlers, hfun) | |||
| 1410 | c.backlist = backtrace_list; | 1410 | c.backlist = backtrace_list; |
| 1411 | c.handlerlist = handlerlist; | 1411 | c.handlerlist = handlerlist; |
| 1412 | c.lisp_eval_depth = lisp_eval_depth; | 1412 | c.lisp_eval_depth = lisp_eval_depth; |
| 1413 | c.pdlcount = specpdl_ptr - specpdl; | 1413 | c.pdlcount = SPECPDL_INDEX (); |
| 1414 | c.poll_suppress_count = poll_suppress_count; | 1414 | c.poll_suppress_count = poll_suppress_count; |
| 1415 | c.gcpro = gcprolist; | 1415 | c.gcpro = gcprolist; |
| 1416 | c.byte_stack = byte_stack_list; | 1416 | c.byte_stack = byte_stack_list; |
| @@ -1646,7 +1646,7 @@ find_handler_clause (handlers, conditions, sig, data, debugger_value_ptr) | |||
| 1646 | || !NILP (Vdebug_on_signal)) /* This says call debugger even if | 1646 | || !NILP (Vdebug_on_signal)) /* This says call debugger even if |
| 1647 | there is a handler. */ | 1647 | there is a handler. */ |
| 1648 | { | 1648 | { |
| 1649 | int count = specpdl_ptr - specpdl; | 1649 | int count = SPECPDL_INDEX (); |
| 1650 | int debugger_called = 0; | 1650 | int debugger_called = 0; |
| 1651 | Lisp_Object sig_symbol, combined_data; | 1651 | Lisp_Object sig_symbol, combined_data; |
| 1652 | /* This is set to 1 if we are handling a memory-full error, | 1652 | /* This is set to 1 if we are handling a memory-full error, |
| @@ -1914,7 +1914,7 @@ void | |||
| 1914 | do_autoload (fundef, funname) | 1914 | do_autoload (fundef, funname) |
| 1915 | Lisp_Object fundef, funname; | 1915 | Lisp_Object fundef, funname; |
| 1916 | { | 1916 | { |
| 1917 | int count = specpdl_ptr - specpdl; | 1917 | int count = SPECPDL_INDEX (); |
| 1918 | Lisp_Object fun, queue, first, second; | 1918 | Lisp_Object fun, queue, first, second; |
| 1919 | struct gcpro gcpro1, gcpro2, gcpro3; | 1919 | struct gcpro gcpro1, gcpro2, gcpro3; |
| 1920 | 1920 | ||
| @@ -2860,7 +2860,7 @@ funcall_lambda (fun, nargs, arg_vector) | |||
| 2860 | register Lisp_Object *arg_vector; | 2860 | register Lisp_Object *arg_vector; |
| 2861 | { | 2861 | { |
| 2862 | Lisp_Object val, syms_left, next; | 2862 | Lisp_Object val, syms_left, next; |
| 2863 | int count = specpdl_ptr - specpdl; | 2863 | int count = SPECPDL_INDEX (); |
| 2864 | int i, optional, rest; | 2864 | int i, optional, rest; |
| 2865 | 2865 | ||
| 2866 | if (CONSP (fun)) | 2866 | if (CONSP (fun)) |
| @@ -2953,7 +2953,7 @@ DEFUN ("fetch-bytecode", Ffetch_bytecode, Sfetch_bytecode, | |||
| 2953 | void | 2953 | void |
| 2954 | grow_specpdl () | 2954 | grow_specpdl () |
| 2955 | { | 2955 | { |
| 2956 | register int count = specpdl_ptr - specpdl; | 2956 | register int count = SPECPDL_INDEX (); |
| 2957 | if (specpdl_size >= max_specpdl_size) | 2957 | if (specpdl_size >= max_specpdl_size) |
| 2958 | { | 2958 | { |
| 2959 | if (max_specpdl_size < 400) | 2959 | if (max_specpdl_size < 400) |
diff --git a/src/fileio.c b/src/fileio.c index dd3872ecbf0..68425e5daf0 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -2371,7 +2371,7 @@ A prefix arg makes KEEP-TIME non-nil. */) | |||
| 2371 | struct stat st, out_st; | 2371 | struct stat st, out_st; |
| 2372 | Lisp_Object handler; | 2372 | Lisp_Object handler; |
| 2373 | struct gcpro gcpro1, gcpro2, gcpro3, gcpro4; | 2373 | struct gcpro gcpro1, gcpro2, gcpro3, gcpro4; |
| 2374 | int count = specpdl_ptr - specpdl; | 2374 | int count = SPECPDL_INDEX (); |
| 2375 | int input_file_statable_p; | 2375 | int input_file_statable_p; |
| 2376 | Lisp_Object encoded_file, encoded_newname; | 2376 | Lisp_Object encoded_file, encoded_newname; |
| 2377 | 2377 | ||
| @@ -4395,7 +4395,7 @@ actually used. */) | |||
| 4395 | this way, we can run Lisp program safely before decoding | 4395 | this way, we can run Lisp program safely before decoding |
| 4396 | the inserted text. */ | 4396 | the inserted text. */ |
| 4397 | Lisp_Object unwind_data; | 4397 | Lisp_Object unwind_data; |
| 4398 | int count = specpdl_ptr - specpdl; | 4398 | int count = SPECPDL_INDEX (); |
| 4399 | 4399 | ||
| 4400 | unwind_data = Fcons (current_buffer->enable_multibyte_characters, | 4400 | unwind_data = Fcons (current_buffer->enable_multibyte_characters, |
| 4401 | Fcons (current_buffer->undo_list, | 4401 | Fcons (current_buffer->undo_list, |
| @@ -4753,7 +4753,7 @@ This does code conversion according to the value of | |||
| 4753 | unsigned char *fn; | 4753 | unsigned char *fn; |
| 4754 | struct stat st; | 4754 | struct stat st; |
| 4755 | int tem; | 4755 | int tem; |
| 4756 | int count = specpdl_ptr - specpdl; | 4756 | int count = SPECPDL_INDEX (); |
| 4757 | int count1; | 4757 | int count1; |
| 4758 | #ifdef VMS | 4758 | #ifdef VMS |
| 4759 | unsigned char *fname = 0; /* If non-0, original filename (must rename) */ | 4759 | unsigned char *fname = 0; /* If non-0, original filename (must rename) */ |
| @@ -4825,7 +4825,7 @@ This does code conversion according to the value of | |||
| 4825 | } | 4825 | } |
| 4826 | 4826 | ||
| 4827 | record_unwind_protect (build_annotations_unwind, Fcurrent_buffer ()); | 4827 | record_unwind_protect (build_annotations_unwind, Fcurrent_buffer ()); |
| 4828 | count1 = specpdl_ptr - specpdl; | 4828 | count1 = SPECPDL_INDEX (); |
| 4829 | 4829 | ||
| 4830 | given_buffer = current_buffer; | 4830 | given_buffer = current_buffer; |
| 4831 | 4831 | ||
| @@ -5594,7 +5594,7 @@ A non-nil CURRENT-ONLY argument means save only current buffer. */) | |||
| 5594 | Lisp_Object oquit; | 5594 | Lisp_Object oquit; |
| 5595 | FILE *stream; | 5595 | FILE *stream; |
| 5596 | Lisp_Object lispstream; | 5596 | Lisp_Object lispstream; |
| 5597 | int count = specpdl_ptr - specpdl; | 5597 | int count = SPECPDL_INDEX (); |
| 5598 | int orig_minibuffer_auto_raise = minibuffer_auto_raise; | 5598 | int orig_minibuffer_auto_raise = minibuffer_auto_raise; |
| 5599 | int message_p = 0; | 5599 | int message_p = 0; |
| 5600 | 5600 | ||
| @@ -5941,7 +5941,7 @@ DEFUN ("read-file-name-internal", Fread_file_name_internal, Sread_file_name_inte | |||
| 5941 | { | 5941 | { |
| 5942 | /* Must do it the hard (and slow) way. */ | 5942 | /* Must do it the hard (and slow) way. */ |
| 5943 | GCPRO3 (all, comp, specdir); | 5943 | GCPRO3 (all, comp, specdir); |
| 5944 | count = specpdl_ptr - specpdl; | 5944 | count = SPECPDL_INDEX (); |
| 5945 | record_unwind_protect (read_file_name_cleanup, current_buffer->directory); | 5945 | record_unwind_protect (read_file_name_cleanup, current_buffer->directory); |
| 5946 | current_buffer->directory = realdir; | 5946 | current_buffer->directory = realdir; |
| 5947 | for (comp = Qnil; CONSP (all); all = XCDR (all)) | 5947 | for (comp = Qnil; CONSP (all); all = XCDR (all)) |
| @@ -6074,7 +6074,7 @@ provides a file dialog box. */) | |||
| 6074 | RETURN_UNGCPRO (Ffuncall (7, args)); | 6074 | RETURN_UNGCPRO (Ffuncall (7, args)); |
| 6075 | } | 6075 | } |
| 6076 | 6076 | ||
| 6077 | count = specpdl_ptr - specpdl; | 6077 | count = SPECPDL_INDEX (); |
| 6078 | #ifdef VMS | 6078 | #ifdef VMS |
| 6079 | specbind (intern ("completion-ignore-case"), Qt); | 6079 | specbind (intern ("completion-ignore-case"), Qt); |
| 6080 | #endif | 6080 | #endif |
| @@ -2935,7 +2935,7 @@ is nil and `use-dialog-box' is non-nil. */) | |||
| 2935 | Lisp_Object xprompt; | 2935 | Lisp_Object xprompt; |
| 2936 | Lisp_Object args[2]; | 2936 | Lisp_Object args[2]; |
| 2937 | struct gcpro gcpro1, gcpro2; | 2937 | struct gcpro gcpro1, gcpro2; |
| 2938 | int count = specpdl_ptr - specpdl; | 2938 | int count = SPECPDL_INDEX (); |
| 2939 | 2939 | ||
| 2940 | specbind (Qcursor_in_echo_area, Qt); | 2940 | specbind (Qcursor_in_echo_area, Qt); |
| 2941 | 2941 | ||
| @@ -3250,7 +3250,7 @@ The normal messages at start and end of loading FILENAME are suppressed. */) | |||
| 3250 | 3250 | ||
| 3251 | if (NILP (tem)) | 3251 | if (NILP (tem)) |
| 3252 | { | 3252 | { |
| 3253 | int count = specpdl_ptr - specpdl; | 3253 | int count = SPECPDL_INDEX (); |
| 3254 | int nesting = 0; | 3254 | int nesting = 0; |
| 3255 | 3255 | ||
| 3256 | /* This is to make sure that loadup.el gives a clear picture | 3256 | /* This is to make sure that loadup.el gives a clear picture |
diff --git a/src/insdel.c b/src/insdel.c index 5bec29ea926..1028bc40c4a 100644 --- a/src/insdel.c +++ b/src/insdel.c | |||
| @@ -2205,7 +2205,7 @@ DEFUN ("combine-after-change-execute", Fcombine_after_change_execute, | |||
| 2205 | doc: /* This function is for use internally in `combine-after-change-calls'. */) | 2205 | doc: /* This function is for use internally in `combine-after-change-calls'. */) |
| 2206 | () | 2206 | () |
| 2207 | { | 2207 | { |
| 2208 | int count = specpdl_ptr - specpdl; | 2208 | int count = SPECPDL_INDEX (); |
| 2209 | int beg, end, change; | 2209 | int beg, end, change; |
| 2210 | int begpos, endpos; | 2210 | int begpos, endpos; |
| 2211 | Lisp_Object tail; | 2211 | Lisp_Object tail; |
diff --git a/src/keyboard.c b/src/keyboard.c index 2c75e1cd87b..acd26a957c0 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -934,7 +934,7 @@ add_command_key (key) | |||
| 934 | Lisp_Object | 934 | Lisp_Object |
| 935 | recursive_edit_1 () | 935 | recursive_edit_1 () |
| 936 | { | 936 | { |
| 937 | int count = specpdl_ptr - specpdl; | 937 | int count = SPECPDL_INDEX (); |
| 938 | Lisp_Object val; | 938 | Lisp_Object val; |
| 939 | 939 | ||
| 940 | if (command_loop_level > 0) | 940 | if (command_loop_level > 0) |
| @@ -1000,7 +1000,7 @@ Alternately, `(throw 'exit t)' makes this function signal an error. | |||
| 1000 | This function is called by the editor initialization to begin editing. */) | 1000 | This function is called by the editor initialization to begin editing. */) |
| 1001 | () | 1001 | () |
| 1002 | { | 1002 | { |
| 1003 | int count = specpdl_ptr - specpdl; | 1003 | int count = SPECPDL_INDEX (); |
| 1004 | Lisp_Object buffer; | 1004 | Lisp_Object buffer; |
| 1005 | 1005 | ||
| 1006 | command_loop_level++; | 1006 | command_loop_level++; |
| @@ -1407,7 +1407,7 @@ command_loop_1 () | |||
| 1407 | { | 1407 | { |
| 1408 | /* Bind inhibit-quit to t so that C-g gets read in | 1408 | /* Bind inhibit-quit to t so that C-g gets read in |
| 1409 | rather than quitting back to the minibuffer. */ | 1409 | rather than quitting back to the minibuffer. */ |
| 1410 | int count = specpdl_ptr - specpdl; | 1410 | int count = SPECPDL_INDEX (); |
| 1411 | specbind (Qinhibit_quit, Qt); | 1411 | specbind (Qinhibit_quit, Qt); |
| 1412 | 1412 | ||
| 1413 | Fsit_for (Vminibuffer_message_timeout, Qnil, Qnil); | 1413 | Fsit_for (Vminibuffer_message_timeout, Qnil, Qnil); |
| @@ -1838,7 +1838,7 @@ void | |||
| 1838 | safe_run_hooks (hook) | 1838 | safe_run_hooks (hook) |
| 1839 | Lisp_Object hook; | 1839 | Lisp_Object hook; |
| 1840 | { | 1840 | { |
| 1841 | int count = specpdl_ptr - specpdl; | 1841 | int count = SPECPDL_INDEX (); |
| 1842 | specbind (Qinhibit_quit, hook); | 1842 | specbind (Qinhibit_quit, hook); |
| 1843 | 1843 | ||
| 1844 | internal_condition_case (safe_run_hooks_1, Qt, safe_run_hooks_error); | 1844 | internal_condition_case (safe_run_hooks_1, Qt, safe_run_hooks_error); |
| @@ -2813,7 +2813,7 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu) | |||
| 2813 | Lisp_Object keys; | 2813 | Lisp_Object keys; |
| 2814 | int key_count; | 2814 | int key_count; |
| 2815 | struct gcpro gcpro1; | 2815 | struct gcpro gcpro1; |
| 2816 | int count = specpdl_ptr - specpdl; | 2816 | int count = SPECPDL_INDEX (); |
| 2817 | 2817 | ||
| 2818 | /* Save the echo status. */ | 2818 | /* Save the echo status. */ |
| 2819 | int saved_immediate_echo = current_kboard->immediate_echo; | 2819 | int saved_immediate_echo = current_kboard->immediate_echo; |
| @@ -2943,7 +2943,7 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu) | |||
| 2943 | if (!NILP (Vhelp_form) && help_char_p (c)) | 2943 | if (!NILP (Vhelp_form) && help_char_p (c)) |
| 2944 | { | 2944 | { |
| 2945 | Lisp_Object tem0; | 2945 | Lisp_Object tem0; |
| 2946 | count = specpdl_ptr - specpdl; | 2946 | count = SPECPDL_INDEX (); |
| 2947 | 2947 | ||
| 2948 | record_unwind_protect (Fset_window_configuration, | 2948 | record_unwind_protect (Fset_window_configuration, |
| 2949 | Fcurrent_window_configuration (Qnil)); | 2949 | Fcurrent_window_configuration (Qnil)); |
| @@ -3223,7 +3223,7 @@ usage: (track-mouse BODY ...) */) | |||
| 3223 | (args) | 3223 | (args) |
| 3224 | Lisp_Object args; | 3224 | Lisp_Object args; |
| 3225 | { | 3225 | { |
| 3226 | int count = specpdl_ptr - specpdl; | 3226 | int count = SPECPDL_INDEX (); |
| 3227 | Lisp_Object val; | 3227 | Lisp_Object val; |
| 3228 | 3228 | ||
| 3229 | record_unwind_protect (tracking_off, do_mouse_tracking); | 3229 | record_unwind_protect (tracking_off, do_mouse_tracking); |
| @@ -6789,7 +6789,7 @@ Lisp_Object | |||
| 6789 | menu_item_eval_property (sexpr) | 6789 | menu_item_eval_property (sexpr) |
| 6790 | Lisp_Object sexpr; | 6790 | Lisp_Object sexpr; |
| 6791 | { | 6791 | { |
| 6792 | int count = specpdl_ptr - specpdl; | 6792 | int count = SPECPDL_INDEX (); |
| 6793 | Lisp_Object val; | 6793 | Lisp_Object val; |
| 6794 | specbind (Qinhibit_redisplay, Qt); | 6794 | specbind (Qinhibit_redisplay, Qt); |
| 6795 | val = internal_condition_case_1 (Feval, sexpr, Qerror, | 6795 | val = internal_condition_case_1 (Feval, sexpr, Qerror, |
| @@ -8005,7 +8005,7 @@ read_key_sequence (keybuf, bufsize, prompt, dont_downcase_last, | |||
| 8005 | int fix_current_buffer; | 8005 | int fix_current_buffer; |
| 8006 | { | 8006 | { |
| 8007 | volatile Lisp_Object from_string; | 8007 | volatile Lisp_Object from_string; |
| 8008 | volatile int count = specpdl_ptr - specpdl; | 8008 | volatile int count = SPECPDL_INDEX (); |
| 8009 | 8009 | ||
| 8010 | /* How many keys there are in the current key sequence. */ | 8010 | /* How many keys there are in the current key sequence. */ |
| 8011 | volatile int t; | 8011 | volatile int t; |
| @@ -9187,7 +9187,7 @@ will read just one key sequence. */) | |||
| 9187 | Lisp_Object keybuf[30]; | 9187 | Lisp_Object keybuf[30]; |
| 9188 | register int i; | 9188 | register int i; |
| 9189 | struct gcpro gcpro1; | 9189 | struct gcpro gcpro1; |
| 9190 | int count = specpdl_ptr - specpdl; | 9190 | int count = SPECPDL_INDEX (); |
| 9191 | 9191 | ||
| 9192 | if (!NILP (prompt)) | 9192 | if (!NILP (prompt)) |
| 9193 | CHECK_STRING (prompt); | 9193 | CHECK_STRING (prompt); |
| @@ -9246,7 +9246,7 @@ DEFUN ("read-key-sequence-vector", Fread_key_sequence_vector, | |||
| 9246 | Lisp_Object keybuf[30]; | 9246 | Lisp_Object keybuf[30]; |
| 9247 | register int i; | 9247 | register int i; |
| 9248 | struct gcpro gcpro1; | 9248 | struct gcpro gcpro1; |
| 9249 | int count = specpdl_ptr - specpdl; | 9249 | int count = SPECPDL_INDEX (); |
| 9250 | 9250 | ||
| 9251 | if (!NILP (prompt)) | 9251 | if (!NILP (prompt)) |
| 9252 | CHECK_STRING (prompt); | 9252 | CHECK_STRING (prompt); |
| @@ -9797,7 +9797,7 @@ On such systems, Emacs starts a subshell instead of suspending. */) | |||
| 9797 | (stuffstring) | 9797 | (stuffstring) |
| 9798 | Lisp_Object stuffstring; | 9798 | Lisp_Object stuffstring; |
| 9799 | { | 9799 | { |
| 9800 | int count = specpdl_ptr - specpdl; | 9800 | int count = SPECPDL_INDEX (); |
| 9801 | int old_height, old_width; | 9801 | int old_height, old_width; |
| 9802 | int width, height; | 9802 | int width, height; |
| 9803 | struct gcpro gcpro1; | 9803 | struct gcpro gcpro1; |
diff --git a/src/keymap.c b/src/keymap.c index 24252e0b117..d811d1727f4 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -3121,7 +3121,7 @@ This is text showing the elements of vector matched against indices. */) | |||
| 3121 | (vector, describer) | 3121 | (vector, describer) |
| 3122 | Lisp_Object vector, describer; | 3122 | Lisp_Object vector, describer; |
| 3123 | { | 3123 | { |
| 3124 | int count = specpdl_ptr - specpdl; | 3124 | int count = SPECPDL_INDEX (); |
| 3125 | if (NILP (describer)) | 3125 | if (NILP (describer)) |
| 3126 | describer = intern ("princ"); | 3126 | describer = intern ("princ"); |
| 3127 | specbind (Qstandard_output, Fcurrent_buffer ()); | 3127 | specbind (Qstandard_output, Fcurrent_buffer ()); |
diff --git a/src/lread.c b/src/lread.c index e40d5680c86..aaab4fd8f64 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -660,7 +660,7 @@ Return t if file exists. */) | |||
| 660 | register FILE *stream; | 660 | register FILE *stream; |
| 661 | register int fd = -1; | 661 | register int fd = -1; |
| 662 | register Lisp_Object lispstream; | 662 | register Lisp_Object lispstream; |
| 663 | int count = specpdl_ptr - specpdl; | 663 | int count = SPECPDL_INDEX (); |
| 664 | Lisp_Object temp; | 664 | Lisp_Object temp; |
| 665 | struct gcpro gcpro1; | 665 | struct gcpro gcpro1; |
| 666 | Lisp_Object found, efound; | 666 | Lisp_Object found, efound; |
| @@ -1271,7 +1271,7 @@ readevalloop (readcharfun, stream, sourcename, evalfun, printflag, unibyte, read | |||
| 1271 | { | 1271 | { |
| 1272 | register int c; | 1272 | register int c; |
| 1273 | register Lisp_Object val; | 1273 | register Lisp_Object val; |
| 1274 | int count = specpdl_ptr - specpdl; | 1274 | int count = SPECPDL_INDEX (); |
| 1275 | struct gcpro gcpro1; | 1275 | struct gcpro gcpro1; |
| 1276 | struct buffer *b = 0; | 1276 | struct buffer *b = 0; |
| 1277 | int continue_reading_p; | 1277 | int continue_reading_p; |
| @@ -1313,7 +1313,7 @@ readevalloop (readcharfun, stream, sourcename, evalfun, printflag, unibyte, read | |||
| 1313 | 1313 | ||
| 1314 | if (!NILP (Vpurify_flag) && c == '(') | 1314 | if (!NILP (Vpurify_flag) && c == '(') |
| 1315 | { | 1315 | { |
| 1316 | int count1 = specpdl_ptr - specpdl; | 1316 | int count1 = SPECPDL_INDEX (); |
| 1317 | record_unwind_protect (unreadpure, Qnil); | 1317 | record_unwind_protect (unreadpure, Qnil); |
| 1318 | val = read_list (-1, readcharfun); | 1318 | val = read_list (-1, readcharfun); |
| 1319 | unbind_to (count1, Qnil); | 1319 | unbind_to (count1, Qnil); |
| @@ -1379,7 +1379,7 @@ This function preserves the position of point. */) | |||
| 1379 | (buffer, printflag, filename, unibyte, do_allow_print) | 1379 | (buffer, printflag, filename, unibyte, do_allow_print) |
| 1380 | Lisp_Object buffer, printflag, filename, unibyte, do_allow_print; | 1380 | Lisp_Object buffer, printflag, filename, unibyte, do_allow_print; |
| 1381 | { | 1381 | { |
| 1382 | int count = specpdl_ptr - specpdl; | 1382 | int count = SPECPDL_INDEX (); |
| 1383 | Lisp_Object tem, buf; | 1383 | Lisp_Object tem, buf; |
| 1384 | 1384 | ||
| 1385 | if (NILP (buffer)) | 1385 | if (NILP (buffer)) |
| @@ -1421,7 +1421,7 @@ This function does not move point. */) | |||
| 1421 | (start, end, printflag, read_function) | 1421 | (start, end, printflag, read_function) |
| 1422 | Lisp_Object start, end, printflag, read_function; | 1422 | Lisp_Object start, end, printflag, read_function; |
| 1423 | { | 1423 | { |
| 1424 | int count = specpdl_ptr - specpdl; | 1424 | int count = SPECPDL_INDEX (); |
| 1425 | Lisp_Object tem, cbuf; | 1425 | Lisp_Object tem, cbuf; |
| 1426 | 1426 | ||
| 1427 | cbuf = Fcurrent_buffer (); | 1427 | cbuf = Fcurrent_buffer (); |
diff --git a/src/macfns.c b/src/macfns.c index 4366854ff1e..9a9baed37a5 100644 --- a/src/macfns.c +++ b/src/macfns.c | |||
| @@ -9304,7 +9304,7 @@ x_create_tip_frame (dpyinfo, parms) | |||
| 9304 | Lisp_Object name; | 9304 | Lisp_Object name; |
| 9305 | long window_prompting = 0; | 9305 | long window_prompting = 0; |
| 9306 | int width, height; | 9306 | int width, height; |
| 9307 | int count = specpdl_ptr - specpdl; | 9307 | int count = SPECPDL_INDEX (); |
| 9308 | struct gcpro gcpro1, gcpro2, gcpro3; | 9308 | struct gcpro gcpro1, gcpro2, gcpro3; |
| 9309 | struct kboard *kb; | 9309 | struct kboard *kb; |
| 9310 | 9310 | ||
| @@ -9562,7 +9562,7 @@ DY added (default is 10). */) | |||
| 9562 | unsigned pmask; | 9562 | unsigned pmask; |
| 9563 | struct gcpro gcpro1, gcpro2, gcpro3, gcpro4; | 9563 | struct gcpro gcpro1, gcpro2, gcpro3, gcpro4; |
| 9564 | int old_windows_or_buffers_changed = windows_or_buffers_changed; | 9564 | int old_windows_or_buffers_changed = windows_or_buffers_changed; |
| 9565 | int count = specpdl_ptr - specpdl; | 9565 | int count = SPECPDL_INDEX (); |
| 9566 | 9566 | ||
| 9567 | specbind (Qinhibit_redisplay, Qt); | 9567 | specbind (Qinhibit_redisplay, Qt); |
| 9568 | 9568 | ||
| @@ -9787,7 +9787,7 @@ selection dialog's entry field, if MUSTMATCH is non-nil. */) | |||
| 9787 | { | 9787 | { |
| 9788 | struct frame *f = SELECTED_FRAME (); | 9788 | struct frame *f = SELECTED_FRAME (); |
| 9789 | Lisp_Object file = Qnil; | 9789 | Lisp_Object file = Qnil; |
| 9790 | int count = specpdl_ptr - specpdl; | 9790 | int count = SPECPDL_INDEX (); |
| 9791 | struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5; | 9791 | struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5; |
| 9792 | char filename[MAX_PATH + 1]; | 9792 | char filename[MAX_PATH + 1]; |
| 9793 | char init_dir[MAX_PATH + 1]; | 9793 | char init_dir[MAX_PATH + 1]; |
diff --git a/src/macmenu.c b/src/macmenu.c index 5976dad767d..15190a7813b 100644 --- a/src/macmenu.c +++ b/src/macmenu.c | |||
| @@ -1369,7 +1369,7 @@ set_frame_menubar (f, first_time, deep_p) | |||
| 1369 | 1369 | ||
| 1370 | struct buffer *prev = current_buffer; | 1370 | struct buffer *prev = current_buffer; |
| 1371 | Lisp_Object buffer; | 1371 | Lisp_Object buffer; |
| 1372 | int specpdl_count = specpdl_ptr - specpdl; | 1372 | int specpdl_count = SPECPDL_INDEX (); |
| 1373 | int previous_menu_items_used = f->menu_bar_items_used; | 1373 | int previous_menu_items_used = f->menu_bar_items_used; |
| 1374 | Lisp_Object *previous_items | 1374 | Lisp_Object *previous_items |
| 1375 | = (Lisp_Object *) alloca (previous_menu_items_used | 1375 | = (Lisp_Object *) alloca (previous_menu_items_used |
diff --git a/src/minibuf.c b/src/minibuf.c index 3886d31bc22..00380392efe 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -409,7 +409,7 @@ read_minibuf (map, initial, prompt, backup_n, expflag, | |||
| 409 | int inherit_input_method; | 409 | int inherit_input_method; |
| 410 | { | 410 | { |
| 411 | Lisp_Object val; | 411 | Lisp_Object val; |
| 412 | int count = specpdl_ptr - specpdl; | 412 | int count = SPECPDL_INDEX (); |
| 413 | Lisp_Object mini_frame, ambient_dir, minibuffer, input_method; | 413 | Lisp_Object mini_frame, ambient_dir, minibuffer, input_method; |
| 414 | struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5; | 414 | struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5; |
| 415 | Lisp_Object enable_multibyte; | 415 | Lisp_Object enable_multibyte; |
| @@ -732,7 +732,7 @@ get_minibuffer (depth) | |||
| 732 | } | 732 | } |
| 733 | else | 733 | else |
| 734 | { | 734 | { |
| 735 | int count = specpdl_ptr - specpdl; | 735 | int count = SPECPDL_INDEX (); |
| 736 | 736 | ||
| 737 | reset_buffer (XBUFFER (buf)); | 737 | reset_buffer (XBUFFER (buf)); |
| 738 | record_unwind_protect (Fset_buffer, Fcurrent_buffer ()); | 738 | record_unwind_protect (Fset_buffer, Fcurrent_buffer ()); |
| @@ -793,7 +793,7 @@ read_minibuf_unwind (data) | |||
| 793 | 793 | ||
| 794 | /* Erase the minibuffer we were using at this level. */ | 794 | /* Erase the minibuffer we were using at this level. */ |
| 795 | { | 795 | { |
| 796 | int count = specpdl_ptr - specpdl; | 796 | int count = SPECPDL_INDEX (); |
| 797 | /* Prevent error in erase-buffer. */ | 797 | /* Prevent error in erase-buffer. */ |
| 798 | specbind (Qinhibit_read_only, Qt); | 798 | specbind (Qinhibit_read_only, Qt); |
| 799 | specbind (Qinhibit_modification_hooks, Qt); | 799 | specbind (Qinhibit_modification_hooks, Qt); |
| @@ -1528,7 +1528,7 @@ Completion ignores case if the ambient value of | |||
| 1528 | Lisp_Object val, histvar, histpos, position; | 1528 | Lisp_Object val, histvar, histpos, position; |
| 1529 | Lisp_Object init; | 1529 | Lisp_Object init; |
| 1530 | int pos = 0; | 1530 | int pos = 0; |
| 1531 | int count = specpdl_ptr - specpdl; | 1531 | int count = SPECPDL_INDEX (); |
| 1532 | struct gcpro gcpro1; | 1532 | struct gcpro gcpro1; |
| 1533 | 1533 | ||
| 1534 | init = initial_input; | 1534 | init = initial_input; |
diff --git a/src/print.c b/src/print.c index 98a4c745a88..90d55615bc7 100644 --- a/src/print.c +++ b/src/print.c | |||
| @@ -192,7 +192,7 @@ void print_interval (); | |||
| 192 | struct buffer *old = current_buffer; \ | 192 | struct buffer *old = current_buffer; \ |
| 193 | int old_point = -1, start_point = -1; \ | 193 | int old_point = -1, start_point = -1; \ |
| 194 | int old_point_byte = -1, start_point_byte = -1; \ | 194 | int old_point_byte = -1, start_point_byte = -1; \ |
| 195 | int specpdl_count = specpdl_ptr - specpdl; \ | 195 | int specpdl_count = SPECPDL_INDEX (); \ |
| 196 | int free_print_buffer = 0; \ | 196 | int free_print_buffer = 0; \ |
| 197 | int multibyte = !NILP (current_buffer->enable_multibyte_characters); \ | 197 | int multibyte = !NILP (current_buffer->enable_multibyte_characters); \ |
| 198 | Lisp_Object original | 198 | Lisp_Object original |
| @@ -580,7 +580,7 @@ void | |||
| 580 | temp_output_buffer_setup (bufname) | 580 | temp_output_buffer_setup (bufname) |
| 581 | char *bufname; | 581 | char *bufname; |
| 582 | { | 582 | { |
| 583 | int count = specpdl_ptr - specpdl; | 583 | int count = SPECPDL_INDEX (); |
| 584 | register struct buffer *old = current_buffer; | 584 | register struct buffer *old = current_buffer; |
| 585 | register Lisp_Object buf; | 585 | register Lisp_Object buf; |
| 586 | 586 | ||
| @@ -613,7 +613,7 @@ internal_with_output_to_temp_buffer (bufname, function, args) | |||
| 613 | Lisp_Object (*function) P_ ((Lisp_Object)); | 613 | Lisp_Object (*function) P_ ((Lisp_Object)); |
| 614 | Lisp_Object args; | 614 | Lisp_Object args; |
| 615 | { | 615 | { |
| 616 | int count = specpdl_ptr - specpdl; | 616 | int count = SPECPDL_INDEX (); |
| 617 | Lisp_Object buf, val; | 617 | Lisp_Object buf, val; |
| 618 | struct gcpro gcpro1; | 618 | struct gcpro gcpro1; |
| 619 | 619 | ||
| @@ -658,7 +658,7 @@ usage: (with-output-to-temp-buffer BUFFNAME BODY ...) */) | |||
| 658 | { | 658 | { |
| 659 | struct gcpro gcpro1; | 659 | struct gcpro gcpro1; |
| 660 | Lisp_Object name; | 660 | Lisp_Object name; |
| 661 | int count = specpdl_ptr - specpdl; | 661 | int count = SPECPDL_INDEX (); |
| 662 | Lisp_Object buf, val; | 662 | Lisp_Object buf, val; |
| 663 | 663 | ||
| 664 | GCPRO1(args); | 664 | GCPRO1(args); |
diff --git a/src/process.c b/src/process.c index c5cbf3b68eb..7c3b1779496 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -1292,7 +1292,7 @@ usage: (start-process NAME BUFFER PROGRAM &rest PROGRAM-ARGS) */) | |||
| 1292 | register unsigned char **new_argv; | 1292 | register unsigned char **new_argv; |
| 1293 | #endif | 1293 | #endif |
| 1294 | register int i; | 1294 | register int i; |
| 1295 | int count = specpdl_ptr - specpdl; | 1295 | int count = SPECPDL_INDEX (); |
| 1296 | 1296 | ||
| 1297 | buffer = args[1]; | 1297 | buffer = args[1]; |
| 1298 | if (!NILP (buffer)) | 1298 | if (!NILP (buffer)) |
| @@ -2552,7 +2552,7 @@ usage: (make-network-process &rest ARGS) */) | |||
| 2552 | int s = -1, outch, inch; | 2552 | int s = -1, outch, inch; |
| 2553 | struct gcpro gcpro1; | 2553 | struct gcpro gcpro1; |
| 2554 | int retry = 0; | 2554 | int retry = 0; |
| 2555 | int count = specpdl_ptr - specpdl; | 2555 | int count = SPECPDL_INDEX (); |
| 2556 | int count1; | 2556 | int count1; |
| 2557 | Lisp_Object QCaddress; /* one of QClocal or QCremote */ | 2557 | Lisp_Object QCaddress; /* one of QClocal or QCremote */ |
| 2558 | Lisp_Object tem; | 2558 | Lisp_Object tem; |
| @@ -2843,7 +2843,7 @@ usage: (make-network-process &rest ARGS) */) | |||
| 2843 | } | 2843 | } |
| 2844 | 2844 | ||
| 2845 | /* Do this in case we never enter the for-loop below. */ | 2845 | /* Do this in case we never enter the for-loop below. */ |
| 2846 | count1 = specpdl_ptr - specpdl; | 2846 | count1 = SPECPDL_INDEX (); |
| 2847 | s = -1; | 2847 | s = -1; |
| 2848 | 2848 | ||
| 2849 | for (lres = res; lres; lres = lres->ai_next) | 2849 | for (lres = res; lres; lres = lres->ai_next) |
| @@ -4348,7 +4348,7 @@ read_process_output (proc, channel) | |||
| 4348 | /* We inhibit quit here instead of just catching it so that | 4348 | /* We inhibit quit here instead of just catching it so that |
| 4349 | hitting ^G when a filter happens to be running won't screw | 4349 | hitting ^G when a filter happens to be running won't screw |
| 4350 | it up. */ | 4350 | it up. */ |
| 4351 | int count = specpdl_ptr - specpdl; | 4351 | int count = SPECPDL_INDEX (); |
| 4352 | Lisp_Object odeactivate; | 4352 | Lisp_Object odeactivate; |
| 4353 | Lisp_Object obuffer, okeymap; | 4353 | Lisp_Object obuffer, okeymap; |
| 4354 | Lisp_Object text; | 4354 | Lisp_Object text; |
| @@ -5734,7 +5734,7 @@ exec_sentinel (proc, reason) | |||
| 5734 | { | 5734 | { |
| 5735 | Lisp_Object sentinel, obuffer, odeactivate, okeymap; | 5735 | Lisp_Object sentinel, obuffer, odeactivate, okeymap; |
| 5736 | register struct Lisp_Process *p = XPROCESS (proc); | 5736 | register struct Lisp_Process *p = XPROCESS (proc); |
| 5737 | int count = specpdl_ptr - specpdl; | 5737 | int count = SPECPDL_INDEX (); |
| 5738 | int outer_running_asynch_code = running_asynch_code; | 5738 | int outer_running_asynch_code = running_asynch_code; |
| 5739 | int waiting = waiting_for_user_input_p; | 5739 | int waiting = waiting_for_user_input_p; |
| 5740 | 5740 | ||
diff --git a/src/sound.c b/src/sound.c index 4504e7e6ee1..90fe5f524c7 100644 --- a/src/sound.c +++ b/src/sound.c | |||
| @@ -402,7 +402,7 @@ Internal use only, use `play-sound' instead. */) | |||
| 402 | struct sound_device sd; | 402 | struct sound_device sd; |
| 403 | struct sound s; | 403 | struct sound s; |
| 404 | Lisp_Object args[2]; | 404 | Lisp_Object args[2]; |
| 405 | int count = specpdl_ptr - specpdl; | 405 | int count = SPECPDL_INDEX (); |
| 406 | 406 | ||
| 407 | file = Qnil; | 407 | file = Qnil; |
| 408 | GCPRO2 (sound, file); | 408 | GCPRO2 (sound, file); |
diff --git a/src/textprop.c b/src/textprop.c index f6b7dab421e..3e742476a12 100644 --- a/src/textprop.c +++ b/src/textprop.c | |||
| @@ -784,7 +784,7 @@ past position LIMIT; return LIMIT if nothing is found before LIMIT. */) | |||
| 784 | else | 784 | else |
| 785 | { | 785 | { |
| 786 | Lisp_Object initial_value, value; | 786 | Lisp_Object initial_value, value; |
| 787 | int count = specpdl_ptr - specpdl; | 787 | int count = SPECPDL_INDEX (); |
| 788 | 788 | ||
| 789 | if (! NILP (object)) | 789 | if (! NILP (object)) |
| 790 | CHECK_BUFFER (object); | 790 | CHECK_BUFFER (object); |
| @@ -849,7 +849,7 @@ back past position LIMIT; return LIMIT if nothing is found before LIMIT. */) | |||
| 849 | } | 849 | } |
| 850 | else | 850 | else |
| 851 | { | 851 | { |
| 852 | int count = specpdl_ptr - specpdl; | 852 | int count = SPECPDL_INDEX (); |
| 853 | 853 | ||
| 854 | if (! NILP (object)) | 854 | if (! NILP (object)) |
| 855 | CHECK_BUFFER (object); | 855 | CHECK_BUFFER (object); |
diff --git a/src/w32fns.c b/src/w32fns.c index fc3d67fef07..88d30931d51 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -14301,7 +14301,7 @@ specified. Ensure that file exists if MUSTMATCH is non-nil. */) | |||
| 14301 | { | 14301 | { |
| 14302 | struct frame *f = SELECTED_FRAME (); | 14302 | struct frame *f = SELECTED_FRAME (); |
| 14303 | Lisp_Object file = Qnil; | 14303 | Lisp_Object file = Qnil; |
| 14304 | int count = specpdl_ptr - specpdl; | 14304 | int count = SPECPDL_INDEX (); |
| 14305 | struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5; | 14305 | struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5; |
| 14306 | char filename[MAX_PATH + 1]; | 14306 | char filename[MAX_PATH + 1]; |
| 14307 | char init_dir[MAX_PATH + 1]; | 14307 | char init_dir[MAX_PATH + 1]; |
diff --git a/src/w32menu.c b/src/w32menu.c index 4f07c534425..c27ad031103 100644 --- a/src/w32menu.c +++ b/src/w32menu.c | |||
| @@ -1347,7 +1347,7 @@ set_frame_menubar (f, first_time, deep_p) | |||
| 1347 | 1347 | ||
| 1348 | struct buffer *prev = current_buffer; | 1348 | struct buffer *prev = current_buffer; |
| 1349 | Lisp_Object buffer; | 1349 | Lisp_Object buffer; |
| 1350 | int specpdl_count = specpdl_ptr - specpdl; | 1350 | int specpdl_count = SPECPDL_INDEX (); |
| 1351 | int previous_menu_items_used = f->menu_bar_items_used; | 1351 | int previous_menu_items_used = f->menu_bar_items_used; |
| 1352 | Lisp_Object *previous_items | 1352 | Lisp_Object *previous_items |
| 1353 | = (Lisp_Object *) alloca (previous_menu_items_used | 1353 | = (Lisp_Object *) alloca (previous_menu_items_used |
diff --git a/src/window.c b/src/window.c index 7bfa8e3290a..0bacf5fd549 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -2664,7 +2664,7 @@ set_window_buffer (window, buffer, run_hooks_p) | |||
| 2664 | { | 2664 | { |
| 2665 | struct window *w = XWINDOW (window); | 2665 | struct window *w = XWINDOW (window); |
| 2666 | struct buffer *b = XBUFFER (buffer); | 2666 | struct buffer *b = XBUFFER (buffer); |
| 2667 | int count = specpdl_ptr - specpdl; | 2667 | int count = SPECPDL_INDEX (); |
| 2668 | 2668 | ||
| 2669 | w->buffer = buffer; | 2669 | w->buffer = buffer; |
| 2670 | 2670 | ||
| @@ -3174,7 +3174,7 @@ temp_output_buffer_show (buf) | |||
| 3174 | tem = Fsymbol_value (Qtemp_buffer_show_hook); | 3174 | tem = Fsymbol_value (Qtemp_buffer_show_hook); |
| 3175 | if (!NILP (tem)) | 3175 | if (!NILP (tem)) |
| 3176 | { | 3176 | { |
| 3177 | int count = specpdl_ptr - specpdl; | 3177 | int count = SPECPDL_INDEX (); |
| 3178 | Lisp_Object prev_window; | 3178 | Lisp_Object prev_window; |
| 3179 | prev_window = selected_window; | 3179 | prev_window = selected_window; |
| 3180 | 3180 | ||
| @@ -5462,7 +5462,7 @@ usage: (save-window-excursion BODY ...) */) | |||
| 5462 | Lisp_Object args; | 5462 | Lisp_Object args; |
| 5463 | { | 5463 | { |
| 5464 | register Lisp_Object val; | 5464 | register Lisp_Object val; |
| 5465 | register int count = specpdl_ptr - specpdl; | 5465 | register int count = SPECPDL_INDEX (); |
| 5466 | 5466 | ||
| 5467 | record_unwind_protect (Fset_window_configuration, | 5467 | record_unwind_protect (Fset_window_configuration, |
| 5468 | Fcurrent_window_configuration (Qnil)); | 5468 | Fcurrent_window_configuration (Qnil)); |
diff --git a/src/xfaces.c b/src/xfaces.c index 2f6a4497590..085a0929751 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -2844,7 +2844,7 @@ are fixed-pitch. */) | |||
| 2844 | struct font_name *fonts; | 2844 | struct font_name *fonts; |
| 2845 | Lisp_Object result; | 2845 | Lisp_Object result; |
| 2846 | struct gcpro gcpro1; | 2846 | struct gcpro gcpro1; |
| 2847 | int count = specpdl_ptr - specpdl; | 2847 | int count = SPECPDL_INDEX (); |
| 2848 | int limit; | 2848 | int limit; |
| 2849 | 2849 | ||
| 2850 | /* Let's consider all fonts. Increase the limit for matching | 2850 | /* Let's consider all fonts. Increase the limit for matching |
diff --git a/src/xmenu.c b/src/xmenu.c index 1c5949ebb5d..35ddfe9258a 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -1654,7 +1654,7 @@ set_frame_menubar (f, first_time, deep_p) | |||
| 1654 | 1654 | ||
| 1655 | struct buffer *prev = current_buffer; | 1655 | struct buffer *prev = current_buffer; |
| 1656 | Lisp_Object buffer; | 1656 | Lisp_Object buffer; |
| 1657 | int specpdl_count = specpdl_ptr - specpdl; | 1657 | int specpdl_count = SPECPDL_INDEX (); |
| 1658 | int previous_menu_items_used = f->menu_bar_items_used; | 1658 | int previous_menu_items_used = f->menu_bar_items_used; |
| 1659 | Lisp_Object *previous_items | 1659 | Lisp_Object *previous_items |
| 1660 | = (Lisp_Object *) alloca (previous_menu_items_used | 1660 | = (Lisp_Object *) alloca (previous_menu_items_used |
diff --git a/src/xselect.c b/src/xselect.c index 2da3eddfc91..1d5fe0b8ea2 100644 --- a/src/xselect.c +++ b/src/xselect.c | |||
| @@ -414,7 +414,7 @@ x_get_local_selection (selection_symbol, target_type) | |||
| 414 | /* Don't allow a quit within the converter. | 414 | /* Don't allow a quit within the converter. |
| 415 | When the user types C-g, he would be surprised | 415 | When the user types C-g, he would be surprised |
| 416 | if by luck it came during a converter. */ | 416 | if by luck it came during a converter. */ |
| 417 | count = specpdl_ptr - specpdl; | 417 | count = SPECPDL_INDEX (); |
| 418 | specbind (Qinhibit_quit, Qt); | 418 | specbind (Qinhibit_quit, Qt); |
| 419 | 419 | ||
| 420 | CHECK_SYMBOL (target_type); | 420 | CHECK_SYMBOL (target_type); |
| @@ -1074,7 +1074,7 @@ wait_for_property_change (location) | |||
| 1074 | struct prop_location *location; | 1074 | struct prop_location *location; |
| 1075 | { | 1075 | { |
| 1076 | int secs, usecs; | 1076 | int secs, usecs; |
| 1077 | int count = specpdl_ptr - specpdl; | 1077 | int count = SPECPDL_INDEX (); |
| 1078 | Lisp_Object tem; | 1078 | Lisp_Object tem; |
| 1079 | 1079 | ||
| 1080 | tem = Fcons (Qnil, Qnil); | 1080 | tem = Fcons (Qnil, Qnil); |
diff --git a/src/xterm.c b/src/xterm.c index 1a3b52473a2..0067643c89f 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -12123,7 +12123,7 @@ int | |||
| 12123 | x_catch_errors (dpy) | 12123 | x_catch_errors (dpy) |
| 12124 | Display *dpy; | 12124 | Display *dpy; |
| 12125 | { | 12125 | { |
| 12126 | int count = specpdl_ptr - specpdl; | 12126 | int count = SPECPDL_INDEX (); |
| 12127 | 12127 | ||
| 12128 | /* Make sure any errors from previous requests have been dealt with. */ | 12128 | /* Make sure any errors from previous requests have been dealt with. */ |
| 12129 | XSync (dpy, False); | 12129 | XSync (dpy, False); |