diff options
| author | Ken Raeburn | 1999-10-25 04:58:18 +0000 |
|---|---|---|
| committer | Ken Raeburn | 1999-10-25 04:58:18 +0000 |
| commit | 7539e11fca07e5837010aaae18eaaefc7e51cf52 (patch) | |
| tree | 679815b93c740067026d3a86165a2433f71fbad6 /src/keyboard.c | |
| parent | 3a7093d84fa090b8f2458cef0376b81de4bd77ff (diff) | |
| download | emacs-7539e11fca07e5837010aaae18eaaefc7e51cf52.tar.gz emacs-7539e11fca07e5837010aaae18eaaefc7e51cf52.zip | |
more XCAR/XCDR/XFLOAT_DATA uses, to help isolete lisp engine
Diffstat (limited to 'src/keyboard.c')
| -rw-r--r-- | src/keyboard.c | 298 |
1 files changed, 149 insertions, 149 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index ab331cadcbe..eb050c05c25 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -1849,16 +1849,16 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu) | |||
| 1849 | reread = 0; | 1849 | reread = 0; |
| 1850 | if (CONSP (Vunread_post_input_method_events)) | 1850 | if (CONSP (Vunread_post_input_method_events)) |
| 1851 | { | 1851 | { |
| 1852 | c = XCONS (Vunread_post_input_method_events)->car; | 1852 | c = XCAR (Vunread_post_input_method_events); |
| 1853 | Vunread_post_input_method_events | 1853 | Vunread_post_input_method_events |
| 1854 | = XCONS (Vunread_post_input_method_events)->cdr; | 1854 | = XCDR (Vunread_post_input_method_events); |
| 1855 | 1855 | ||
| 1856 | /* Undo what read_char_x_menu_prompt did when it unread | 1856 | /* Undo what read_char_x_menu_prompt did when it unread |
| 1857 | additional keys returned by Fx_popup_menu. */ | 1857 | additional keys returned by Fx_popup_menu. */ |
| 1858 | if (CONSP (c) | 1858 | if (CONSP (c) |
| 1859 | && (SYMBOLP (XCONS (c)->car) || INTEGERP (XCONS (c)->car)) | 1859 | && (SYMBOLP (XCAR (c)) || INTEGERP (XCAR (c))) |
| 1860 | && NILP (XCONS (c)->cdr)) | 1860 | && NILP (XCDR (c))) |
| 1861 | c = XCONS (c)->car; | 1861 | c = XCAR (c); |
| 1862 | 1862 | ||
| 1863 | reread = 1; | 1863 | reread = 1; |
| 1864 | goto reread_first; | 1864 | goto reread_first; |
| @@ -1875,15 +1875,15 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu) | |||
| 1875 | 1875 | ||
| 1876 | if (CONSP (Vunread_command_events)) | 1876 | if (CONSP (Vunread_command_events)) |
| 1877 | { | 1877 | { |
| 1878 | c = XCONS (Vunread_command_events)->car; | 1878 | c = XCAR (Vunread_command_events); |
| 1879 | Vunread_command_events = XCONS (Vunread_command_events)->cdr; | 1879 | Vunread_command_events = XCDR (Vunread_command_events); |
| 1880 | 1880 | ||
| 1881 | /* Undo what read_char_x_menu_prompt did when it unread | 1881 | /* Undo what read_char_x_menu_prompt did when it unread |
| 1882 | additional keys returned by Fx_popup_menu. */ | 1882 | additional keys returned by Fx_popup_menu. */ |
| 1883 | if (CONSP (c) | 1883 | if (CONSP (c) |
| 1884 | && (SYMBOLP (XCONS (c)->car) || INTEGERP (XCONS (c)->car)) | 1884 | && (SYMBOLP (XCAR (c)) || INTEGERP (XCAR (c))) |
| 1885 | && NILP (XCONS (c)->cdr)) | 1885 | && NILP (XCDR (c))) |
| 1886 | c = XCONS (c)->car; | 1886 | c = XCAR (c); |
| 1887 | 1887 | ||
| 1888 | reread = 1; | 1888 | reread = 1; |
| 1889 | goto reread_for_input_method; | 1889 | goto reread_for_input_method; |
| @@ -1891,15 +1891,15 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu) | |||
| 1891 | 1891 | ||
| 1892 | if (CONSP (Vunread_input_method_events)) | 1892 | if (CONSP (Vunread_input_method_events)) |
| 1893 | { | 1893 | { |
| 1894 | c = XCONS (Vunread_input_method_events)->car; | 1894 | c = XCAR (Vunread_input_method_events); |
| 1895 | Vunread_input_method_events = XCONS (Vunread_input_method_events)->cdr; | 1895 | Vunread_input_method_events = XCDR (Vunread_input_method_events); |
| 1896 | 1896 | ||
| 1897 | /* Undo what read_char_x_menu_prompt did when it unread | 1897 | /* Undo what read_char_x_menu_prompt did when it unread |
| 1898 | additional keys returned by Fx_popup_menu. */ | 1898 | additional keys returned by Fx_popup_menu. */ |
| 1899 | if (CONSP (c) | 1899 | if (CONSP (c) |
| 1900 | && (SYMBOLP (XCONS (c)->car) || INTEGERP (XCONS (c)->car)) | 1900 | && (SYMBOLP (XCAR (c)) || INTEGERP (XCAR (c))) |
| 1901 | && NILP (XCONS (c)->cdr)) | 1901 | && NILP (XCDR (c))) |
| 1902 | c = XCONS (c)->car; | 1902 | c = XCAR (c); |
| 1903 | reread = 1; | 1903 | reread = 1; |
| 1904 | goto reread_for_input_method; | 1904 | goto reread_for_input_method; |
| 1905 | } | 1905 | } |
| @@ -2037,7 +2037,7 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu) | |||
| 2037 | if (single_kboard) | 2037 | if (single_kboard) |
| 2038 | abort (); | 2038 | abort (); |
| 2039 | while (CONSP (*tailp)) | 2039 | while (CONSP (*tailp)) |
| 2040 | tailp = &XCONS (*tailp)->cdr; | 2040 | tailp = &XCDR (*tailp); |
| 2041 | if (!NILP (*tailp)) | 2041 | if (!NILP (*tailp)) |
| 2042 | abort (); | 2042 | abort (); |
| 2043 | *tailp = Fcons (c, Qnil); | 2043 | *tailp = Fcons (c, Qnil); |
| @@ -2112,8 +2112,8 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu) | |||
| 2112 | if (nmaps > 0 && INTERACTIVE | 2112 | if (nmaps > 0 && INTERACTIVE |
| 2113 | && !NILP (prev_event) | 2113 | && !NILP (prev_event) |
| 2114 | && EVENT_HAS_PARAMETERS (prev_event) | 2114 | && EVENT_HAS_PARAMETERS (prev_event) |
| 2115 | && !EQ (XCONS (prev_event)->car, Qmenu_bar) | 2115 | && !EQ (XCAR (prev_event), Qmenu_bar) |
| 2116 | && !EQ (XCONS (prev_event)->car, Qtool_bar) | 2116 | && !EQ (XCAR (prev_event), Qtool_bar) |
| 2117 | /* Don't bring up a menu if we already have another event. */ | 2117 | /* Don't bring up a menu if we already have another event. */ |
| 2118 | && NILP (Vunread_command_events) | 2118 | && NILP (Vunread_command_events) |
| 2119 | && unread_command_char < 0) | 2119 | && unread_command_char < 0) |
| @@ -2179,8 +2179,8 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu) | |||
| 2179 | or sentinel or filter. */ | 2179 | or sentinel or filter. */ |
| 2180 | if (CONSP (Vunread_command_events)) | 2180 | if (CONSP (Vunread_command_events)) |
| 2181 | { | 2181 | { |
| 2182 | c = XCONS (Vunread_command_events)->car; | 2182 | c = XCAR (Vunread_command_events); |
| 2183 | Vunread_command_events = XCONS (Vunread_command_events)->cdr; | 2183 | Vunread_command_events = XCDR (Vunread_command_events); |
| 2184 | } | 2184 | } |
| 2185 | 2185 | ||
| 2186 | /* Read something from current KBOARD's side queue, if possible. */ | 2186 | /* Read something from current KBOARD's side queue, if possible. */ |
| @@ -2191,15 +2191,15 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu) | |||
| 2191 | { | 2191 | { |
| 2192 | if (!CONSP (current_kboard->kbd_queue)) | 2192 | if (!CONSP (current_kboard->kbd_queue)) |
| 2193 | abort (); | 2193 | abort (); |
| 2194 | c = XCONS (current_kboard->kbd_queue)->car; | 2194 | c = XCAR (current_kboard->kbd_queue); |
| 2195 | current_kboard->kbd_queue | 2195 | current_kboard->kbd_queue |
| 2196 | = XCONS (current_kboard->kbd_queue)->cdr; | 2196 | = XCDR (current_kboard->kbd_queue); |
| 2197 | if (NILP (current_kboard->kbd_queue)) | 2197 | if (NILP (current_kboard->kbd_queue)) |
| 2198 | current_kboard->kbd_queue_has_data = 0; | 2198 | current_kboard->kbd_queue_has_data = 0; |
| 2199 | input_pending = readable_events (0); | 2199 | input_pending = readable_events (0); |
| 2200 | if (EVENT_HAS_PARAMETERS (c) | 2200 | if (EVENT_HAS_PARAMETERS (c) |
| 2201 | && EQ (EVENT_HEAD_KIND (EVENT_HEAD (c)), Qswitch_frame)) | 2201 | && EQ (EVENT_HEAD_KIND (EVENT_HEAD (c)), Qswitch_frame)) |
| 2202 | internal_last_event_frame = XCONS (XCONS (c)->cdr)->car; | 2202 | internal_last_event_frame = XCAR (XCDR (c)); |
| 2203 | Vlast_event_frame = internal_last_event_frame; | 2203 | Vlast_event_frame = internal_last_event_frame; |
| 2204 | } | 2204 | } |
| 2205 | } | 2205 | } |
| @@ -2251,7 +2251,7 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu) | |||
| 2251 | { | 2251 | { |
| 2252 | Lisp_Object *tailp = &kb->kbd_queue; | 2252 | Lisp_Object *tailp = &kb->kbd_queue; |
| 2253 | while (CONSP (*tailp)) | 2253 | while (CONSP (*tailp)) |
| 2254 | tailp = &XCONS (*tailp)->cdr; | 2254 | tailp = &XCDR (*tailp); |
| 2255 | if (!NILP (*tailp)) | 2255 | if (!NILP (*tailp)) |
| 2256 | abort (); | 2256 | abort (); |
| 2257 | *tailp = Fcons (c, Qnil); | 2257 | *tailp = Fcons (c, Qnil); |
| @@ -2357,9 +2357,9 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu) | |||
| 2357 | return just menu-bar for now. Modify the mouse click event | 2357 | return just menu-bar for now. Modify the mouse click event |
| 2358 | so we won't do this twice, then queue it up. */ | 2358 | so we won't do this twice, then queue it up. */ |
| 2359 | if (EVENT_HAS_PARAMETERS (c) | 2359 | if (EVENT_HAS_PARAMETERS (c) |
| 2360 | && CONSP (XCONS (c)->cdr) | 2360 | && CONSP (XCDR (c)) |
| 2361 | && CONSP (EVENT_START (c)) | 2361 | && CONSP (EVENT_START (c)) |
| 2362 | && CONSP (XCONS (EVENT_START (c))->cdr)) | 2362 | && CONSP (XCDR (EVENT_START (c)))) |
| 2363 | { | 2363 | { |
| 2364 | Lisp_Object posn; | 2364 | Lisp_Object posn; |
| 2365 | 2365 | ||
| @@ -2483,9 +2483,9 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu) | |||
| 2483 | goto retry; | 2483 | goto retry; |
| 2484 | } | 2484 | } |
| 2485 | /* It returned one event or more. */ | 2485 | /* It returned one event or more. */ |
| 2486 | c = XCONS (tem)->car; | 2486 | c = XCAR (tem); |
| 2487 | Vunread_post_input_method_events | 2487 | Vunread_post_input_method_events |
| 2488 | = nconc2 (XCONS (tem)->cdr, Vunread_post_input_method_events); | 2488 | = nconc2 (XCDR (tem), Vunread_post_input_method_events); |
| 2489 | } | 2489 | } |
| 2490 | 2490 | ||
| 2491 | reread_first: | 2491 | reread_first: |
| @@ -2612,8 +2612,8 @@ help_char_p (c) | |||
| 2612 | 2612 | ||
| 2613 | if (EQ (c, Vhelp_char)) | 2613 | if (EQ (c, Vhelp_char)) |
| 2614 | return 1; | 2614 | return 1; |
| 2615 | for (tail = Vhelp_event_list; CONSP (tail); tail = XCONS (tail)->cdr) | 2615 | for (tail = Vhelp_event_list; CONSP (tail); tail = XCDR (tail)) |
| 2616 | if (EQ (c, XCONS (tail)->car)) | 2616 | if (EQ (c, XCAR (tail))) |
| 2617 | return 1; | 2617 | return 1; |
| 2618 | return 0; | 2618 | return 0; |
| 2619 | } | 2619 | } |
| @@ -2805,7 +2805,7 @@ event_to_kboard (event) | |||
| 2805 | Lisp_Object frame; | 2805 | Lisp_Object frame; |
| 2806 | frame = event->frame_or_window; | 2806 | frame = event->frame_or_window; |
| 2807 | if (CONSP (frame)) | 2807 | if (CONSP (frame)) |
| 2808 | frame = XCONS (frame)->car; | 2808 | frame = XCAR (frame); |
| 2809 | else if (WINDOWP (frame)) | 2809 | else if (WINDOWP (frame)) |
| 2810 | frame = WINDOW_FRAME (XWINDOW (frame)); | 2810 | frame = WINDOW_FRAME (XWINDOW (frame)); |
| 2811 | 2811 | ||
| @@ -3028,8 +3028,8 @@ kbd_buffer_get_event (kbp, used_mouse_menu) | |||
| 3028 | if (CONSP (Vunread_command_events)) | 3028 | if (CONSP (Vunread_command_events)) |
| 3029 | { | 3029 | { |
| 3030 | Lisp_Object first; | 3030 | Lisp_Object first; |
| 3031 | first = XCONS (Vunread_command_events)->car; | 3031 | first = XCAR (Vunread_command_events); |
| 3032 | Vunread_command_events = XCONS (Vunread_command_events)->cdr; | 3032 | Vunread_command_events = XCDR (Vunread_command_events); |
| 3033 | *kbp = current_kboard; | 3033 | *kbp = current_kboard; |
| 3034 | return first; | 3034 | return first; |
| 3035 | } | 3035 | } |
| @@ -3170,7 +3170,7 @@ kbd_buffer_get_event (kbp, used_mouse_menu) | |||
| 3170 | 3170 | ||
| 3171 | frame = event->frame_or_window; | 3171 | frame = event->frame_or_window; |
| 3172 | if (CONSP (frame)) | 3172 | if (CONSP (frame)) |
| 3173 | frame = XCONS (frame)->car; | 3173 | frame = XCAR (frame); |
| 3174 | else if (WINDOWP (frame)) | 3174 | else if (WINDOWP (frame)) |
| 3175 | frame = WINDOW_FRAME (XWINDOW (frame)); | 3175 | frame = WINDOW_FRAME (XWINDOW (frame)); |
| 3176 | 3176 | ||
| @@ -3197,8 +3197,8 @@ kbd_buffer_get_event (kbp, used_mouse_menu) | |||
| 3197 | that as the `event with parameters' for this selection. */ | 3197 | that as the `event with parameters' for this selection. */ |
| 3198 | if ((event->kind == menu_bar_event | 3198 | if ((event->kind == menu_bar_event |
| 3199 | || event->kind == TOOL_BAR_EVENT) | 3199 | || event->kind == TOOL_BAR_EVENT) |
| 3200 | && !(CONSP (obj) && EQ (XCONS (obj)->car, Qmenu_bar)) | 3200 | && !(CONSP (obj) && EQ (XCAR (obj), Qmenu_bar)) |
| 3201 | && !(CONSP (obj) && EQ (XCONS (obj)->car, Qtool_bar)) | 3201 | && !(CONSP (obj) && EQ (XCAR (obj), Qtool_bar)) |
| 3202 | && used_mouse_menu) | 3202 | && used_mouse_menu) |
| 3203 | *used_mouse_menu = 1; | 3203 | *used_mouse_menu = 1; |
| 3204 | #endif | 3204 | #endif |
| @@ -3350,11 +3350,11 @@ timer_start_idle () | |||
| 3350 | EMACS_GET_TIME (timer_idleness_start_time); | 3350 | EMACS_GET_TIME (timer_idleness_start_time); |
| 3351 | 3351 | ||
| 3352 | /* Mark all idle-time timers as once again candidates for running. */ | 3352 | /* Mark all idle-time timers as once again candidates for running. */ |
| 3353 | for (timers = Vtimer_idle_list; CONSP (timers); timers = XCONS (timers)->cdr) | 3353 | for (timers = Vtimer_idle_list; CONSP (timers); timers = XCDR (timers)) |
| 3354 | { | 3354 | { |
| 3355 | Lisp_Object timer; | 3355 | Lisp_Object timer; |
| 3356 | 3356 | ||
| 3357 | timer = XCONS (timers)->car; | 3357 | timer = XCAR (timers); |
| 3358 | 3358 | ||
| 3359 | if (!VECTORP (timer) || XVECTOR (timer)->size != 8) | 3359 | if (!VECTORP (timer) || XVECTOR (timer)->size != 8) |
| 3360 | continue; | 3360 | continue; |
| @@ -3426,10 +3426,10 @@ timer_check (do_it_now) | |||
| 3426 | /* Skip past invalid timers and timers already handled. */ | 3426 | /* Skip past invalid timers and timers already handled. */ |
| 3427 | if (!NILP (timers)) | 3427 | if (!NILP (timers)) |
| 3428 | { | 3428 | { |
| 3429 | timer = XCONS (timers)->car; | 3429 | timer = XCAR (timers); |
| 3430 | if (!VECTORP (timer) || XVECTOR (timer)->size != 8) | 3430 | if (!VECTORP (timer) || XVECTOR (timer)->size != 8) |
| 3431 | { | 3431 | { |
| 3432 | timers = XCONS (timers)->cdr; | 3432 | timers = XCDR (timers); |
| 3433 | continue; | 3433 | continue; |
| 3434 | } | 3434 | } |
| 3435 | vector = XVECTOR (timer)->contents; | 3435 | vector = XVECTOR (timer)->contents; |
| @@ -3438,16 +3438,16 @@ timer_check (do_it_now) | |||
| 3438 | || !INTEGERP (vector[3]) | 3438 | || !INTEGERP (vector[3]) |
| 3439 | || ! NILP (vector[0])) | 3439 | || ! NILP (vector[0])) |
| 3440 | { | 3440 | { |
| 3441 | timers = XCONS (timers)->cdr; | 3441 | timers = XCDR (timers); |
| 3442 | continue; | 3442 | continue; |
| 3443 | } | 3443 | } |
| 3444 | } | 3444 | } |
| 3445 | if (!NILP (idle_timers)) | 3445 | if (!NILP (idle_timers)) |
| 3446 | { | 3446 | { |
| 3447 | timer = XCONS (idle_timers)->car; | 3447 | timer = XCAR (idle_timers); |
| 3448 | if (!VECTORP (timer) || XVECTOR (timer)->size != 8) | 3448 | if (!VECTORP (timer) || XVECTOR (timer)->size != 8) |
| 3449 | { | 3449 | { |
| 3450 | idle_timers = XCONS (idle_timers)->cdr; | 3450 | idle_timers = XCDR (idle_timers); |
| 3451 | continue; | 3451 | continue; |
| 3452 | } | 3452 | } |
| 3453 | vector = XVECTOR (timer)->contents; | 3453 | vector = XVECTOR (timer)->contents; |
| @@ -3456,7 +3456,7 @@ timer_check (do_it_now) | |||
| 3456 | || !INTEGERP (vector[3]) | 3456 | || !INTEGERP (vector[3]) |
| 3457 | || ! NILP (vector[0])) | 3457 | || ! NILP (vector[0])) |
| 3458 | { | 3458 | { |
| 3459 | idle_timers = XCONS (idle_timers)->cdr; | 3459 | idle_timers = XCDR (idle_timers); |
| 3460 | continue; | 3460 | continue; |
| 3461 | } | 3461 | } |
| 3462 | } | 3462 | } |
| @@ -3467,7 +3467,7 @@ timer_check (do_it_now) | |||
| 3467 | this timer becomes ripe (negative if it's already ripe). */ | 3467 | this timer becomes ripe (negative if it's already ripe). */ |
| 3468 | if (!NILP (timers)) | 3468 | if (!NILP (timers)) |
| 3469 | { | 3469 | { |
| 3470 | timer = XCONS (timers)->car; | 3470 | timer = XCAR (timers); |
| 3471 | vector = XVECTOR (timer)->contents; | 3471 | vector = XVECTOR (timer)->contents; |
| 3472 | EMACS_SET_SECS (timer_time, | 3472 | EMACS_SET_SECS (timer_time, |
| 3473 | (XINT (vector[1]) << 16) | (XINT (vector[2]))); | 3473 | (XINT (vector[1]) << 16) | (XINT (vector[2]))); |
| @@ -3479,7 +3479,7 @@ timer_check (do_it_now) | |||
| 3479 | based on the next idle timer. */ | 3479 | based on the next idle timer. */ |
| 3480 | if (!NILP (idle_timers)) | 3480 | if (!NILP (idle_timers)) |
| 3481 | { | 3481 | { |
| 3482 | idle_timer = XCONS (idle_timers)->car; | 3482 | idle_timer = XCAR (idle_timers); |
| 3483 | vector = XVECTOR (idle_timer)->contents; | 3483 | vector = XVECTOR (idle_timer)->contents; |
| 3484 | EMACS_SET_SECS (idle_timer_time, | 3484 | EMACS_SET_SECS (idle_timer_time, |
| 3485 | (XINT (vector[1]) << 16) | (XINT (vector[2]))); | 3485 | (XINT (vector[1]) << 16) | (XINT (vector[2]))); |
| @@ -3498,26 +3498,26 @@ timer_check (do_it_now) | |||
| 3498 | if (EMACS_TIME_NEG_P (temp)) | 3498 | if (EMACS_TIME_NEG_P (temp)) |
| 3499 | { | 3499 | { |
| 3500 | chosen_timer = timer; | 3500 | chosen_timer = timer; |
| 3501 | timers = XCONS (timers)->cdr; | 3501 | timers = XCDR (timers); |
| 3502 | difference = timer_difference; | 3502 | difference = timer_difference; |
| 3503 | } | 3503 | } |
| 3504 | else | 3504 | else |
| 3505 | { | 3505 | { |
| 3506 | chosen_timer = idle_timer; | 3506 | chosen_timer = idle_timer; |
| 3507 | idle_timers = XCONS (idle_timers)->cdr; | 3507 | idle_timers = XCDR (idle_timers); |
| 3508 | difference = idle_timer_difference; | 3508 | difference = idle_timer_difference; |
| 3509 | } | 3509 | } |
| 3510 | } | 3510 | } |
| 3511 | else if (! NILP (timers)) | 3511 | else if (! NILP (timers)) |
| 3512 | { | 3512 | { |
| 3513 | chosen_timer = timer; | 3513 | chosen_timer = timer; |
| 3514 | timers = XCONS (timers)->cdr; | 3514 | timers = XCDR (timers); |
| 3515 | difference = timer_difference; | 3515 | difference = timer_difference; |
| 3516 | } | 3516 | } |
| 3517 | else | 3517 | else |
| 3518 | { | 3518 | { |
| 3519 | chosen_timer = idle_timer; | 3519 | chosen_timer = idle_timer; |
| 3520 | idle_timers = XCONS (idle_timers)->cdr; | 3520 | idle_timers = XCDR (idle_timers); |
| 3521 | difference = idle_timer_difference; | 3521 | difference = idle_timer_difference; |
| 3522 | } | 3522 | } |
| 3523 | vector = XVECTOR (chosen_timer)->contents; | 3523 | vector = XVECTOR (chosen_timer)->contents; |
| @@ -4391,8 +4391,8 @@ make_lispy_event (event) | |||
| 4391 | Lisp_Object down; | 4391 | Lisp_Object down; |
| 4392 | 4392 | ||
| 4393 | down = Fnth (make_number (2), start_pos); | 4393 | down = Fnth (make_number (2), start_pos); |
| 4394 | if (EQ (event->x, XCONS (down)->car) | 4394 | if (EQ (event->x, XCAR (down)) |
| 4395 | && EQ (event->y, XCONS (down)->cdr)) | 4395 | && EQ (event->y, XCDR (down))) |
| 4396 | { | 4396 | { |
| 4397 | event->modifiers |= click_modifier; | 4397 | event->modifiers |= click_modifier; |
| 4398 | } | 4398 | } |
| @@ -4617,8 +4617,8 @@ make_lispy_event (event) | |||
| 4617 | if (! CONSP (event->frame_or_window)) | 4617 | if (! CONSP (event->frame_or_window)) |
| 4618 | abort (); | 4618 | abort (); |
| 4619 | 4619 | ||
| 4620 | f = XFRAME (XCONS (event->frame_or_window)->car); | 4620 | f = XFRAME (XCAR (event->frame_or_window)); |
| 4621 | files = XCONS (event->frame_or_window)->cdr; | 4621 | files = XCDR (event->frame_or_window); |
| 4622 | 4622 | ||
| 4623 | /* Ignore mouse events that were made on frames that | 4623 | /* Ignore mouse events that were made on frames that |
| 4624 | have been deleted. */ | 4624 | have been deleted. */ |
| @@ -4630,7 +4630,7 @@ make_lispy_event (event) | |||
| 4630 | 4630 | ||
| 4631 | if (!WINDOWP (window)) | 4631 | if (!WINDOWP (window)) |
| 4632 | { | 4632 | { |
| 4633 | window = XCONS (event->frame_or_window)->car; | 4633 | window = XCAR (event->frame_or_window); |
| 4634 | posn = Qnil; | 4634 | posn = Qnil; |
| 4635 | } | 4635 | } |
| 4636 | else | 4636 | else |
| @@ -4685,7 +4685,7 @@ make_lispy_event (event) | |||
| 4685 | /* The event value is in the cdr of the frame_or_window slot. */ | 4685 | /* The event value is in the cdr of the frame_or_window slot. */ |
| 4686 | if (!CONSP (event->frame_or_window)) | 4686 | if (!CONSP (event->frame_or_window)) |
| 4687 | abort (); | 4687 | abort (); |
| 4688 | return XCONS (event->frame_or_window)->cdr; | 4688 | return XCDR (event->frame_or_window); |
| 4689 | #endif | 4689 | #endif |
| 4690 | 4690 | ||
| 4691 | case TOOL_BAR_EVENT: | 4691 | case TOOL_BAR_EVENT: |
| @@ -5049,7 +5049,7 @@ apply_modifiers (modifiers, base) | |||
| 5049 | entry = assq_no_quit (index, cache); | 5049 | entry = assq_no_quit (index, cache); |
| 5050 | 5050 | ||
| 5051 | if (CONSP (entry)) | 5051 | if (CONSP (entry)) |
| 5052 | new_symbol = XCONS (entry)->cdr; | 5052 | new_symbol = XCDR (entry); |
| 5053 | else | 5053 | else |
| 5054 | { | 5054 | { |
| 5055 | /* We have to create the symbol ourselves. */ | 5055 | /* We have to create the symbol ourselves. */ |
| @@ -5107,8 +5107,8 @@ reorder_modifiers (symbol) | |||
| 5107 | Lisp_Object parsed; | 5107 | Lisp_Object parsed; |
| 5108 | 5108 | ||
| 5109 | parsed = parse_modifiers (symbol); | 5109 | parsed = parse_modifiers (symbol); |
| 5110 | return apply_modifiers ((int) XINT (XCONS (XCONS (parsed)->cdr)->car), | 5110 | return apply_modifiers ((int) XINT (XCAR (XCDR (parsed))), |
| 5111 | XCONS (parsed)->car); | 5111 | XCAR (parsed)); |
| 5112 | } | 5112 | } |
| 5113 | 5113 | ||
| 5114 | 5114 | ||
| @@ -5249,8 +5249,8 @@ has the same base event type and all the specified modifiers.") | |||
| 5249 | Lisp_Object elt; | 5249 | Lisp_Object elt; |
| 5250 | int this = 0; | 5250 | int this = 0; |
| 5251 | 5251 | ||
| 5252 | elt = XCONS (rest)->car; | 5252 | elt = XCAR (rest); |
| 5253 | rest = XCONS (rest)->cdr; | 5253 | rest = XCDR (rest); |
| 5254 | 5254 | ||
| 5255 | /* Given a symbol, see if it is a modifier name. */ | 5255 | /* Given a symbol, see if it is a modifier name. */ |
| 5256 | if (SYMBOLP (elt) && CONSP (rest)) | 5256 | if (SYMBOLP (elt) && CONSP (rest)) |
| @@ -5385,10 +5385,10 @@ lucid_event_type_list_p (object) | |||
| 5385 | if (! CONSP (object)) | 5385 | if (! CONSP (object)) |
| 5386 | return 0; | 5386 | return 0; |
| 5387 | 5387 | ||
| 5388 | for (tail = object; CONSP (tail); tail = XCONS (tail)->cdr) | 5388 | for (tail = object; CONSP (tail); tail = XCDR (tail)) |
| 5389 | { | 5389 | { |
| 5390 | Lisp_Object elt; | 5390 | Lisp_Object elt; |
| 5391 | elt = XCONS (tail)->car; | 5391 | elt = XCAR (tail); |
| 5392 | if (! (INTEGERP (elt) || SYMBOLP (elt))) | 5392 | if (! (INTEGERP (elt) || SYMBOLP (elt))) |
| 5393 | return 0; | 5393 | return 0; |
| 5394 | } | 5394 | } |
| @@ -5831,13 +5831,13 @@ menu_bar_items (old) | |||
| 5831 | 5831 | ||
| 5832 | /* Move to the end those items that should be at the end. */ | 5832 | /* Move to the end those items that should be at the end. */ |
| 5833 | 5833 | ||
| 5834 | for (tail = Vmenu_bar_final_items; CONSP (tail); tail = XCONS (tail)->cdr) | 5834 | for (tail = Vmenu_bar_final_items; CONSP (tail); tail = XCDR (tail)) |
| 5835 | { | 5835 | { |
| 5836 | int i; | 5836 | int i; |
| 5837 | int end = menu_bar_items_index; | 5837 | int end = menu_bar_items_index; |
| 5838 | 5838 | ||
| 5839 | for (i = 0; i < end; i += 4) | 5839 | for (i = 0; i < end; i += 4) |
| 5840 | if (EQ (XCONS (tail)->car, XVECTOR (menu_bar_items_vector)->contents[i])) | 5840 | if (EQ (XCAR (tail), XVECTOR (menu_bar_items_vector)->contents[i])) |
| 5841 | { | 5841 | { |
| 5842 | Lisp_Object tem0, tem1, tem2, tem3; | 5842 | Lisp_Object tem0, tem1, tem2, tem3; |
| 5843 | /* Move the item at index I to the end, | 5843 | /* Move the item at index I to the end, |
| @@ -5894,11 +5894,11 @@ menu_bar_one_keymap (keymap) | |||
| 5894 | menu_bar_one_keymap_changed_items = Qnil; | 5894 | menu_bar_one_keymap_changed_items = Qnil; |
| 5895 | 5895 | ||
| 5896 | /* Loop over all keymap entries that have menu strings. */ | 5896 | /* Loop over all keymap entries that have menu strings. */ |
| 5897 | for (tail = keymap; CONSP (tail); tail = XCONS (tail)->cdr) | 5897 | for (tail = keymap; CONSP (tail); tail = XCDR (tail)) |
| 5898 | { | 5898 | { |
| 5899 | item = XCONS (tail)->car; | 5899 | item = XCAR (tail); |
| 5900 | if (CONSP (item)) | 5900 | if (CONSP (item)) |
| 5901 | menu_bar_item (XCONS (item)->car, XCONS (item)->cdr); | 5901 | menu_bar_item (XCAR (item), XCDR (item)); |
| 5902 | else if (VECTORP (item)) | 5902 | else if (VECTORP (item)) |
| 5903 | { | 5903 | { |
| 5904 | /* Loop over the char values represented in the vector. */ | 5904 | /* Loop over the char values represented in the vector. */ |
| @@ -6007,7 +6007,7 @@ menu_item_eval_property_1 (arg) | |||
| 6007 | { | 6007 | { |
| 6008 | /* If we got a quit from within the menu computation, | 6008 | /* If we got a quit from within the menu computation, |
| 6009 | quit all the way out of it. This takes care of C-] in the debugger. */ | 6009 | quit all the way out of it. This takes care of C-] in the debugger. */ |
| 6010 | if (CONSP (arg) && EQ (XCONS (arg)->car, Qquit)) | 6010 | if (CONSP (arg) && EQ (XCAR (arg), Qquit)) |
| 6011 | Fsignal (Qquit, Qnil); | 6011 | Fsignal (Qquit, Qnil); |
| 6012 | 6012 | ||
| 6013 | return Qnil; | 6013 | return Qnil; |
| @@ -6070,31 +6070,31 @@ parse_menu_item (item, notreal, inmenubar) | |||
| 6070 | /* Save the item here to protect it from GC. */ | 6070 | /* Save the item here to protect it from GC. */ |
| 6071 | XVECTOR (item_properties)->contents[ITEM_PROPERTY_ITEM] = item; | 6071 | XVECTOR (item_properties)->contents[ITEM_PROPERTY_ITEM] = item; |
| 6072 | 6072 | ||
| 6073 | item_string = XCONS (item)->car; | 6073 | item_string = XCAR (item); |
| 6074 | 6074 | ||
| 6075 | start = item; | 6075 | start = item; |
| 6076 | item = XCONS (item)->cdr; | 6076 | item = XCDR (item); |
| 6077 | if (STRINGP (item_string)) | 6077 | if (STRINGP (item_string)) |
| 6078 | { | 6078 | { |
| 6079 | /* Old format menu item. */ | 6079 | /* Old format menu item. */ |
| 6080 | XVECTOR (item_properties)->contents[ITEM_PROPERTY_NAME] = item_string; | 6080 | XVECTOR (item_properties)->contents[ITEM_PROPERTY_NAME] = item_string; |
| 6081 | 6081 | ||
| 6082 | /* Maybe help string. */ | 6082 | /* Maybe help string. */ |
| 6083 | if (CONSP (item) && STRINGP (XCONS (item)->car)) | 6083 | if (CONSP (item) && STRINGP (XCAR (item))) |
| 6084 | { | 6084 | { |
| 6085 | XVECTOR (item_properties)->contents[ITEM_PROPERTY_HELP] | 6085 | XVECTOR (item_properties)->contents[ITEM_PROPERTY_HELP] |
| 6086 | = XCONS (item)->car; | 6086 | = XCAR (item); |
| 6087 | start = item; | 6087 | start = item; |
| 6088 | item = XCONS (item)->cdr; | 6088 | item = XCDR (item); |
| 6089 | } | 6089 | } |
| 6090 | 6090 | ||
| 6091 | /* Maybee key binding cache. */ | 6091 | /* Maybee key binding cache. */ |
| 6092 | if (CONSP (item) && CONSP (XCONS (item)->car) | 6092 | if (CONSP (item) && CONSP (XCAR (item)) |
| 6093 | && (NILP (XCONS (XCONS (item)->car)->car) | 6093 | && (NILP (XCAR (XCAR (item))) |
| 6094 | || VECTORP (XCONS (XCONS (item)->car)->car))) | 6094 | || VECTORP (XCAR (XCAR (item))))) |
| 6095 | { | 6095 | { |
| 6096 | cachelist = XCONS (item)->car; | 6096 | cachelist = XCAR (item); |
| 6097 | item = XCONS (item)->cdr; | 6097 | item = XCDR (item); |
| 6098 | } | 6098 | } |
| 6099 | 6099 | ||
| 6100 | /* This is the real definition--the function to run. */ | 6100 | /* This is the real definition--the function to run. */ |
| @@ -6112,47 +6112,47 @@ parse_menu_item (item, notreal, inmenubar) | |||
| 6112 | { | 6112 | { |
| 6113 | /* New format menu item. */ | 6113 | /* New format menu item. */ |
| 6114 | XVECTOR (item_properties)->contents[ITEM_PROPERTY_NAME] | 6114 | XVECTOR (item_properties)->contents[ITEM_PROPERTY_NAME] |
| 6115 | = XCONS (item)->car; | 6115 | = XCAR (item); |
| 6116 | start = XCONS (item)->cdr; | 6116 | start = XCDR (item); |
| 6117 | if (CONSP (start)) | 6117 | if (CONSP (start)) |
| 6118 | { | 6118 | { |
| 6119 | /* We have a real binding. */ | 6119 | /* We have a real binding. */ |
| 6120 | XVECTOR (item_properties)->contents[ITEM_PROPERTY_DEF] | 6120 | XVECTOR (item_properties)->contents[ITEM_PROPERTY_DEF] |
| 6121 | = XCONS (start)->car; | 6121 | = XCAR (start); |
| 6122 | 6122 | ||
| 6123 | item = XCONS (start)->cdr; | 6123 | item = XCDR (start); |
| 6124 | /* Is there a cache list with key equivalences. */ | 6124 | /* Is there a cache list with key equivalences. */ |
| 6125 | if (CONSP (item) && CONSP (XCONS (item)->car)) | 6125 | if (CONSP (item) && CONSP (XCAR (item))) |
| 6126 | { | 6126 | { |
| 6127 | cachelist = XCONS (item)->car; | 6127 | cachelist = XCAR (item); |
| 6128 | item = XCONS (item)->cdr; | 6128 | item = XCDR (item); |
| 6129 | } | 6129 | } |
| 6130 | 6130 | ||
| 6131 | /* Parse properties. */ | 6131 | /* Parse properties. */ |
| 6132 | while (CONSP (item) && CONSP (XCONS (item)->cdr)) | 6132 | while (CONSP (item) && CONSP (XCDR (item))) |
| 6133 | { | 6133 | { |
| 6134 | tem = XCONS (item)->car; | 6134 | tem = XCAR (item); |
| 6135 | item = XCONS (item)->cdr; | 6135 | item = XCDR (item); |
| 6136 | 6136 | ||
| 6137 | if (EQ (tem, QCenable)) | 6137 | if (EQ (tem, QCenable)) |
| 6138 | XVECTOR (item_properties)->contents[ITEM_PROPERTY_ENABLE] | 6138 | XVECTOR (item_properties)->contents[ITEM_PROPERTY_ENABLE] |
| 6139 | = XCONS (item)->car; | 6139 | = XCAR (item); |
| 6140 | else if (EQ (tem, QCvisible) && !notreal) | 6140 | else if (EQ (tem, QCvisible) && !notreal) |
| 6141 | { | 6141 | { |
| 6142 | /* If got a visible property and that evaluates to nil | 6142 | /* If got a visible property and that evaluates to nil |
| 6143 | then ignore this item. */ | 6143 | then ignore this item. */ |
| 6144 | tem = menu_item_eval_property (XCONS (item)->car); | 6144 | tem = menu_item_eval_property (XCAR (item)); |
| 6145 | if (NILP (tem)) | 6145 | if (NILP (tem)) |
| 6146 | return 0; | 6146 | return 0; |
| 6147 | } | 6147 | } |
| 6148 | else if (EQ (tem, QChelp)) | 6148 | else if (EQ (tem, QChelp)) |
| 6149 | XVECTOR (item_properties)->contents[ITEM_PROPERTY_HELP] | 6149 | XVECTOR (item_properties)->contents[ITEM_PROPERTY_HELP] |
| 6150 | = XCONS (item)->car; | 6150 | = XCAR (item); |
| 6151 | else if (EQ (tem, QCfilter)) | 6151 | else if (EQ (tem, QCfilter)) |
| 6152 | filter = item; | 6152 | filter = item; |
| 6153 | else if (EQ (tem, QCkey_sequence)) | 6153 | else if (EQ (tem, QCkey_sequence)) |
| 6154 | { | 6154 | { |
| 6155 | tem = XCONS (item)->car; | 6155 | tem = XCAR (item); |
| 6156 | if (NILP (cachelist) | 6156 | if (NILP (cachelist) |
| 6157 | && (SYMBOLP (tem) || STRINGP (tem) || VECTORP (tem))) | 6157 | && (SYMBOLP (tem) || STRINGP (tem) || VECTORP (tem))) |
| 6158 | /* Be GC protected. Set keyhint to item instead of tem. */ | 6158 | /* Be GC protected. Set keyhint to item instead of tem. */ |
| @@ -6160,25 +6160,25 @@ parse_menu_item (item, notreal, inmenubar) | |||
| 6160 | } | 6160 | } |
| 6161 | else if (EQ (tem, QCkeys)) | 6161 | else if (EQ (tem, QCkeys)) |
| 6162 | { | 6162 | { |
| 6163 | tem = XCONS (item)->car; | 6163 | tem = XCAR (item); |
| 6164 | if (CONSP (tem) || (STRINGP (tem) && NILP (cachelist))) | 6164 | if (CONSP (tem) || (STRINGP (tem) && NILP (cachelist))) |
| 6165 | XVECTOR (item_properties)->contents[ITEM_PROPERTY_KEYEQ] | 6165 | XVECTOR (item_properties)->contents[ITEM_PROPERTY_KEYEQ] |
| 6166 | = tem; | 6166 | = tem; |
| 6167 | } | 6167 | } |
| 6168 | else if (EQ (tem, QCbutton) && CONSP (XCONS (item)->car)) | 6168 | else if (EQ (tem, QCbutton) && CONSP (XCAR (item))) |
| 6169 | { | 6169 | { |
| 6170 | Lisp_Object type; | 6170 | Lisp_Object type; |
| 6171 | tem = XCONS (item)->car; | 6171 | tem = XCAR (item); |
| 6172 | type = XCONS (tem)->car; | 6172 | type = XCAR (tem); |
| 6173 | if (EQ (type, QCtoggle) || EQ (type, QCradio)) | 6173 | if (EQ (type, QCtoggle) || EQ (type, QCradio)) |
| 6174 | { | 6174 | { |
| 6175 | XVECTOR (item_properties)->contents[ITEM_PROPERTY_SELECTED] | 6175 | XVECTOR (item_properties)->contents[ITEM_PROPERTY_SELECTED] |
| 6176 | = XCONS (tem)->cdr; | 6176 | = XCDR (tem); |
| 6177 | XVECTOR (item_properties)->contents[ITEM_PROPERTY_TYPE] | 6177 | XVECTOR (item_properties)->contents[ITEM_PROPERTY_TYPE] |
| 6178 | = type; | 6178 | = type; |
| 6179 | } | 6179 | } |
| 6180 | } | 6180 | } |
| 6181 | item = XCONS (item)->cdr; | 6181 | item = XCDR (item); |
| 6182 | } | 6182 | } |
| 6183 | } | 6183 | } |
| 6184 | else if (inmenubar || !NILP (start)) | 6184 | else if (inmenubar || !NILP (start)) |
| @@ -6202,7 +6202,7 @@ parse_menu_item (item, notreal, inmenubar) | |||
| 6202 | def = XVECTOR (item_properties)->contents[ITEM_PROPERTY_DEF]; | 6202 | def = XVECTOR (item_properties)->contents[ITEM_PROPERTY_DEF]; |
| 6203 | if (!NILP (filter)) | 6203 | if (!NILP (filter)) |
| 6204 | { | 6204 | { |
| 6205 | def = menu_item_eval_property (list2 (XCONS (filter)->car, | 6205 | def = menu_item_eval_property (list2 (XCAR (filter), |
| 6206 | list2 (Qquote, def))); | 6206 | list2 (Qquote, def))); |
| 6207 | 6207 | ||
| 6208 | XVECTOR (item_properties)->contents[ITEM_PROPERTY_DEF] = def; | 6208 | XVECTOR (item_properties)->contents[ITEM_PROPERTY_DEF] = def; |
| @@ -6247,22 +6247,22 @@ parse_menu_item (item, notreal, inmenubar) | |||
| 6247 | { | 6247 | { |
| 6248 | /* We have to create a cachelist. */ | 6248 | /* We have to create a cachelist. */ |
| 6249 | CHECK_IMPURE (start); | 6249 | CHECK_IMPURE (start); |
| 6250 | XCONS (start)->cdr = Fcons (Fcons (Qnil, Qnil), XCONS (start)->cdr); | 6250 | XCDR (start) = Fcons (Fcons (Qnil, Qnil), XCDR (start)); |
| 6251 | cachelist = XCONS (XCONS (start)->cdr)->car; | 6251 | cachelist = XCAR (XCDR (start)); |
| 6252 | newcache = 1; | 6252 | newcache = 1; |
| 6253 | tem = XVECTOR (item_properties)->contents[ITEM_PROPERTY_KEYEQ]; | 6253 | tem = XVECTOR (item_properties)->contents[ITEM_PROPERTY_KEYEQ]; |
| 6254 | if (!NILP (keyhint)) | 6254 | if (!NILP (keyhint)) |
| 6255 | { | 6255 | { |
| 6256 | XCONS (cachelist)->car = XCONS (keyhint)->car; | 6256 | XCAR (cachelist) = XCAR (keyhint); |
| 6257 | newcache = 0; | 6257 | newcache = 0; |
| 6258 | } | 6258 | } |
| 6259 | else if (STRINGP (tem)) | 6259 | else if (STRINGP (tem)) |
| 6260 | { | 6260 | { |
| 6261 | XCONS (cachelist)->cdr = Fsubstitute_command_keys (tem); | 6261 | XCDR (cachelist) = Fsubstitute_command_keys (tem); |
| 6262 | XCONS (cachelist)->car = Qt; | 6262 | XCAR (cachelist) = Qt; |
| 6263 | } | 6263 | } |
| 6264 | } | 6264 | } |
| 6265 | tem = XCONS (cachelist)->car; | 6265 | tem = XCAR (cachelist); |
| 6266 | if (!EQ (tem, Qt)) | 6266 | if (!EQ (tem, Qt)) |
| 6267 | { | 6267 | { |
| 6268 | int chkcache = 0; | 6268 | int chkcache = 0; |
| @@ -6274,13 +6274,13 @@ parse_menu_item (item, notreal, inmenubar) | |||
| 6274 | prefix = XVECTOR (item_properties)->contents[ITEM_PROPERTY_KEYEQ]; | 6274 | prefix = XVECTOR (item_properties)->contents[ITEM_PROPERTY_KEYEQ]; |
| 6275 | if (CONSP (prefix)) | 6275 | if (CONSP (prefix)) |
| 6276 | { | 6276 | { |
| 6277 | def = XCONS (prefix)->car; | 6277 | def = XCAR (prefix); |
| 6278 | prefix = XCONS (prefix)->cdr; | 6278 | prefix = XCDR (prefix); |
| 6279 | } | 6279 | } |
| 6280 | else | 6280 | else |
| 6281 | def = XVECTOR (item_properties)->contents[ITEM_PROPERTY_DEF]; | 6281 | def = XVECTOR (item_properties)->contents[ITEM_PROPERTY_DEF]; |
| 6282 | 6282 | ||
| 6283 | if (NILP (XCONS (cachelist)->car)) /* Have no saved key. */ | 6283 | if (NILP (XCAR (cachelist))) /* Have no saved key. */ |
| 6284 | { | 6284 | { |
| 6285 | if (newcache /* Always check first time. */ | 6285 | if (newcache /* Always check first time. */ |
| 6286 | /* Should we check everything when precomputing key | 6286 | /* Should we check everything when precomputing key |
| @@ -6314,16 +6314,16 @@ parse_menu_item (item, notreal, inmenubar) | |||
| 6314 | && ! NILP (Fget (def, Qmenu_alias))) | 6314 | && ! NILP (Fget (def, Qmenu_alias))) |
| 6315 | def = XSYMBOL (def)->function; | 6315 | def = XSYMBOL (def)->function; |
| 6316 | tem = Fwhere_is_internal (def, Qnil, Qt, Qnil); | 6316 | tem = Fwhere_is_internal (def, Qnil, Qt, Qnil); |
| 6317 | XCONS (cachelist)->car = tem; | 6317 | XCAR (cachelist) = tem; |
| 6318 | if (NILP (tem)) | 6318 | if (NILP (tem)) |
| 6319 | { | 6319 | { |
| 6320 | XCONS (cachelist)->cdr = Qnil; | 6320 | XCDR (cachelist) = Qnil; |
| 6321 | chkcache = 0; | 6321 | chkcache = 0; |
| 6322 | } | 6322 | } |
| 6323 | } | 6323 | } |
| 6324 | else if (!NILP (keyhint) && !NILP (XCONS (cachelist)->car)) | 6324 | else if (!NILP (keyhint) && !NILP (XCAR (cachelist))) |
| 6325 | { | 6325 | { |
| 6326 | tem = XCONS (cachelist)->car; | 6326 | tem = XCAR (cachelist); |
| 6327 | chkcache = 1; | 6327 | chkcache = 1; |
| 6328 | } | 6328 | } |
| 6329 | 6329 | ||
| @@ -6333,20 +6333,20 @@ parse_menu_item (item, notreal, inmenubar) | |||
| 6333 | tem = Fkey_description (tem); | 6333 | tem = Fkey_description (tem); |
| 6334 | if (CONSP (prefix)) | 6334 | if (CONSP (prefix)) |
| 6335 | { | 6335 | { |
| 6336 | if (STRINGP (XCONS (prefix)->car)) | 6336 | if (STRINGP (XCAR (prefix))) |
| 6337 | tem = concat2 (XCONS (prefix)->car, tem); | 6337 | tem = concat2 (XCAR (prefix), tem); |
| 6338 | if (STRINGP (XCONS (prefix)->cdr)) | 6338 | if (STRINGP (XCDR (prefix))) |
| 6339 | tem = concat2 (tem, XCONS (prefix)->cdr); | 6339 | tem = concat2 (tem, XCDR (prefix)); |
| 6340 | } | 6340 | } |
| 6341 | XCONS (cachelist)->cdr = tem; | 6341 | XCDR (cachelist) = tem; |
| 6342 | } | 6342 | } |
| 6343 | } | 6343 | } |
| 6344 | 6344 | ||
| 6345 | tem = XCONS (cachelist)->cdr; | 6345 | tem = XCDR (cachelist); |
| 6346 | if (newcache && !NILP (tem)) | 6346 | if (newcache && !NILP (tem)) |
| 6347 | { | 6347 | { |
| 6348 | tem = concat3 (build_string (" ("), tem, build_string (")")); | 6348 | tem = concat3 (build_string (" ("), tem, build_string (")")); |
| 6349 | XCONS (cachelist)->cdr = tem; | 6349 | XCDR (cachelist) = tem; |
| 6350 | } | 6350 | } |
| 6351 | 6351 | ||
| 6352 | /* If we only want to precompute equivalent key bindings, stop here. */ | 6352 | /* If we only want to precompute equivalent key bindings, stop here. */ |
| @@ -6483,7 +6483,7 @@ tool_bar_items (reuse, nitems) | |||
| 6483 | Lisp_Object tail; | 6483 | Lisp_Object tail; |
| 6484 | 6484 | ||
| 6485 | /* KEYMAP is a list `(keymap (KEY . BINDING) ...)'. */ | 6485 | /* KEYMAP is a list `(keymap (KEY . BINDING) ...)'. */ |
| 6486 | for (tail = keymap; CONSP (tail); tail = XCONS (tail)->cdr) | 6486 | for (tail = keymap; CONSP (tail); tail = XCDR (tail)) |
| 6487 | { | 6487 | { |
| 6488 | Lisp_Object keydef = XCAR (tail); | 6488 | Lisp_Object keydef = XCAR (tail); |
| 6489 | if (CONSP (keydef)) | 6489 | if (CONSP (keydef)) |
| @@ -6823,8 +6823,8 @@ read_char_x_menu_prompt (nmaps, maps, prev_event, used_mouse_menu) | |||
| 6823 | /* If we got to this point via a mouse click, | 6823 | /* If we got to this point via a mouse click, |
| 6824 | use a real menu for mouse selection. */ | 6824 | use a real menu for mouse selection. */ |
| 6825 | if (EVENT_HAS_PARAMETERS (prev_event) | 6825 | if (EVENT_HAS_PARAMETERS (prev_event) |
| 6826 | && !EQ (XCONS (prev_event)->car, Qmenu_bar) | 6826 | && !EQ (XCAR (prev_event), Qmenu_bar) |
| 6827 | && !EQ (XCONS (prev_event)->car, Qtool_bar)) | 6827 | && !EQ (XCAR (prev_event), Qtool_bar)) |
| 6828 | { | 6828 | { |
| 6829 | /* Display the menu and get the selection. */ | 6829 | /* Display the menu and get the selection. */ |
| 6830 | Lisp_Object *realmaps | 6830 | Lisp_Object *realmaps |
| @@ -6842,7 +6842,7 @@ read_char_x_menu_prompt (nmaps, maps, prev_event, used_mouse_menu) | |||
| 6842 | { | 6842 | { |
| 6843 | Lisp_Object tem; | 6843 | Lisp_Object tem; |
| 6844 | 6844 | ||
| 6845 | record_menu_key (XCONS (value)->car); | 6845 | record_menu_key (XCAR (value)); |
| 6846 | 6846 | ||
| 6847 | /* If we got multiple events, unread all but | 6847 | /* If we got multiple events, unread all but |
| 6848 | the first. | 6848 | the first. |
| @@ -6852,22 +6852,22 @@ read_char_x_menu_prompt (nmaps, maps, prev_event, used_mouse_menu) | |||
| 6852 | to indicate that they came from a mouse menu, | 6852 | to indicate that they came from a mouse menu, |
| 6853 | so that when present in last_nonmenu_event | 6853 | so that when present in last_nonmenu_event |
| 6854 | they won't confuse things. */ | 6854 | they won't confuse things. */ |
| 6855 | for (tem = XCONS (value)->cdr; !NILP (tem); | 6855 | for (tem = XCDR (value); !NILP (tem); |
| 6856 | tem = XCONS (tem)->cdr) | 6856 | tem = XCDR (tem)) |
| 6857 | { | 6857 | { |
| 6858 | record_menu_key (XCONS (tem)->car); | 6858 | record_menu_key (XCAR (tem)); |
| 6859 | if (SYMBOLP (XCONS (tem)->car) | 6859 | if (SYMBOLP (XCAR (tem)) |
| 6860 | || INTEGERP (XCONS (tem)->car)) | 6860 | || INTEGERP (XCAR (tem))) |
| 6861 | XCONS (tem)->car | 6861 | XCAR (tem) |
| 6862 | = Fcons (XCONS (tem)->car, Qnil); | 6862 | = Fcons (XCAR (tem), Qnil); |
| 6863 | } | 6863 | } |
| 6864 | 6864 | ||
| 6865 | /* If we got more than one event, put all but the first | 6865 | /* If we got more than one event, put all but the first |
| 6866 | onto this list to be read later. | 6866 | onto this list to be read later. |
| 6867 | Return just the first event now. */ | 6867 | Return just the first event now. */ |
| 6868 | Vunread_command_events | 6868 | Vunread_command_events |
| 6869 | = nconc2 (XCONS (value)->cdr, Vunread_command_events); | 6869 | = nconc2 (XCDR (value), Vunread_command_events); |
| 6870 | value = XCONS (value)->car; | 6870 | value = XCAR (value); |
| 6871 | } | 6871 | } |
| 6872 | else if (NILP (value)) | 6872 | else if (NILP (value)) |
| 6873 | value = Qt; | 6873 | value = Qt; |
| @@ -7550,7 +7550,7 @@ read_key_sequence (keybuf, bufsize, prompt, dont_downcase_last, | |||
| 7550 | /* If the side queue is non-empty, ensure it begins with a | 7550 | /* If the side queue is non-empty, ensure it begins with a |
| 7551 | switch-frame, so we'll replay it in the right context. */ | 7551 | switch-frame, so we'll replay it in the right context. */ |
| 7552 | if (CONSP (interrupted_kboard->kbd_queue) | 7552 | if (CONSP (interrupted_kboard->kbd_queue) |
| 7553 | && (key = XCONS (interrupted_kboard->kbd_queue)->car, | 7553 | && (key = XCAR (interrupted_kboard->kbd_queue), |
| 7554 | !(EVENT_HAS_PARAMETERS (key) | 7554 | !(EVENT_HAS_PARAMETERS (key) |
| 7555 | && EQ (EVENT_HEAD_KIND (EVENT_HEAD (key)), | 7555 | && EQ (EVENT_HEAD_KIND (EVENT_HEAD (key)), |
| 7556 | Qswitch_frame)))) | 7556 | Qswitch_frame)))) |
| @@ -7714,7 +7714,7 @@ read_key_sequence (keybuf, bufsize, prompt, dont_downcase_last, | |||
| 7714 | /* For a mouse click, get the local text-property keymap | 7714 | /* For a mouse click, get the local text-property keymap |
| 7715 | of the place clicked on, rather than point. */ | 7715 | of the place clicked on, rather than point. */ |
| 7716 | if (last_real_key_start == 0 | 7716 | if (last_real_key_start == 0 |
| 7717 | && CONSP (XCONS (key)->cdr) | 7717 | && CONSP (XCDR (key)) |
| 7718 | && ! localized_local_map) | 7718 | && ! localized_local_map) |
| 7719 | { | 7719 | { |
| 7720 | Lisp_Object map_here, start, pos; | 7720 | Lisp_Object map_here, start, pos; |
| @@ -7722,7 +7722,7 @@ read_key_sequence (keybuf, bufsize, prompt, dont_downcase_last, | |||
| 7722 | localized_local_map = 1; | 7722 | localized_local_map = 1; |
| 7723 | start = EVENT_START (key); | 7723 | start = EVENT_START (key); |
| 7724 | 7724 | ||
| 7725 | if (CONSP (start) && CONSP (XCONS (start)->cdr)) | 7725 | if (CONSP (start) && CONSP (XCDR (start))) |
| 7726 | { | 7726 | { |
| 7727 | pos = POSN_BUFFER_POSN (start); | 7727 | pos = POSN_BUFFER_POSN (start); |
| 7728 | if (INTEGERP (pos) | 7728 | if (INTEGERP (pos) |
| @@ -7780,9 +7780,9 @@ read_key_sequence (keybuf, bufsize, prompt, dont_downcase_last, | |||
| 7780 | goto replay_key; | 7780 | goto replay_key; |
| 7781 | } | 7781 | } |
| 7782 | } | 7782 | } |
| 7783 | else if (CONSP (XCONS (key)->cdr) | 7783 | else if (CONSP (XCDR (key)) |
| 7784 | && CONSP (EVENT_START (key)) | 7784 | && CONSP (EVENT_START (key)) |
| 7785 | && CONSP (XCONS (EVENT_START (key))->cdr)) | 7785 | && CONSP (XCDR (EVENT_START (key)))) |
| 7786 | { | 7786 | { |
| 7787 | Lisp_Object posn; | 7787 | Lisp_Object posn; |
| 7788 | 7788 | ||
| @@ -7847,7 +7847,7 @@ read_key_sequence (keybuf, bufsize, prompt, dont_downcase_last, | |||
| 7847 | int modifiers; | 7847 | int modifiers; |
| 7848 | 7848 | ||
| 7849 | breakdown = parse_modifiers (head); | 7849 | breakdown = parse_modifiers (head); |
| 7850 | modifiers = XINT (XCONS (XCONS (breakdown)->cdr)->car); | 7850 | modifiers = XINT (XCAR (XCDR (breakdown))); |
| 7851 | /* Attempt to reduce an unbound mouse event to a simpler | 7851 | /* Attempt to reduce an unbound mouse event to a simpler |
| 7852 | event that is bound: | 7852 | event that is bound: |
| 7853 | Drags reduce to clicks. | 7853 | Drags reduce to clicks. |
| @@ -7916,7 +7916,7 @@ read_key_sequence (keybuf, bufsize, prompt, dont_downcase_last, | |||
| 7916 | } | 7916 | } |
| 7917 | 7917 | ||
| 7918 | new_head | 7918 | new_head |
| 7919 | = apply_modifiers (modifiers, XCONS (breakdown)->car); | 7919 | = apply_modifiers (modifiers, XCAR (breakdown)); |
| 7920 | new_click | 7920 | new_click |
| 7921 | = Fcons (new_head, Fcons (EVENT_START (key), Qnil)); | 7921 | = Fcons (new_head, Fcons (EVENT_START (key), Qnil)); |
| 7922 | 7922 | ||
| @@ -7999,7 +7999,7 @@ read_key_sequence (keybuf, bufsize, prompt, dont_downcase_last, | |||
| 7999 | /* Handle symbol with autoload definition. */ | 7999 | /* Handle symbol with autoload definition. */ |
| 8000 | if (SYMBOLP (fkey_next) && ! NILP (Ffboundp (fkey_next)) | 8000 | if (SYMBOLP (fkey_next) && ! NILP (Ffboundp (fkey_next)) |
| 8001 | && CONSP (XSYMBOL (fkey_next)->function) | 8001 | && CONSP (XSYMBOL (fkey_next)->function) |
| 8002 | && EQ (XCONS (XSYMBOL (fkey_next)->function)->car, Qautoload)) | 8002 | && EQ (XCAR (XSYMBOL (fkey_next)->function), Qautoload)) |
| 8003 | do_autoload (XSYMBOL (fkey_next)->function, | 8003 | do_autoload (XSYMBOL (fkey_next)->function, |
| 8004 | fkey_next); | 8004 | fkey_next); |
| 8005 | 8005 | ||
| @@ -8123,7 +8123,7 @@ read_key_sequence (keybuf, bufsize, prompt, dont_downcase_last, | |||
| 8123 | /* Handle symbol with autoload definition. */ | 8123 | /* Handle symbol with autoload definition. */ |
| 8124 | if (SYMBOLP (keytran_next) && ! NILP (Ffboundp (keytran_next)) | 8124 | if (SYMBOLP (keytran_next) && ! NILP (Ffboundp (keytran_next)) |
| 8125 | && CONSP (XSYMBOL (keytran_next)->function) | 8125 | && CONSP (XSYMBOL (keytran_next)->function) |
| 8126 | && EQ (XCONS (XSYMBOL (keytran_next)->function)->car, Qautoload)) | 8126 | && EQ (XCAR (XSYMBOL (keytran_next)->function), Qautoload)) |
| 8127 | do_autoload (XSYMBOL (keytran_next)->function, | 8127 | do_autoload (XSYMBOL (keytran_next)->function, |
| 8128 | keytran_next); | 8128 | keytran_next); |
| 8129 | 8129 | ||
| @@ -8259,7 +8259,7 @@ read_key_sequence (keybuf, bufsize, prompt, dont_downcase_last, | |||
| 8259 | int modifiers; | 8259 | int modifiers; |
| 8260 | 8260 | ||
| 8261 | breakdown = parse_modifiers (key); | 8261 | breakdown = parse_modifiers (key); |
| 8262 | modifiers = XINT (XCONS (XCONS (breakdown)->cdr)->car); | 8262 | modifiers = XINT (XCAR (XCDR (breakdown))); |
| 8263 | if (modifiers & shift_modifier) | 8263 | if (modifiers & shift_modifier) |
| 8264 | { | 8264 | { |
| 8265 | Lisp_Object new_key; | 8265 | Lisp_Object new_key; |
| @@ -8269,7 +8269,7 @@ read_key_sequence (keybuf, bufsize, prompt, dont_downcase_last, | |||
| 8269 | 8269 | ||
| 8270 | modifiers &= ~shift_modifier; | 8270 | modifiers &= ~shift_modifier; |
| 8271 | new_key = apply_modifiers (modifiers, | 8271 | new_key = apply_modifiers (modifiers, |
| 8272 | XCONS (breakdown)->car); | 8272 | XCAR (breakdown)); |
| 8273 | 8273 | ||
| 8274 | keybuf[t - 1] = new_key; | 8274 | keybuf[t - 1] = new_key; |
| 8275 | mock_input = t; | 8275 | mock_input = t; |
| @@ -8537,7 +8537,7 @@ a special event, so ignore the prefix argument and don't clear it.") | |||
| 8537 | { | 8537 | { |
| 8538 | tem = Fnthcdr (Vhistory_length, Vcommand_history); | 8538 | tem = Fnthcdr (Vhistory_length, Vcommand_history); |
| 8539 | if (CONSP (tem)) | 8539 | if (CONSP (tem)) |
| 8540 | XCONS (tem)->cdr = Qnil; | 8540 | XCDR (tem) = Qnil; |
| 8541 | } | 8541 | } |
| 8542 | } | 8542 | } |
| 8543 | 8543 | ||
| @@ -8580,14 +8580,14 @@ DEFUN ("execute-extended-command", Fexecute_extended_command, Sexecute_extended_ | |||
| 8580 | 8580 | ||
| 8581 | if (EQ (prefixarg, Qminus)) | 8581 | if (EQ (prefixarg, Qminus)) |
| 8582 | strcpy (buf, "- "); | 8582 | strcpy (buf, "- "); |
| 8583 | else if (CONSP (prefixarg) && XINT (XCONS (prefixarg)->car) == 4) | 8583 | else if (CONSP (prefixarg) && XINT (XCAR (prefixarg)) == 4) |
| 8584 | strcpy (buf, "C-u "); | 8584 | strcpy (buf, "C-u "); |
| 8585 | else if (CONSP (prefixarg) && INTEGERP (XCONS (prefixarg)->car)) | 8585 | else if (CONSP (prefixarg) && INTEGERP (XCAR (prefixarg))) |
| 8586 | { | 8586 | { |
| 8587 | if (sizeof (int) == sizeof (EMACS_INT)) | 8587 | if (sizeof (int) == sizeof (EMACS_INT)) |
| 8588 | sprintf (buf, "%d ", XINT (XCONS (prefixarg)->car)); | 8588 | sprintf (buf, "%d ", XINT (XCAR (prefixarg))); |
| 8589 | else if (sizeof (long) == sizeof (EMACS_INT)) | 8589 | else if (sizeof (long) == sizeof (EMACS_INT)) |
| 8590 | sprintf (buf, "%ld ", (long) XINT (XCONS (prefixarg)->car)); | 8590 | sprintf (buf, "%ld ", (long) XINT (XCAR (prefixarg))); |
| 8591 | else | 8591 | else |
| 8592 | abort (); | 8592 | abort (); |
| 8593 | } | 8593 | } |