Mercurial > hg > xemacs-beta
comparison src/event-stream.c @ 5581:56144c8593a8
Mechanically change INT to FIXNUM in our sources.
src/ChangeLog addition:
2011-10-09 Aidan Kehoe <kehoea@parhasard.net>
[...]
Mechanically change INT (where it refers to non-bignum Lisp
integers) to FIXNUM in our sources. Done for the following
functions, enums, and macros: Lisp_Type_Int_Even,
Lisp_Type_Int_Odd, INT_GCBITS, INT_VALBITS, make_int(), INTP(),
XINT(), CHECK_INT(), XREALINT(), INT_PLUS(), INT_MINUS(),
EMACS_INT_MAX (to MOST_POSITIVE_FIXNUM), EMACS_INT_MIN (to
MOST_NEGATIVE_FIXNUM), NUMBER_FITS_IN_AN_EMACS_INT() to
NUMBER_FITS_IN_A_FIXNUM(), XFLOATINT, XCHAR_OR_INT, INT_OR_FLOAT.
The EMACS_INT typedef was not changed, it does not describe
non-bignum Lisp integers.
Script that did the change available in
http://mid.gmane.org/20067.17650.181273.12014@parhasard.net .
modules/ChangeLog addition:
2011-10-09 Aidan Kehoe <kehoea@parhasard.net>
[...]
Mechanically change INT to FIXNUM, where the usage describes non-bignum
Lisp integers. See the src/ChangeLog entry for more details.
man/ChangeLog addition:
2011-10-09 Aidan Kehoe <kehoea@parhasard.net>
* internals/internals.texi (How Lisp Objects Are Represented in C):
* internals/internals.texi (Integers and Characters):
Mechanically change INT to FIXNUM, where the usage describes non-bignum
Lisp integers.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Sun, 09 Oct 2011 09:51:57 +0100 |
parents | 4dee0387b9de |
children | 7371081ce8f7 |
comparison
equal
deleted
inserted
replaced
5580:a0e81357194e | 5581:56144c8593a8 |
---|---|
713 | 713 |
714 /* Message turns off echoing unless more keystrokes turn it on again. */ | 714 /* Message turns off echoing unless more keystrokes turn it on again. */ |
715 if (echo_area_active (f) && !EQ (Qcommand, echo_area_status (f))) | 715 if (echo_area_active (f) && !EQ (Qcommand, echo_area_status (f))) |
716 goto done; | 716 goto done; |
717 | 717 |
718 if (INTP (Vecho_keystrokes) || FLOATP (Vecho_keystrokes)) | 718 if (FIXNUMP (Vecho_keystrokes) || FLOATP (Vecho_keystrokes)) |
719 echo_keystrokes = extract_float (Vecho_keystrokes); | 719 echo_keystrokes = extract_float (Vecho_keystrokes); |
720 else | 720 else |
721 echo_keystrokes = 0; | 721 echo_keystrokes = 0; |
722 | 722 |
723 if (minibuf_level == 0 | 723 if (minibuf_level == 0 |
1234 /**** Lisp-level timeout functions. ****/ | 1234 /**** Lisp-level timeout functions. ****/ |
1235 | 1235 |
1236 static unsigned long | 1236 static unsigned long |
1237 lisp_number_to_milliseconds (Lisp_Object secs, int allow_0) | 1237 lisp_number_to_milliseconds (Lisp_Object secs, int allow_0) |
1238 { | 1238 { |
1239 Lisp_Object args[] = { allow_0 ? Qzero : make_int (1), | 1239 Lisp_Object args[] = { allow_0 ? Qzero : make_fixnum (1), |
1240 secs, | 1240 secs, |
1241 /* (((unsigned int) 0xFFFFFFFF) / 1000) - 1 */ | 1241 /* (((unsigned int) 0xFFFFFFFF) / 1000) - 1 */ |
1242 make_int (4294967 - 1) }; | 1242 make_fixnum (4294967 - 1) }; |
1243 | 1243 |
1244 if (!allow_0 && FLOATP (secs) && XFLOAT_DATA (secs) > 0) | 1244 if (!allow_0 && FLOATP (secs) && XFLOAT_DATA (secs) > 0) |
1245 { | 1245 { |
1246 args[0] = secs; | 1246 args[0] = secs; |
1247 } | 1247 } |
1249 if (NILP (Fleq (countof (args), args))) | 1249 if (NILP (Fleq (countof (args), args))) |
1250 { | 1250 { |
1251 args_out_of_range_3 (secs, args[0], args[2]); | 1251 args_out_of_range_3 (secs, args[0], args[2]); |
1252 } | 1252 } |
1253 | 1253 |
1254 args[0] = make_int (1000); | 1254 args[0] = make_fixnum (1000); |
1255 args[0] = Ftimes (2, args); | 1255 args[0] = Ftimes (2, args); |
1256 | 1256 |
1257 if (INTP (args[0])) | 1257 if (FIXNUMP (args[0])) |
1258 { | 1258 { |
1259 return XINT (args[0]); | 1259 return XFIXNUM (args[0]); |
1260 } | 1260 } |
1261 | 1261 |
1262 return (unsigned long) extract_float (args[0]); | 1262 return (unsigned long) extract_float (args[0]); |
1263 } | 1263 } |
1264 | 1264 |
1302 unsigned long msecs2 = (NILP (resignal) ? 0 : | 1302 unsigned long msecs2 = (NILP (resignal) ? 0 : |
1303 lisp_number_to_milliseconds (resignal, 0)); | 1303 lisp_number_to_milliseconds (resignal, 0)); |
1304 int id; | 1304 int id; |
1305 Lisp_Object lid; | 1305 Lisp_Object lid; |
1306 id = event_stream_generate_wakeup (msecs, msecs2, function, object, 0); | 1306 id = event_stream_generate_wakeup (msecs, msecs2, function, object, 0); |
1307 lid = make_int (id); | 1307 lid = make_fixnum (id); |
1308 assert (id == XINT (lid)); | 1308 assert (id == XFIXNUM (lid)); |
1309 return lid; | 1309 return lid; |
1310 } | 1310 } |
1311 | 1311 |
1312 DEFUN ("disable-timeout", Fdisable_timeout, 1, 1, 0, /* | 1312 DEFUN ("disable-timeout", Fdisable_timeout, 1, 1, 0, /* |
1313 Disable a timeout from signalling any more. | 1313 Disable a timeout from signalling any more. |
1318 It will not work to call this function on an id number returned by | 1318 It will not work to call this function on an id number returned by |
1319 `add-async-timeout'. Use `disable-async-timeout' for that. | 1319 `add-async-timeout'. Use `disable-async-timeout' for that. |
1320 */ | 1320 */ |
1321 (id)) | 1321 (id)) |
1322 { | 1322 { |
1323 CHECK_INT (id); | 1323 CHECK_FIXNUM (id); |
1324 event_stream_disable_wakeup (XINT (id), 0); | 1324 event_stream_disable_wakeup (XFIXNUM (id), 0); |
1325 return Qnil; | 1325 return Qnil; |
1326 } | 1326 } |
1327 | 1327 |
1328 DEFUN ("add-async-timeout", Fadd_async_timeout, 3, 4, 0, /* | 1328 DEFUN ("add-async-timeout", Fadd_async_timeout, 3, 4, 0, /* |
1329 Add an asynchronous timeout, to be signaled after an interval has elapsed. | 1329 Add an asynchronous timeout, to be signaled after an interval has elapsed. |
1381 unsigned long msecs2 = (NILP (resignal) ? 0 : | 1381 unsigned long msecs2 = (NILP (resignal) ? 0 : |
1382 lisp_number_to_milliseconds (resignal, 0)); | 1382 lisp_number_to_milliseconds (resignal, 0)); |
1383 int id; | 1383 int id; |
1384 Lisp_Object lid; | 1384 Lisp_Object lid; |
1385 id = event_stream_generate_wakeup (msecs, msecs2, function, object, 1); | 1385 id = event_stream_generate_wakeup (msecs, msecs2, function, object, 1); |
1386 lid = make_int (id); | 1386 lid = make_fixnum (id); |
1387 assert (id == XINT (lid)); | 1387 assert (id == XFIXNUM (lid)); |
1388 return lid; | 1388 return lid; |
1389 } | 1389 } |
1390 | 1390 |
1391 DEFUN ("disable-async-timeout", Fdisable_async_timeout, 1, 1, 0, /* | 1391 DEFUN ("disable-async-timeout", Fdisable_async_timeout, 1, 1, 0, /* |
1392 Disable an asynchronous timeout from signalling any more. | 1392 Disable an asynchronous timeout from signalling any more. |
1397 It will not work to call this function on an id number returned by | 1397 It will not work to call this function on an id number returned by |
1398 `add-timeout'. Use `disable-timeout' for that. | 1398 `add-timeout'. Use `disable-timeout' for that. |
1399 */ | 1399 */ |
1400 (id)) | 1400 (id)) |
1401 { | 1401 { |
1402 CHECK_INT (id); | 1402 CHECK_FIXNUM (id); |
1403 event_stream_disable_wakeup (XINT (id), 1); | 1403 event_stream_disable_wakeup (XFIXNUM (id), 1); |
1404 return Qnil; | 1404 return Qnil; |
1405 } | 1405 } |
1406 | 1406 |
1407 | 1407 |
1408 /**********************************************************************/ | 1408 /**********************************************************************/ |
1796 Lisp_Object event; | 1796 Lisp_Object event; |
1797 | 1797 |
1798 if (!NILP (Vunread_command_event)) | 1798 if (!NILP (Vunread_command_event)) |
1799 how_many--; | 1799 how_many--; |
1800 | 1800 |
1801 how_many -= XINT (Fsafe_length (Vunread_command_events)); | 1801 how_many -= XFIXNUM (Fsafe_length (Vunread_command_events)); |
1802 | 1802 |
1803 if (how_many <= 0) | 1803 if (how_many <= 0) |
1804 return 1; | 1804 return 1; |
1805 | 1805 |
1806 EVENT_CHAIN_LOOP (event, command_event_queue) | 1806 EVENT_CHAIN_LOOP (event, command_event_queue) |
2346 { | 2346 { |
2347 EMACS_TIME t; | 2347 EMACS_TIME t; |
2348 EMACS_GET_TIME (t); | 2348 EMACS_GET_TIME (t); |
2349 if (!CONSP (Vlast_input_time)) | 2349 if (!CONSP (Vlast_input_time)) |
2350 Vlast_input_time = Fcons (Qnil, Qnil); | 2350 Vlast_input_time = Fcons (Qnil, Qnil); |
2351 XCAR (Vlast_input_time) = make_int ((EMACS_SECS (t) >> 16) & 0xffff); | 2351 XCAR (Vlast_input_time) = make_fixnum ((EMACS_SECS (t) >> 16) & 0xffff); |
2352 XCDR (Vlast_input_time) = make_int ((EMACS_SECS (t) >> 0) & 0xffff); | 2352 XCDR (Vlast_input_time) = make_fixnum ((EMACS_SECS (t) >> 0) & 0xffff); |
2353 if (!CONSP (Vlast_command_event_time)) | 2353 if (!CONSP (Vlast_command_event_time)) |
2354 Vlast_command_event_time = list3 (Qnil, Qnil, Qnil); | 2354 Vlast_command_event_time = list3 (Qnil, Qnil, Qnil); |
2355 XCAR (Vlast_command_event_time) = | 2355 XCAR (Vlast_command_event_time) = |
2356 make_int ((EMACS_SECS (t) >> 16) & 0xffff); | 2356 make_fixnum ((EMACS_SECS (t) >> 16) & 0xffff); |
2357 XCAR (XCDR (Vlast_command_event_time)) = | 2357 XCAR (XCDR (Vlast_command_event_time)) = |
2358 make_int ((EMACS_SECS (t) >> 0) & 0xffff); | 2358 make_fixnum ((EMACS_SECS (t) >> 0) & 0xffff); |
2359 XCAR (XCDR (XCDR (Vlast_command_event_time))) | 2359 XCAR (XCDR (XCDR (Vlast_command_event_time))) |
2360 = make_int (EMACS_USECS (t)); | 2360 = make_fixnum (EMACS_USECS (t)); |
2361 } | 2361 } |
2362 /* If this key came from the keyboard or from a keyboard macro, then | 2362 /* If this key came from the keyboard or from a keyboard macro, then |
2363 it goes into the recent-keys and this-command-keys vectors. | 2363 it goes into the recent-keys and this-command-keys vectors. |
2364 If this key came from the keyboard, and we're defining a keyboard | 2364 If this key came from the keyboard, and we're defining a keyboard |
2365 macro, then it goes into the macro. | 2365 macro, then it goes into the macro. |
2624 if (!NILP (timeout_secs)) | 2624 if (!NILP (timeout_secs)) |
2625 msecs = lisp_number_to_milliseconds (timeout_secs, 1); | 2625 msecs = lisp_number_to_milliseconds (timeout_secs, 1); |
2626 if (!NILP (timeout_msecs)) | 2626 if (!NILP (timeout_msecs)) |
2627 { | 2627 { |
2628 check_integer_range (timeout_msecs, Qzero, | 2628 check_integer_range (timeout_msecs, Qzero, |
2629 make_integer (EMACS_INT_MAX)); | 2629 make_integer (MOST_POSITIVE_FIXNUM)); |
2630 msecs += XINT (timeout_msecs); | 2630 msecs += XFIXNUM (timeout_msecs); |
2631 } | 2631 } |
2632 if (msecs) | 2632 if (msecs) |
2633 { | 2633 { |
2634 timeout_id = event_stream_generate_wakeup (msecs, 0, Qnil, Qnil, 0); | 2634 timeout_id = event_stream_generate_wakeup (msecs, 0, Qnil, Qnil, 0); |
2635 timeout_enabled = 1; | 2635 timeout_enabled = 1; |
2638 | 2638 |
2639 event = Fmake_event (Qnil, Qnil); | 2639 event = Fmake_event (Qnil, Qnil); |
2640 | 2640 |
2641 count = specpdl_depth (); | 2641 count = specpdl_depth (); |
2642 record_unwind_protect (sit_for_unwind, | 2642 record_unwind_protect (sit_for_unwind, |
2643 timeout_enabled ? make_int (timeout_id) : Qnil); | 2643 timeout_enabled ? make_fixnum (timeout_id) : Qnil); |
2644 recursive_sit_for = 1; | 2644 recursive_sit_for = 1; |
2645 | 2645 |
2646 while (!done && | 2646 while (!done && |
2647 ((NILP (process) && timeout_enabled) || | 2647 ((NILP (process) && timeout_enabled) || |
2648 (NILP (process) && event_stream_event_pending_p (0)) || | 2648 (NILP (process) && event_stream_event_pending_p (0)) || |
2702 break; | 2702 break; |
2703 } | 2703 } |
2704 } | 2704 } |
2705 } | 2705 } |
2706 | 2706 |
2707 unbind_to_1 (count, timeout_enabled ? make_int (timeout_id) : Qnil); | 2707 unbind_to_1 (count, timeout_enabled ? make_fixnum (timeout_id) : Qnil); |
2708 | 2708 |
2709 Fdeallocate_event (event); | 2709 Fdeallocate_event (event); |
2710 | 2710 |
2711 status_notify (); | 2711 status_notify (); |
2712 | 2712 |
2735 | 2735 |
2736 id = event_stream_generate_wakeup (msecs, 0, Qnil, Qnil, 0); | 2736 id = event_stream_generate_wakeup (msecs, 0, Qnil, Qnil, 0); |
2737 event = Fmake_event (Qnil, Qnil); | 2737 event = Fmake_event (Qnil, Qnil); |
2738 | 2738 |
2739 count = specpdl_depth (); | 2739 count = specpdl_depth (); |
2740 record_unwind_protect (sit_for_unwind, make_int (id)); | 2740 record_unwind_protect (sit_for_unwind, make_fixnum (id)); |
2741 recursive_sit_for = 1; | 2741 recursive_sit_for = 1; |
2742 | 2742 |
2743 while (1) | 2743 while (1) |
2744 { | 2744 { |
2745 /* If our timeout has arrived, we move along. */ | 2745 /* If our timeout has arrived, we move along. */ |
2769 break; | 2769 break; |
2770 } | 2770 } |
2771 } | 2771 } |
2772 } | 2772 } |
2773 DONE_LABEL: | 2773 DONE_LABEL: |
2774 unbind_to_1 (count, make_int (id)); | 2774 unbind_to_1 (count, make_fixnum (id)); |
2775 Fdeallocate_event (event); | 2775 Fdeallocate_event (event); |
2776 UNGCPRO; | 2776 UNGCPRO; |
2777 return Qnil; | 2777 return Qnil; |
2778 } | 2778 } |
2779 | 2779 |
2841 the E-Lisp universe. */ | 2841 the E-Lisp universe. */ |
2842 | 2842 |
2843 id = event_stream_generate_wakeup (msecs, 0, Qnil, Qnil, 0); | 2843 id = event_stream_generate_wakeup (msecs, 0, Qnil, Qnil, 0); |
2844 | 2844 |
2845 count = specpdl_depth (); | 2845 count = specpdl_depth (); |
2846 record_unwind_protect (sit_for_unwind, make_int (id)); | 2846 record_unwind_protect (sit_for_unwind, make_fixnum (id)); |
2847 recursive_sit_for = 1; | 2847 recursive_sit_for = 1; |
2848 | 2848 |
2849 while (1) | 2849 while (1) |
2850 { | 2850 { |
2851 /* If there is no user input pending, then redisplay. | 2851 /* If there is no user input pending, then redisplay. |
2890 } | 2890 } |
2891 } | 2891 } |
2892 } | 2892 } |
2893 | 2893 |
2894 DONE_LABEL: | 2894 DONE_LABEL: |
2895 unbind_to_1 (count, make_int (id)); | 2895 unbind_to_1 (count, make_fixnum (id)); |
2896 | 2896 |
2897 /* Put back the event (if any) that made Fsit_for() exit before the | 2897 /* Put back the event (if any) that made Fsit_for() exit before the |
2898 timeout. Note that it is being added to the back of the queue, which | 2898 timeout. Note that it is being added to the back of the queue, which |
2899 would be inappropriate if there were any user events on the queue | 2899 would be inappropriate if there were any user events on the queue |
2900 already: we would be misordering them. But we know that there are | 2900 already: we would be misordering them. But we know that there are |
3715 nwanted = recent_keys_ring_size; | 3715 nwanted = recent_keys_ring_size; |
3716 else | 3716 else |
3717 { | 3717 { |
3718 check_integer_range (number, Qzero, | 3718 check_integer_range (number, Qzero, |
3719 make_integer (ARRAY_DIMENSION_LIMIT)); | 3719 make_integer (ARRAY_DIMENSION_LIMIT)); |
3720 nwanted = XINT (number); | 3720 nwanted = XFIXNUM (number); |
3721 } | 3721 } |
3722 | 3722 |
3723 /* Create the keys ring vector, if none present. */ | 3723 /* Create the keys ring vector, if none present. */ |
3724 if (NILP (Vrecent_keys_ring)) | 3724 if (NILP (Vrecent_keys_ring)) |
3725 { | 3725 { |
3769 DEFUN ("recent-keys-ring-size", Frecent_keys_ring_size, 0, 0, 0, /* | 3769 DEFUN ("recent-keys-ring-size", Frecent_keys_ring_size, 0, 0, 0, /* |
3770 The maximum number of events `recent-keys' can return. | 3770 The maximum number of events `recent-keys' can return. |
3771 */ | 3771 */ |
3772 ()) | 3772 ()) |
3773 { | 3773 { |
3774 return make_int (recent_keys_ring_size); | 3774 return make_fixnum (recent_keys_ring_size); |
3775 } | 3775 } |
3776 | 3776 |
3777 DEFUN ("set-recent-keys-ring-size", Fset_recent_keys_ring_size, 1, 1, 0, /* | 3777 DEFUN ("set-recent-keys-ring-size", Fset_recent_keys_ring_size, 1, 1, 0, /* |
3778 Set the maximum number of events to be stored internally. | 3778 Set the maximum number of events to be stored internally. |
3779 */ | 3779 */ |
3781 { | 3781 { |
3782 Lisp_Object new_vector = Qnil; | 3782 Lisp_Object new_vector = Qnil; |
3783 int i, j, nkeys, start, min; | 3783 int i, j, nkeys, start, min; |
3784 struct gcpro gcpro1; | 3784 struct gcpro gcpro1; |
3785 | 3785 |
3786 CHECK_INT (size); | 3786 CHECK_FIXNUM (size); |
3787 if (XINT (size) <= 0) | 3787 if (XFIXNUM (size) <= 0) |
3788 invalid_argument ("Recent keys ring size must be positive", size); | 3788 invalid_argument ("Recent keys ring size must be positive", size); |
3789 if (XINT (size) == recent_keys_ring_size) | 3789 if (XFIXNUM (size) == recent_keys_ring_size) |
3790 return size; | 3790 return size; |
3791 | 3791 |
3792 GCPRO1 (new_vector); | 3792 GCPRO1 (new_vector); |
3793 new_vector = make_vector (XINT (size), Qnil); | 3793 new_vector = make_vector (XFIXNUM (size), Qnil); |
3794 | 3794 |
3795 if (NILP (Vrecent_keys_ring)) | 3795 if (NILP (Vrecent_keys_ring)) |
3796 { | 3796 { |
3797 Vrecent_keys_ring = new_vector; | 3797 Vrecent_keys_ring = new_vector; |
3798 RETURN_UNGCPRO (size); | 3798 RETURN_UNGCPRO (size); |
3808 { | 3808 { |
3809 nkeys = recent_keys_ring_size; | 3809 nkeys = recent_keys_ring_size; |
3810 start = ((recent_keys_ring_index == nkeys) ? 0 : recent_keys_ring_index); | 3810 start = ((recent_keys_ring_index == nkeys) ? 0 : recent_keys_ring_index); |
3811 } | 3811 } |
3812 | 3812 |
3813 if (XINT (size) > nkeys) | 3813 if (XFIXNUM (size) > nkeys) |
3814 min = nkeys; | 3814 min = nkeys; |
3815 else | 3815 else |
3816 min = XINT (size); | 3816 min = XFIXNUM (size); |
3817 | 3817 |
3818 for (i = 0, j = start; i < min; i++) | 3818 for (i = 0, j = start; i < min; i++) |
3819 { | 3819 { |
3820 XVECTOR_DATA (new_vector)[i] = XVECTOR_DATA (Vrecent_keys_ring)[j]; | 3820 XVECTOR_DATA (new_vector)[i] = XVECTOR_DATA (Vrecent_keys_ring)[j]; |
3821 if (++j >= recent_keys_ring_size) | 3821 if (++j >= recent_keys_ring_size) |
3822 j = 0; | 3822 j = 0; |
3823 } | 3823 } |
3824 recent_keys_ring_size = XINT (size); | 3824 recent_keys_ring_size = XFIXNUM (size); |
3825 recent_keys_ring_index = (i < recent_keys_ring_size) ? i : 0; | 3825 recent_keys_ring_index = (i < recent_keys_ring_size) ? i : 0; |
3826 | 3826 |
3827 Vrecent_keys_ring = new_vector; | 3827 Vrecent_keys_ring = new_vector; |
3828 | 3828 |
3829 UNGCPRO; | 3829 UNGCPRO; |
4568 { | 4568 { |
4569 Lisp_Object prop = Fget (leaf, Qself_insert_defer_undo, Qnil); | 4569 Lisp_Object prop = Fget (leaf, Qself_insert_defer_undo, Qnil); |
4570 if (NATNUMP (prop)) | 4570 if (NATNUMP (prop)) |
4571 { | 4571 { |
4572 magic_undo = 1; | 4572 magic_undo = 1; |
4573 if (INTP (prop)) | 4573 if (FIXNUMP (prop)) |
4574 { | 4574 { |
4575 magic_undo_count = XINT (prop); | 4575 magic_undo_count = XFIXNUM (prop); |
4576 } | 4576 } |
4577 #ifdef HAVE_BIGNUM | 4577 #ifdef HAVE_BIGNUM |
4578 else if (BIGNUMP (prop) | 4578 else if (BIGNUMP (prop) |
4579 && bignum_fits_emacs_int_p (XBIGNUM_DATA (prop))) | 4579 && bignum_fits_emacs_int_p (XBIGNUM_DATA (prop))) |
4580 { | 4580 { |
4871 int tiempo = event_stream_current_event_timestamp (c); | 4871 int tiempo = event_stream_current_event_timestamp (c); |
4872 | 4872 |
4873 /* This junk is so that timestamps don't get to be negative, but contain | 4873 /* This junk is so that timestamps don't get to be negative, but contain |
4874 as many bits as this particular emacs will allow. | 4874 as many bits as this particular emacs will allow. |
4875 */ | 4875 */ |
4876 return make_int (EMACS_INT_MAX & tiempo); | 4876 return make_fixnum (MOST_POSITIVE_FIXNUM & tiempo); |
4877 } | 4877 } |
4878 | 4878 |
4879 | 4879 |
4880 /************************************************************************/ | 4880 /************************************************************************/ |
4881 /* initialization */ | 4881 /* initialization */ |
4987 staticpro (&QSexecute_internal_event); | 4987 staticpro (&QSexecute_internal_event); |
4988 | 4988 |
4989 DEFVAR_LISP ("echo-keystrokes", &Vecho_keystrokes /* | 4989 DEFVAR_LISP ("echo-keystrokes", &Vecho_keystrokes /* |
4990 *Nonzero means echo unfinished commands after this many seconds of pause. | 4990 *Nonzero means echo unfinished commands after this many seconds of pause. |
4991 */ ); | 4991 */ ); |
4992 Vecho_keystrokes = make_int (1); | 4992 Vecho_keystrokes = make_fixnum (1); |
4993 | 4993 |
4994 DEFVAR_INT ("auto-save-interval", &auto_save_interval /* | 4994 DEFVAR_INT ("auto-save-interval", &auto_save_interval /* |
4995 *Number of keyboard input characters between auto-saves. | 4995 *Number of keyboard input characters between auto-saves. |
4996 Zero means disable autosaving due to number of characters typed. | 4996 Zero means disable autosaving due to number of characters typed. |
4997 See also the variable `auto-save-timeout'. | 4997 See also the variable `auto-save-timeout'. |
5221 non-integer value. | 5221 non-integer value. |
5222 | 5222 |
5223 This variable has no effect when `modifier-keys-are-sticky' is nil. | 5223 This variable has no effect when `modifier-keys-are-sticky' is nil. |
5224 Currently only implemented under X Window System. | 5224 Currently only implemented under X Window System. |
5225 */ ); | 5225 */ ); |
5226 Vmodifier_keys_sticky_time = make_int (500); | 5226 Vmodifier_keys_sticky_time = make_fixnum (500); |
5227 | 5227 |
5228 Vcontrolling_terminal = Qnil; | 5228 Vcontrolling_terminal = Qnil; |
5229 staticpro (&Vcontrolling_terminal); | 5229 staticpro (&Vcontrolling_terminal); |
5230 | 5230 |
5231 Vdribble_file = Qnil; | 5231 Vdribble_file = Qnil; |