diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-04-10 20:39:45 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-04-10 20:39:45 -0700 |
commit | 955cbe7b1720f09b2991b7d981147d9cc79d52e3 (patch) | |
tree | 72ce39606c71e4ace0891f2127a7ef4fca32c209 /src/keyboard.h | |
parent | 95c82688bc8063f0be5a04baee5ea2a18f9ddf6b (diff) | |
download | emacs-955cbe7b1720f09b2991b7d981147d9cc79d52e3.tar.gz |
Declare Lisp_Object Q* variables to be 'static' if not exproted.
This makes it easier for human readers (and static analyzers)
to see whether these variables are used from other modules.
* alloc.c, buffer.c, bytecode.c, callint.c, casetab.c, category.c:
* ccl.c, character.c, charset.c, cmds.c, coding.c, composite.c:
* data.c, dbusbind.c, dired.c, editfns.c, eval.c, fileio.c, fns.c:
* font.c, frame.c, fringe.c, ftfont.c, image.c, keyboard.c, keymap.c:
* lread.c, macros.c, minibuf.c, print.c, process.c, search.c:
* sound.c, syntax.c, textprop.c, window.c, xdisp.c, xfaces.c, xfns.c:
* xmenu.c, xselect.c:
Declare Q* vars static if they are not used in other modules.
* ccl.h, character.h, charset.h, coding.h, composite.h, font.h:
* frame.h, intervals.h, keyboard.h, lisp.h, process.h, syntax.h:
Remove decls of unexported vars.
* keyboard.h (EVENT_HEAD_UNMODIFIED): Remove now-unused macro.
Diffstat (limited to 'src/keyboard.h')
-rw-r--r-- | src/keyboard.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/keyboard.h b/src/keyboard.h index 72bb821b2eb..d945de5de20 100644 --- a/src/keyboard.h +++ b/src/keyboard.h @@ -408,15 +408,10 @@ typedef struct _widget_value extern Lisp_Object Qswitch_frame; /* Properties on event heads. */ -extern Lisp_Object Qevent_kind, Qevent_symbol_elements; - -/* Getting an unmodified version of an event head. */ -#define EVENT_HEAD_UNMODIFIED(event_head) \ - (Fcar (Fget ((event_head), Qevent_symbol_elements))) +extern Lisp_Object Qevent_kind; /* The values of Qevent_kind properties. */ -extern Lisp_Object Qfunction_key, Qmouse_click, Qmouse_movement; -extern Lisp_Object Qscroll_bar_movement; +extern Lisp_Object Qmouse_click; extern Lisp_Object Qhelp_echo; @@ -454,9 +449,7 @@ extern Lisp_Object real_this_command; /* Non-nil disable property on a command means do not execute it; call disabled-command-function's value instead. */ -extern Lisp_Object QCbutton, QCtoggle, QCradio, QClabel; - -extern Lisp_Object Qinput_method_function; +extern Lisp_Object QCtoggle, QCradio; /* An event header symbol HEAD may have a property named Qevent_symbol_element_mask, which is of the form (BASE MODIFIERS); |