Mercurial > emacs
changeset 25768:2cd7c31ce982
(Frecursive_edit): Remove unused variable.
(command_loop_1, safe_run_hooks, kbd_buffer_get_event,
timer_check, make_lispy_event, menu_bar_items,
menu_bar_one_keymap, menu_bar_item, parse_menu_item,
parse_tool_bar_item, read_char_x_menu_prompt, read_key_sequence,
kbd_buffer_get_event, make_lispy_event, read_char_x_menu_prompt,
read_key_sequence): Ditto. Fread_key_sequence,
Fread_key_sequence_vector, Fsuspend_emacs): Ditto.
(read_key_sequence) [GOBBLE_FIRST_EVENT]: Put local variables only
used when GOBBLE_FIRST_EVENT is defined in #ifdef
(Fexecute_extended_command): Cast XINT to long for %ld.
(toplevel) [HAVE_UNISTD_H]: Include unistd.h.
(toplevel): Include sys/types.h.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Mon, 20 Sep 1999 00:34:37 +0000 |
parents | 30ffae737755 |
children | 4399d55899d3 |
files | src/keyboard.c |
diffstat | 1 files changed, 21 insertions(+), 29 deletions(-) [+] |
line wrap: on
line diff
--- a/src/keyboard.c Mon Sep 20 00:34:36 1999 +0000 +++ b/src/keyboard.c Mon Sep 20 00:34:37 1999 +0000 @@ -55,6 +55,11 @@ #include "syssignal.h" #include "systty.h" +#include <sys/types.h> +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif + /* This is to get the definitions of the XK_ symbols. */ #ifdef HAVE_X_WINDOWS #include "xterm.h" @@ -878,7 +883,6 @@ () { int count = specpdl_ptr - specpdl; - Lisp_Object val; command_loop_level++; update_mode_lines = 1; @@ -1183,8 +1187,8 @@ Lisp_Object command_loop_1 () { - Lisp_Object cmd, tem; - int lose, lose2; + Lisp_Object cmd; + int lose; int nonundocount; Lisp_Object keybuf[30]; int i; @@ -1614,7 +1618,6 @@ safe_run_hooks (hook) Lisp_Object hook; { - Lisp_Object value; int count = specpdl_ptr - specpdl; specbind (Qinhibit_quit, hook); @@ -2971,7 +2974,6 @@ { register int c; Lisp_Object obj; - EMACS_TIME next_timer_delay; if (noninteractive) { @@ -3418,7 +3420,6 @@ while (CONSP (timers) || CONSP (idle_timers)) { - int triggertime = EMACS_SECS (now); Lisp_Object *vector; Lisp_Object timer, idle_timer; EMACS_TIME timer_time, idle_timer_time; @@ -3530,7 +3531,6 @@ { if (NILP (vector[0])) { - Lisp_Object tem; int was_locked = single_kboard; int count = specpdl_ptr - specpdl; #ifdef HAVE_WINDOW_SYSTEM @@ -4610,7 +4610,6 @@ FRAME_PTR f; Lisp_Object window; Lisp_Object posn; - Lisp_Object head, position; Lisp_Object files; int row, column; @@ -4754,9 +4753,7 @@ if (WINDOWP (window)) { struct window *w = XWINDOW (window); - int hpos, vpos; int wx, wy; - int pos; /* Get window relative coordinates. */ wx = FRAME_TO_WINDOW_PIXEL_X (w, XINT (x)); @@ -5868,7 +5865,6 @@ if (i + 4 > XVECTOR (menu_bar_items_vector)->size) { Lisp_Object tem; - int newsize = 2 * i; tem = Fmake_vector (make_number (2 * i), Qnil); bcopy (XVECTOR (menu_bar_items_vector)->contents, XVECTOR (tem)->contents, i * sizeof (Lisp_Object)); @@ -5895,7 +5891,7 @@ menu_bar_one_keymap (keymap) Lisp_Object keymap; { - Lisp_Object tail, item, table; + Lisp_Object tail, item; menu_bar_one_keymap_changed_items = Qnil; @@ -5983,7 +5979,6 @@ if (i + 4 > XVECTOR (menu_bar_items_vector)->size) { Lisp_Object tem; - int newsize = 2 * i; tem = Fmake_vector (make_number (2 * i), Qnil); bcopy (XVECTOR (menu_bar_items_vector)->contents, XVECTOR (tem)->contents, i * sizeof (Lisp_Object)); @@ -6168,7 +6163,7 @@ else if (EQ (tem, QCkeys)) { tem = XCONS (item)->car; - if (CONSP (tem) || STRINGP (tem) && NILP (cachelist)) + if (CONSP (tem) || (STRINGP (tem) && NILP (cachelist))) XVECTOR (item_properties)->contents[ITEM_PROPERTY_KEYEQ] = tem; } @@ -6303,11 +6298,11 @@ } /* We had a saved key. Is it still bound to the command? */ else if (NILP (tem) - || !EQ (tem, def) - /* If the command is an alias for another - (such as lmenu.el set it up), check if the - original command matches the cached command. */ - && !(SYMBOLP (def) && EQ (tem, XSYMBOL (def)->function))) + || (!EQ (tem, def) + /* If the command is an alias for another + (such as lmenu.el set it up), check if the + original command matches the cached command. */ + && !(SYMBOLP (def) && EQ (tem, XSYMBOL (def)->function)))) chkcache = 1; /* Need to recompute key binding. */ if (chkcache) @@ -6601,7 +6596,6 @@ extern Lisp_Object QCenable, QCvisible, QChelp, QCfilter; extern Lisp_Object QCbutton, QCtoggle, QCradio; int i; - struct gcpro gcpro1; /* Defininition looks like `(tool-bar-item CAPTION BINDING PROPS...)'. Rule out items that aren't lists, don't start with @@ -6799,7 +6793,6 @@ { int mapno; register Lisp_Object name; - Lisp_Object rest, vector; if (used_mouse_menu) *used_mouse_menu = 0; @@ -7358,7 +7351,9 @@ int prev_keytran_start; int prev_keytran_end; +#if defined (GOBBLE_FIRST_EVENT) int junk; +#endif raw_keybuf_count = 0; @@ -7537,8 +7532,6 @@ /* If not, we should actually read a character. */ else { - struct buffer *buf = current_buffer; - { #ifdef MULTI_KBOARD KBOARD *interrupted_kboard = current_kboard; @@ -8392,7 +8385,7 @@ { Lisp_Object keybuf[30]; register int i; - struct gcpro gcpro1, gcpro2; + struct gcpro gcpro1; int count = specpdl_ptr - specpdl; if (!NILP (prompt)) @@ -8437,7 +8430,7 @@ { Lisp_Object keybuf[30]; register int i; - struct gcpro gcpro1, gcpro2; + struct gcpro gcpro1; int count = specpdl_ptr - specpdl; if (!NILP (prompt)) @@ -8596,7 +8589,7 @@ if (sizeof (int) == sizeof (EMACS_INT)) sprintf (buf, "%d ", XINT (XCONS (prefixarg)->car)); else if (sizeof (long) == sizeof (EMACS_INT)) - sprintf (buf, "%ld ", XINT (XCONS (prefixarg)->car)); + sprintf (buf, "%ld ", (long) XINT (XCONS (prefixarg)->car)); else abort (); } @@ -8605,7 +8598,7 @@ if (sizeof (int) == sizeof (EMACS_INT)) sprintf (buf, "%d ", XINT (prefixarg)); else if (sizeof (long) == sizeof (EMACS_INT)) - sprintf (buf, "%ld ", XINT (prefixarg)); + sprintf (buf, "%ld ", (long) XINT (prefixarg)); else abort (); } @@ -8991,11 +8984,10 @@ (stuffstring) Lisp_Object stuffstring; { - Lisp_Object tem; int count = specpdl_ptr - specpdl; int old_height, old_width; int width, height; - struct gcpro gcpro1, gcpro2; + struct gcpro gcpro1; if (!NILP (stuffstring)) CHECK_STRING (stuffstring, 0);