diff options
| author | Paul Eggert | 2011-04-10 20:39:45 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-04-10 20:39:45 -0700 |
| commit | 955cbe7b1720f09b2991b7d981147d9cc79d52e3 (patch) | |
| tree | 72ce39606c71e4ace0891f2127a7ef4fca32c209 /src | |
| parent | 95c82688bc8063f0be5a04baee5ea2a18f9ddf6b (diff) | |
| download | emacs-955cbe7b1720f09b2991b7d981147d9cc79d52e3.tar.gz emacs-955cbe7b1720f09b2991b7d981147d9cc79d52e3.zip | |
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')
| -rw-r--r-- | src/ChangeLog | 16 | ||||
| -rw-r--r-- | src/alloc.c | 5 | ||||
| -rw-r--r-- | src/buffer.c | 23 | ||||
| -rw-r--r-- | src/bytecode.c | 1 | ||||
| -rw-r--r-- | src/callint.c | 9 | ||||
| -rw-r--r-- | src/casetab.c | 2 | ||||
| -rw-r--r-- | src/category.c | 2 | ||||
| -rw-r--r-- | src/ccl.c | 8 | ||||
| -rw-r--r-- | src/ccl.h | 5 | ||||
| -rw-r--r-- | src/character.c | 2 | ||||
| -rw-r--r-- | src/character.h | 2 | ||||
| -rw-r--r-- | src/charset.c | 10 | ||||
| -rw-r--r-- | src/charset.h | 2 | ||||
| -rw-r--r-- | src/cmds.c | 4 | ||||
| -rw-r--r-- | src/coding.c | 35 | ||||
| -rw-r--r-- | src/coding.h | 4 | ||||
| -rw-r--r-- | src/composite.c | 4 | ||||
| -rw-r--r-- | src/composite.h | 2 | ||||
| -rw-r--r-- | src/data.c | 27 | ||||
| -rw-r--r-- | src/dbusbind.c | 58 | ||||
| -rw-r--r-- | src/dired.c | 14 | ||||
| -rw-r--r-- | src/editfns.c | 4 | ||||
| -rw-r--r-- | src/eval.c | 9 | ||||
| -rw-r--r-- | src/fileio.c | 83 | ||||
| -rw-r--r-- | src/fns.c | 16 | ||||
| -rw-r--r-- | src/font.c | 10 | ||||
| -rw-r--r-- | src/font.h | 3 | ||||
| -rw-r--r-- | src/frame.c | 17 | ||||
| -rw-r--r-- | src/frame.h | 3 | ||||
| -rw-r--r-- | src/fringe.c | 6 | ||||
| -rw-r--r-- | src/ftfont.c | 2 | ||||
| -rw-r--r-- | src/image.c | 30 | ||||
| -rw-r--r-- | src/intervals.h | 6 | ||||
| -rw-r--r-- | src/keyboard.c | 93 | ||||
| -rw-r--r-- | src/keyboard.h | 13 | ||||
| -rw-r--r-- | src/keymap.c | 9 | ||||
| -rw-r--r-- | src/lisp.h | 34 | ||||
| -rw-r--r-- | src/lread.c | 25 | ||||
| -rw-r--r-- | src/macros.c | 3 | ||||
| -rw-r--r-- | src/minibuf.c | 28 | ||||
| -rw-r--r-- | src/print.c | 6 | ||||
| -rw-r--r-- | src/process.c | 26 | ||||
| -rw-r--r-- | src/process.h | 3 | ||||
| -rw-r--r-- | src/search.c | 4 | ||||
| -rw-r--r-- | src/sound.c | 6 | ||||
| -rw-r--r-- | src/syntax.c | 3 | ||||
| -rw-r--r-- | src/syntax.h | 2 | ||||
| -rw-r--r-- | src/textprop.c | 11 | ||||
| -rw-r--r-- | src/window.c | 11 | ||||
| -rw-r--r-- | src/xdisp.c | 63 | ||||
| -rw-r--r-- | src/xfaces.c | 57 | ||||
| -rw-r--r-- | src/xfns.c | 8 | ||||
| -rw-r--r-- | src/xmenu.c | 2 | ||||
| -rw-r--r-- | src/xselect.c | 8 |
54 files changed, 441 insertions, 398 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 8d492d1cdf5..0be406a6e7b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,21 @@ | |||
| 1 | 2011-04-11 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-04-11 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | Declare Lisp_Object Q* variables to be 'static' if not exproted. | ||
| 4 | This makes it easier for human readers (and static analyzers) | ||
| 5 | to see whether these variables are used from other modules. | ||
| 6 | * alloc.c, buffer.c, bytecode.c, callint.c, casetab.c, category.c: | ||
| 7 | * ccl.c, character.c, charset.c, cmds.c, coding.c, composite.c: | ||
| 8 | * data.c, dbusbind.c, dired.c, editfns.c, eval.c, fileio.c, fns.c: | ||
| 9 | * font.c, frame.c, fringe.c, ftfont.c, image.c, keyboard.c, keymap.c: | ||
| 10 | * lread.c, macros.c, minibuf.c, print.c, process.c, search.c: | ||
| 11 | * sound.c, syntax.c, textprop.c, window.c, xdisp.c, xfaces.c, xfns.c: | ||
| 12 | * xmenu.c, xselect.c: | ||
| 13 | Declare Q* vars static if they are not used in other modules. | ||
| 14 | * ccl.h, character.h, charset.h, coding.h, composite.h, font.h: | ||
| 15 | * frame.h, intervals.h, keyboard.h, lisp.h, process.h, syntax.h: | ||
| 16 | Remove decls of unexported vars. | ||
| 17 | * keyboard.h (EVENT_HEAD_UNMODIFIED): Remove now-unused macro. | ||
| 18 | |||
| 3 | * lisp.h (DEFINE_FUNC): Make sname 'static'. | 19 | * lisp.h (DEFINE_FUNC): Make sname 'static'. |
| 4 | 20 | ||
| 5 | Make Emacs functions such as Fatom 'static' by default. | 21 | Make Emacs functions such as Fatom 'static' by default. |
diff --git a/src/alloc.c b/src/alloc.c index 1396586ba3e..ad3dfa96cd2 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -264,11 +264,12 @@ static size_t stack_copy_size; | |||
| 264 | 264 | ||
| 265 | static int ignore_warnings; | 265 | static int ignore_warnings; |
| 266 | 266 | ||
| 267 | Lisp_Object Qgc_cons_threshold, Qchar_table_extra_slots; | 267 | static Lisp_Object Qgc_cons_threshold; |
| 268 | Lisp_Object Qchar_table_extra_slots; | ||
| 268 | 269 | ||
| 269 | /* Hook run after GC has finished. */ | 270 | /* Hook run after GC has finished. */ |
| 270 | 271 | ||
| 271 | Lisp_Object Qpost_gc_hook; | 272 | static Lisp_Object Qpost_gc_hook; |
| 272 | 273 | ||
| 273 | static void mark_buffer (Lisp_Object); | 274 | static void mark_buffer (Lisp_Object); |
| 274 | static void mark_terminals (void); | 275 | static void mark_terminals (void); |
diff --git a/src/buffer.c b/src/buffer.c index a88afbb36e6..82913ac20e7 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -113,30 +113,31 @@ static void reset_buffer_local_variables (struct buffer *b, int permanent_too); | |||
| 113 | to prevent lossage due to user rplac'ing this alist or its elements. */ | 113 | to prevent lossage due to user rplac'ing this alist or its elements. */ |
| 114 | Lisp_Object Vbuffer_alist; | 114 | Lisp_Object Vbuffer_alist; |
| 115 | 115 | ||
| 116 | Lisp_Object Qkill_buffer_query_functions; | 116 | static Lisp_Object Qkill_buffer_query_functions; |
| 117 | 117 | ||
| 118 | /* Hook run before changing a major mode. */ | 118 | /* Hook run before changing a major mode. */ |
| 119 | Lisp_Object Qchange_major_mode_hook; | 119 | static Lisp_Object Qchange_major_mode_hook; |
| 120 | 120 | ||
| 121 | Lisp_Object Qfirst_change_hook; | 121 | Lisp_Object Qfirst_change_hook; |
| 122 | Lisp_Object Qbefore_change_functions; | 122 | Lisp_Object Qbefore_change_functions; |
| 123 | Lisp_Object Qafter_change_functions; | 123 | Lisp_Object Qafter_change_functions; |
| 124 | Lisp_Object Qucs_set_table_for_input; | 124 | static Lisp_Object Qucs_set_table_for_input; |
| 125 | 125 | ||
| 126 | Lisp_Object Qfundamental_mode, Qmode_class, Qpermanent_local; | 126 | static Lisp_Object Qfundamental_mode, Qmode_class, Qpermanent_local; |
| 127 | Lisp_Object Qpermanent_local_hook; | 127 | static Lisp_Object Qpermanent_local_hook; |
| 128 | 128 | ||
| 129 | Lisp_Object Qprotected_field; | 129 | static Lisp_Object Qprotected_field; |
| 130 | 130 | ||
| 131 | Lisp_Object QSFundamental; /* A string "Fundamental" */ | 131 | static Lisp_Object QSFundamental; /* A string "Fundamental" */ |
| 132 | 132 | ||
| 133 | Lisp_Object Qkill_buffer_hook; | 133 | static Lisp_Object Qkill_buffer_hook; |
| 134 | 134 | ||
| 135 | Lisp_Object Qget_file_buffer; | 135 | static Lisp_Object Qget_file_buffer; |
| 136 | 136 | ||
| 137 | Lisp_Object Qoverlayp; | 137 | static Lisp_Object Qoverlayp; |
| 138 | 138 | ||
| 139 | Lisp_Object Qpriority, Qevaporate, Qbefore_string, Qafter_string; | 139 | Lisp_Object Qpriority, Qbefore_string, Qafter_string; |
| 140 | static Lisp_Object Qevaporate; | ||
| 140 | 141 | ||
| 141 | Lisp_Object Qmodification_hooks; | 142 | Lisp_Object Qmodification_hooks; |
| 142 | Lisp_Object Qinsert_in_front_hooks; | 143 | Lisp_Object Qinsert_in_front_hooks; |
diff --git a/src/bytecode.c b/src/bytecode.c index b4a5354a0a4..581e16678a6 100644 --- a/src/bytecode.c +++ b/src/bytecode.c | |||
| @@ -80,7 +80,6 @@ Lisp_Object Qbyte_code_meter; | |||
| 80 | 80 | ||
| 81 | 81 | ||
| 82 | Lisp_Object Qbytecode; | 82 | Lisp_Object Qbytecode; |
| 83 | extern Lisp_Object Qand_optional, Qand_rest; | ||
| 84 | 83 | ||
| 85 | /* Byte codes: */ | 84 | /* Byte codes: */ |
| 86 | 85 | ||
diff --git a/src/callint.c b/src/callint.c index 1de1f607878..e491e4e5952 100644 --- a/src/callint.c +++ b/src/callint.c | |||
| @@ -30,14 +30,15 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 30 | 30 | ||
| 31 | Lisp_Object Qminus, Qplus; | 31 | Lisp_Object Qminus, Qplus; |
| 32 | Lisp_Object Qcall_interactively; | 32 | Lisp_Object Qcall_interactively; |
| 33 | Lisp_Object Qcommand_debug_status; | 33 | static Lisp_Object Qcommand_debug_status; |
| 34 | Lisp_Object Qenable_recursive_minibuffers; | 34 | static Lisp_Object Qenable_recursive_minibuffers; |
| 35 | 35 | ||
| 36 | Lisp_Object Qhandle_shift_selection; | 36 | static Lisp_Object Qhandle_shift_selection; |
| 37 | 37 | ||
| 38 | Lisp_Object Qmouse_leave_buffer_hook; | 38 | Lisp_Object Qmouse_leave_buffer_hook; |
| 39 | 39 | ||
| 40 | Lisp_Object Qlist, Qlet, Qletx, Qsave_excursion, Qprogn, Qif, Qwhen; | 40 | static Lisp_Object Qlist, Qlet, Qletx, Qsave_excursion, Qprogn, Qif; |
| 41 | Lisp_Object Qwhen; | ||
| 41 | static Lisp_Object preserved_fns; | 42 | static Lisp_Object preserved_fns; |
| 42 | 43 | ||
| 43 | /* Marker used within call-interactively to refer to point. */ | 44 | /* Marker used within call-interactively to refer to point. */ |
diff --git a/src/casetab.c b/src/casetab.c index 7acefbceba9..691dbc8c08b 100644 --- a/src/casetab.c +++ b/src/casetab.c | |||
| @@ -24,7 +24,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 24 | #include "buffer.h" | 24 | #include "buffer.h" |
| 25 | #include "character.h" | 25 | #include "character.h" |
| 26 | 26 | ||
| 27 | Lisp_Object Qcase_table_p, Qcase_table; | 27 | static Lisp_Object Qcase_table_p, Qcase_table; |
| 28 | Lisp_Object Vascii_downcase_table, Vascii_upcase_table; | 28 | Lisp_Object Vascii_downcase_table, Vascii_upcase_table; |
| 29 | Lisp_Object Vascii_canon_table, Vascii_eqv_table; | 29 | Lisp_Object Vascii_canon_table, Vascii_eqv_table; |
| 30 | 30 | ||
diff --git a/src/category.c b/src/category.c index bba030360c4..5dcc4894f0e 100644 --- a/src/category.c +++ b/src/category.c | |||
| @@ -48,7 +48,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 48 | For the moment, we are not using this feature. */ | 48 | For the moment, we are not using this feature. */ |
| 49 | static int category_table_version; | 49 | static int category_table_version; |
| 50 | 50 | ||
| 51 | Lisp_Object Qcategory_table, Qcategoryp, Qcategorysetp, Qcategory_table_p; | 51 | static Lisp_Object Qcategory_table, Qcategoryp, Qcategorysetp, Qcategory_table_p; |
| 52 | 52 | ||
| 53 | /* Temporary internal variable used in macro CHAR_HAS_CATEGORY. */ | 53 | /* Temporary internal variable used in macro CHAR_HAS_CATEGORY. */ |
| 54 | Lisp_Object _temp_category_set; | 54 | Lisp_Object _temp_category_set; |
| @@ -38,16 +38,16 @@ Lisp_Object Qccl, Qcclp; | |||
| 38 | 38 | ||
| 39 | /* This symbol is a property which associates with ccl program vector. | 39 | /* This symbol is a property which associates with ccl program vector. |
| 40 | Ex: (get 'ccl-big5-encoder 'ccl-program) returns ccl program vector. */ | 40 | Ex: (get 'ccl-big5-encoder 'ccl-program) returns ccl program vector. */ |
| 41 | Lisp_Object Qccl_program; | 41 | static Lisp_Object Qccl_program; |
| 42 | 42 | ||
| 43 | /* These symbols are properties which associate with code conversion | 43 | /* These symbols are properties which associate with code conversion |
| 44 | map and their ID respectively. */ | 44 | map and their ID respectively. */ |
| 45 | Lisp_Object Qcode_conversion_map; | 45 | static Lisp_Object Qcode_conversion_map; |
| 46 | Lisp_Object Qcode_conversion_map_id; | 46 | static Lisp_Object Qcode_conversion_map_id; |
| 47 | 47 | ||
| 48 | /* Symbols of ccl program have this property, a value of the property | 48 | /* Symbols of ccl program have this property, a value of the property |
| 49 | is an index for Vccl_protram_table. */ | 49 | is an index for Vccl_protram_table. */ |
| 50 | Lisp_Object Qccl_program_idx; | 50 | static Lisp_Object Qccl_program_idx; |
| 51 | 51 | ||
| 52 | /* Table of registered CCL programs. Each element is a vector of | 52 | /* Table of registered CCL programs. Each element is a vector of |
| 53 | NAME, CCL_PROG, RESOLVEDP, and UPDATEDP, where NAME (symbol) is the | 53 | NAME, CCL_PROG, RESOLVEDP, and UPDATEDP, where NAME (symbol) is the |
| @@ -105,10 +105,6 @@ extern void ccl_driver (struct ccl_program *, int *, int *, int, int, | |||
| 105 | /* Vector of CCL program names vs corresponding program data. */ | 105 | /* Vector of CCL program names vs corresponding program data. */ |
| 106 | extern Lisp_Object Vccl_program_table; | 106 | extern Lisp_Object Vccl_program_table; |
| 107 | 107 | ||
| 108 | /* Symbols of ccl program have this property, a value of the property | ||
| 109 | is an index for Vccl_protram_table. */ | ||
| 110 | extern Lisp_Object Qccl_program_idx; | ||
| 111 | |||
| 112 | extern Lisp_Object Qccl, Qcclp; | 108 | extern Lisp_Object Qccl, Qcclp; |
| 113 | 109 | ||
| 114 | EXFUN (Fccl_program_p, 1); | 110 | EXFUN (Fccl_program_p, 1); |
| @@ -120,4 +116,3 @@ EXFUN (Fccl_program_p, 1); | |||
| 120 | } while (0); | 116 | } while (0); |
| 121 | 117 | ||
| 122 | #endif /* EMACS_CCL_H */ | 118 | #endif /* EMACS_CCL_H */ |
| 123 | |||
diff --git a/src/character.c b/src/character.c index 636601c7452..e00168c6abc 100644 --- a/src/character.c +++ b/src/character.c | |||
| @@ -50,7 +50,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 50 | 50 | ||
| 51 | Lisp_Object Qcharacterp; | 51 | Lisp_Object Qcharacterp; |
| 52 | 52 | ||
| 53 | Lisp_Object Qauto_fill_chars; | 53 | static Lisp_Object Qauto_fill_chars; |
| 54 | 54 | ||
| 55 | /* Char-table of information about which character to unify to which | 55 | /* Char-table of information about which character to unify to which |
| 56 | Unicode character. Mainly used by the macro MAYBE_UNIFY_CHAR. */ | 56 | Unicode character. Mainly used by the macro MAYBE_UNIFY_CHAR. */ |
diff --git a/src/character.h b/src/character.h index 7a75ac186fa..864882db7f6 100644 --- a/src/character.h +++ b/src/character.h | |||
| @@ -615,7 +615,7 @@ extern EMACS_INT c_string_width (const unsigned char *, EMACS_INT, int, | |||
| 615 | extern EMACS_INT lisp_string_width (Lisp_Object, int, | 615 | extern EMACS_INT lisp_string_width (Lisp_Object, int, |
| 616 | EMACS_INT *, EMACS_INT *); | 616 | EMACS_INT *, EMACS_INT *); |
| 617 | 617 | ||
| 618 | extern Lisp_Object Qcharacterp, Qauto_fill_chars; | 618 | extern Lisp_Object Qcharacterp; |
| 619 | extern Lisp_Object Vchar_unify_table; | 619 | extern Lisp_Object Vchar_unify_table; |
| 620 | extern Lisp_Object string_escape_byte8 (Lisp_Object); | 620 | extern Lisp_Object string_escape_byte8 (Lisp_Object); |
| 621 | 621 | ||
diff --git a/src/charset.c b/src/charset.c index 00206cccf0b..dc91cea2e12 100644 --- a/src/charset.c +++ b/src/charset.c | |||
| @@ -68,10 +68,10 @@ Lisp_Object Qcharsetp; | |||
| 68 | 68 | ||
| 69 | /* Special charset symbols. */ | 69 | /* Special charset symbols. */ |
| 70 | Lisp_Object Qascii; | 70 | Lisp_Object Qascii; |
| 71 | Lisp_Object Qeight_bit; | 71 | static Lisp_Object Qeight_bit; |
| 72 | Lisp_Object Qiso_8859_1; | 72 | static Lisp_Object Qiso_8859_1; |
| 73 | Lisp_Object Qunicode; | 73 | static Lisp_Object Qunicode; |
| 74 | Lisp_Object Qemacs; | 74 | static Lisp_Object Qemacs; |
| 75 | 75 | ||
| 76 | /* The corresponding charsets. */ | 76 | /* The corresponding charsets. */ |
| 77 | int charset_ascii; | 77 | int charset_ascii; |
| @@ -87,7 +87,7 @@ int charset_jisx0208; | |||
| 87 | int charset_ksc5601; | 87 | int charset_ksc5601; |
| 88 | 88 | ||
| 89 | /* Value of charset attribute `charset-iso-plane'. */ | 89 | /* Value of charset attribute `charset-iso-plane'. */ |
| 90 | Lisp_Object Qgl, Qgr; | 90 | static Lisp_Object Qgl, Qgr; |
| 91 | 91 | ||
| 92 | /* Charset of unibyte characters. */ | 92 | /* Charset of unibyte characters. */ |
| 93 | int charset_unibyte; | 93 | int charset_unibyte; |
diff --git a/src/charset.h b/src/charset.h index 8c87ffe6c3d..fef50394e6e 100644 --- a/src/charset.h +++ b/src/charset.h | |||
| @@ -517,7 +517,7 @@ extern int iso_charset_table[ISO_MAX_DIMENSION][ISO_MAX_CHARS][ISO_MAX_FINAL]; | |||
| 517 | 517 | ||
| 518 | extern Lisp_Object Qcharsetp; | 518 | extern Lisp_Object Qcharsetp; |
| 519 | 519 | ||
| 520 | extern Lisp_Object Qascii, Qunicode; | 520 | extern Lisp_Object Qascii; |
| 521 | extern int charset_ascii, charset_eight_bit; | 521 | extern int charset_ascii, charset_eight_bit; |
| 522 | extern int charset_iso_8859_1; | 522 | extern int charset_iso_8859_1; |
| 523 | extern int charset_unicode; | 523 | extern int charset_unicode; |
diff --git a/src/cmds.c b/src/cmds.c index 60318225831..baf14778141 100644 --- a/src/cmds.c +++ b/src/cmds.c | |||
| @@ -31,10 +31,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 31 | #include "dispextern.h" | 31 | #include "dispextern.h" |
| 32 | #include "frame.h" | 32 | #include "frame.h" |
| 33 | 33 | ||
| 34 | Lisp_Object Qkill_forward_chars, Qkill_backward_chars; | 34 | static Lisp_Object Qkill_forward_chars, Qkill_backward_chars; |
| 35 | 35 | ||
| 36 | /* A possible value for a buffer's overwrite-mode variable. */ | 36 | /* A possible value for a buffer's overwrite-mode variable. */ |
| 37 | Lisp_Object Qoverwrite_mode_binary; | 37 | static Lisp_Object Qoverwrite_mode_binary; |
| 38 | 38 | ||
| 39 | static int internal_self_insert (int, EMACS_INT); | 39 | static int internal_self_insert (int, EMACS_INT); |
| 40 | 40 | ||
diff --git a/src/coding.c b/src/coding.c index 13fcb7fb8a5..d2124db73f2 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -300,27 +300,30 @@ encode_coding_XXX (struct coding_system *coding) | |||
| 300 | 300 | ||
| 301 | Lisp_Object Vcoding_system_hash_table; | 301 | Lisp_Object Vcoding_system_hash_table; |
| 302 | 302 | ||
| 303 | Lisp_Object Qcoding_system, Qcoding_aliases, Qeol_type; | 303 | static Lisp_Object Qcoding_system, Qeol_type; |
| 304 | static Lisp_Object Qcoding_aliases; | ||
| 304 | Lisp_Object Qunix, Qdos; | 305 | Lisp_Object Qunix, Qdos; |
| 305 | Lisp_Object Qbuffer_file_coding_system; | 306 | Lisp_Object Qbuffer_file_coding_system; |
| 306 | Lisp_Object Qpost_read_conversion, Qpre_write_conversion; | 307 | static Lisp_Object Qpost_read_conversion, Qpre_write_conversion; |
| 307 | Lisp_Object Qdefault_char; | 308 | static Lisp_Object Qdefault_char; |
| 308 | Lisp_Object Qno_conversion, Qundecided; | 309 | Lisp_Object Qno_conversion, Qundecided; |
| 309 | Lisp_Object Qcharset, Qiso_2022, Qutf_8, Qutf_16, Qshift_jis, Qbig5; | 310 | Lisp_Object Qcharset, Qutf_8; |
| 310 | Lisp_Object Qbig, Qlittle; | 311 | static Lisp_Object Qiso_2022; |
| 311 | Lisp_Object Qcoding_system_history; | 312 | static Lisp_Object Qutf_16, Qshift_jis, Qbig5; |
| 312 | Lisp_Object Qvalid_codes; | 313 | static Lisp_Object Qbig, Qlittle; |
| 313 | Lisp_Object QCcategory, QCmnemonic, QCdefault_char; | 314 | static Lisp_Object Qcoding_system_history; |
| 314 | Lisp_Object QCdecode_translation_table, QCencode_translation_table; | 315 | static Lisp_Object Qvalid_codes; |
| 315 | Lisp_Object QCpost_read_conversion, QCpre_write_conversion; | 316 | static Lisp_Object QCcategory, QCmnemonic, QCdefault_char; |
| 316 | Lisp_Object QCascii_compatible_p; | 317 | static Lisp_Object QCdecode_translation_table, QCencode_translation_table; |
| 318 | static Lisp_Object QCpost_read_conversion, QCpre_write_conversion; | ||
| 319 | static Lisp_Object QCascii_compatible_p; | ||
| 317 | 320 | ||
| 318 | Lisp_Object Qcall_process, Qcall_process_region; | 321 | Lisp_Object Qcall_process, Qcall_process_region; |
| 319 | Lisp_Object Qstart_process, Qopen_network_stream; | 322 | Lisp_Object Qstart_process, Qopen_network_stream; |
| 320 | Lisp_Object Qtarget_idx; | 323 | static Lisp_Object Qtarget_idx; |
| 321 | 324 | ||
| 322 | Lisp_Object Qinsufficient_source, Qinconsistent_eol, Qinvalid_source; | 325 | static Lisp_Object Qinsufficient_source, Qinconsistent_eol, Qinvalid_source; |
| 323 | Lisp_Object Qinterrupted, Qinsufficient_memory; | 326 | static Lisp_Object Qinterrupted, Qinsufficient_memory; |
| 324 | 327 | ||
| 325 | /* If a symbol has this property, evaluate the value to define the | 328 | /* If a symbol has this property, evaluate the value to define the |
| 326 | symbol as a coding system. */ | 329 | symbol as a coding system. */ |
| @@ -351,8 +354,8 @@ struct coding_system safe_terminal_coding; | |||
| 351 | 354 | ||
| 352 | Lisp_Object Qtranslation_table; | 355 | Lisp_Object Qtranslation_table; |
| 353 | Lisp_Object Qtranslation_table_id; | 356 | Lisp_Object Qtranslation_table_id; |
| 354 | Lisp_Object Qtranslation_table_for_decode; | 357 | static Lisp_Object Qtranslation_table_for_decode; |
| 355 | Lisp_Object Qtranslation_table_for_encode; | 358 | static Lisp_Object Qtranslation_table_for_encode; |
| 356 | 359 | ||
| 357 | /* Two special coding systems. */ | 360 | /* Two special coding systems. */ |
| 358 | Lisp_Object Vsjis_coding_system; | 361 | Lisp_Object Vsjis_coding_system; |
diff --git a/src/coding.h b/src/coding.h index 8414a2fe133..ff7fcc7c3ac 100644 --- a/src/coding.h +++ b/src/coding.h | |||
| @@ -757,10 +757,9 @@ extern Lisp_Object preferred_coding_system (void); | |||
| 757 | 757 | ||
| 758 | extern Lisp_Object Qutf_8, Qutf_8_emacs; | 758 | extern Lisp_Object Qutf_8, Qutf_8_emacs; |
| 759 | 759 | ||
| 760 | extern Lisp_Object Qcoding_system, Qeol_type, Qcoding_category_index; | 760 | extern Lisp_Object Qcoding_category_index; |
| 761 | extern Lisp_Object Qcoding_system_p; | 761 | extern Lisp_Object Qcoding_system_p; |
| 762 | extern Lisp_Object Qraw_text, Qemacs_mule, Qno_conversion, Qundecided; | 762 | extern Lisp_Object Qraw_text, Qemacs_mule, Qno_conversion, Qundecided; |
| 763 | extern Lisp_Object Qiso_2022; | ||
| 764 | extern Lisp_Object Qbuffer_file_coding_system; | 763 | extern Lisp_Object Qbuffer_file_coding_system; |
| 765 | 764 | ||
| 766 | extern Lisp_Object Qunix, Qdos, Qmac; | 765 | extern Lisp_Object Qunix, Qdos, Qmac; |
| @@ -789,4 +788,3 @@ extern char emacs_mule_bytes[256]; | |||
| 789 | extern int emacs_mule_string_char (unsigned char *); | 788 | extern int emacs_mule_string_char (unsigned char *); |
| 790 | 789 | ||
| 791 | #endif /* EMACS_CODING_H */ | 790 | #endif /* EMACS_CODING_H */ |
| 792 | |||
diff --git a/src/composite.c b/src/composite.c index 367606f5142..cccc75cc1b9 100644 --- a/src/composite.c +++ b/src/composite.c | |||
| @@ -152,8 +152,8 @@ int n_compositions; | |||
| 152 | COMPOSITION-ID. */ | 152 | COMPOSITION-ID. */ |
| 153 | Lisp_Object composition_hash_table; | 153 | Lisp_Object composition_hash_table; |
| 154 | 154 | ||
| 155 | Lisp_Object Qauto_composed; | 155 | static Lisp_Object Qauto_composed; |
| 156 | Lisp_Object Qauto_composition_function; | 156 | static Lisp_Object Qauto_composition_function; |
| 157 | /* Maximum number of characters to look back for | 157 | /* Maximum number of characters to look back for |
| 158 | auto-compositions. */ | 158 | auto-compositions. */ |
| 159 | #define MAX_AUTO_COMPOSITION_LOOKBACK 3 | 159 | #define MAX_AUTO_COMPOSITION_LOOKBACK 3 |
diff --git a/src/composite.h b/src/composite.h index 1f708e93b8e..5188f981d9c 100644 --- a/src/composite.h +++ b/src/composite.h | |||
| @@ -216,8 +216,6 @@ extern int n_compositions; | |||
| 216 | 216 | ||
| 217 | extern Lisp_Object Qcomposition; | 217 | extern Lisp_Object Qcomposition; |
| 218 | extern Lisp_Object composition_hash_table; | 218 | extern Lisp_Object composition_hash_table; |
| 219 | extern Lisp_Object Qauto_composed; | ||
| 220 | extern Lisp_Object Qauto_composition_function; | ||
| 221 | extern int get_composition_id (EMACS_INT, EMACS_INT, EMACS_INT, | 219 | extern int get_composition_id (EMACS_INT, EMACS_INT, EMACS_INT, |
| 222 | Lisp_Object, Lisp_Object); | 220 | Lisp_Object, Lisp_Object); |
| 223 | extern int find_composition (EMACS_INT, EMACS_INT, EMACS_INT *, EMACS_INT *, | 221 | extern int find_composition (EMACS_INT, EMACS_INT, EMACS_INT *, EMACS_INT *, |
diff --git a/src/data.c b/src/data.c index 25e260c8686..68ceff4d23e 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -52,26 +52,33 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 52 | extern double atof (const char *); | 52 | extern double atof (const char *); |
| 53 | #endif /* !atof */ | 53 | #endif /* !atof */ |
| 54 | 54 | ||
| 55 | Lisp_Object Qnil, Qt, Qquote, Qlambda, Qsubr, Qunbound; | 55 | Lisp_Object Qnil, Qt, Qquote, Qlambda, Qunbound; |
| 56 | static Lisp_Object Qsubr; | ||
| 56 | Lisp_Object Qerror_conditions, Qerror_message, Qtop_level; | 57 | Lisp_Object Qerror_conditions, Qerror_message, Qtop_level; |
| 57 | Lisp_Object Qerror, Qquit, Qwrong_type_argument, Qargs_out_of_range; | 58 | Lisp_Object Qerror, Qquit, Qargs_out_of_range; |
| 58 | Lisp_Object Qvoid_variable, Qvoid_function, Qcyclic_function_indirection; | 59 | static Lisp_Object Qwrong_type_argument; |
| 59 | Lisp_Object Qcyclic_variable_indirection, Qcircular_list; | 60 | Lisp_Object Qvoid_variable, Qvoid_function; |
| 60 | Lisp_Object Qsetting_constant, Qinvalid_read_syntax; | 61 | static Lisp_Object Qcyclic_function_indirection; |
| 62 | static Lisp_Object Qcyclic_variable_indirection; | ||
| 63 | Lisp_Object Qcircular_list; | ||
| 64 | static Lisp_Object Qsetting_constant; | ||
| 65 | Lisp_Object Qinvalid_read_syntax; | ||
| 61 | Lisp_Object Qinvalid_function, Qwrong_number_of_arguments, Qno_catch; | 66 | Lisp_Object Qinvalid_function, Qwrong_number_of_arguments, Qno_catch; |
| 62 | Lisp_Object Qend_of_file, Qarith_error, Qmark_inactive; | 67 | Lisp_Object Qend_of_file, Qarith_error, Qmark_inactive; |
| 63 | Lisp_Object Qbeginning_of_buffer, Qend_of_buffer, Qbuffer_read_only; | 68 | Lisp_Object Qbeginning_of_buffer, Qend_of_buffer, Qbuffer_read_only; |
| 64 | Lisp_Object Qtext_read_only; | 69 | Lisp_Object Qtext_read_only; |
| 65 | 70 | ||
| 66 | Lisp_Object Qintegerp, Qnatnump, Qwholenump, Qsymbolp, Qlistp, Qconsp; | 71 | Lisp_Object Qintegerp, Qwholenump, Qsymbolp, Qlistp, Qconsp; |
| 72 | static Lisp_Object Qnatnump; | ||
| 67 | Lisp_Object Qstringp, Qarrayp, Qsequencep, Qbufferp; | 73 | Lisp_Object Qstringp, Qarrayp, Qsequencep, Qbufferp; |
| 68 | Lisp_Object Qchar_or_string_p, Qmarkerp, Qinteger_or_marker_p, Qvectorp; | 74 | Lisp_Object Qchar_or_string_p, Qmarkerp, Qinteger_or_marker_p, Qvectorp; |
| 69 | Lisp_Object Qbuffer_or_string_p, Qkeywordp; | 75 | Lisp_Object Qbuffer_or_string_p; |
| 70 | Lisp_Object Qboundp, Qfboundp; | 76 | static Lisp_Object Qkeywordp, Qboundp; |
| 77 | Lisp_Object Qfboundp; | ||
| 71 | Lisp_Object Qchar_table_p, Qvector_or_char_table_p; | 78 | Lisp_Object Qchar_table_p, Qvector_or_char_table_p; |
| 72 | 79 | ||
| 73 | Lisp_Object Qcdr; | 80 | Lisp_Object Qcdr; |
| 74 | Lisp_Object Qad_advice_info, Qad_activate_internal; | 81 | static Lisp_Object Qad_advice_info, Qad_activate_internal; |
| 75 | 82 | ||
| 76 | Lisp_Object Qrange_error, Qdomain_error, Qsingularity_error; | 83 | Lisp_Object Qrange_error, Qdomain_error, Qsingularity_error; |
| 77 | Lisp_Object Qoverflow_error, Qunderflow_error; | 84 | Lisp_Object Qoverflow_error, Qunderflow_error; |
| @@ -83,7 +90,7 @@ Lisp_Object Qinteger; | |||
| 83 | static Lisp_Object Qsymbol, Qstring, Qcons, Qmarker, Qoverlay; | 90 | static Lisp_Object Qsymbol, Qstring, Qcons, Qmarker, Qoverlay; |
| 84 | Lisp_Object Qwindow; | 91 | Lisp_Object Qwindow; |
| 85 | static Lisp_Object Qfloat, Qwindow_configuration; | 92 | static Lisp_Object Qfloat, Qwindow_configuration; |
| 86 | Lisp_Object Qprocess; | 93 | static Lisp_Object Qprocess; |
| 87 | static Lisp_Object Qcompiled_function, Qbuffer, Qframe, Qvector; | 94 | static Lisp_Object Qcompiled_function, Qbuffer, Qframe, Qvector; |
| 88 | static Lisp_Object Qchar_table, Qbool_vector, Qhash_table; | 95 | static Lisp_Object Qchar_table, Qbool_vector, Qhash_table; |
| 89 | static Lisp_Object Qsubrp, Qmany, Qunevalled; | 96 | static Lisp_Object Qsubrp, Qmany, Qunevalled; |
diff --git a/src/dbusbind.c b/src/dbusbind.c index 8a6870555d0..b986724d792 100644 --- a/src/dbusbind.c +++ b/src/dbusbind.c | |||
| @@ -30,50 +30,50 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 30 | 30 | ||
| 31 | 31 | ||
| 32 | /* Subroutines. */ | 32 | /* Subroutines. */ |
| 33 | Lisp_Object Qdbus_init_bus; | 33 | static Lisp_Object Qdbus_init_bus; |
| 34 | Lisp_Object Qdbus_close_bus; | 34 | static Lisp_Object Qdbus_close_bus; |
| 35 | Lisp_Object Qdbus_get_unique_name; | 35 | static Lisp_Object Qdbus_get_unique_name; |
| 36 | Lisp_Object Qdbus_call_method; | 36 | static Lisp_Object Qdbus_call_method; |
| 37 | Lisp_Object Qdbus_call_method_asynchronously; | 37 | static Lisp_Object Qdbus_call_method_asynchronously; |
| 38 | Lisp_Object Qdbus_method_return_internal; | 38 | static Lisp_Object Qdbus_method_return_internal; |
| 39 | Lisp_Object Qdbus_method_error_internal; | 39 | static Lisp_Object Qdbus_method_error_internal; |
| 40 | Lisp_Object Qdbus_send_signal; | 40 | static Lisp_Object Qdbus_send_signal; |
| 41 | Lisp_Object Qdbus_register_service; | 41 | static Lisp_Object Qdbus_register_service; |
| 42 | Lisp_Object Qdbus_register_signal; | 42 | static Lisp_Object Qdbus_register_signal; |
| 43 | Lisp_Object Qdbus_register_method; | 43 | static Lisp_Object Qdbus_register_method; |
| 44 | 44 | ||
| 45 | /* D-Bus error symbol. */ | 45 | /* D-Bus error symbol. */ |
| 46 | Lisp_Object Qdbus_error; | 46 | static Lisp_Object Qdbus_error; |
| 47 | 47 | ||
| 48 | /* Lisp symbols of the system and session buses. */ | 48 | /* Lisp symbols of the system and session buses. */ |
| 49 | Lisp_Object QCdbus_system_bus, QCdbus_session_bus; | 49 | static Lisp_Object QCdbus_system_bus, QCdbus_session_bus; |
| 50 | 50 | ||
| 51 | /* Lisp symbol for method call timeout. */ | 51 | /* Lisp symbol for method call timeout. */ |
| 52 | Lisp_Object QCdbus_timeout; | 52 | static Lisp_Object QCdbus_timeout; |
| 53 | 53 | ||
| 54 | /* Lisp symbols for name request flags. */ | 54 | /* Lisp symbols for name request flags. */ |
| 55 | Lisp_Object QCdbus_request_name_allow_replacement; | 55 | static Lisp_Object QCdbus_request_name_allow_replacement; |
| 56 | Lisp_Object QCdbus_request_name_replace_existing; | 56 | static Lisp_Object QCdbus_request_name_replace_existing; |
| 57 | Lisp_Object QCdbus_request_name_do_not_queue; | 57 | static Lisp_Object QCdbus_request_name_do_not_queue; |
| 58 | 58 | ||
| 59 | /* Lisp symbols for name request replies. */ | 59 | /* Lisp symbols for name request replies. */ |
| 60 | Lisp_Object QCdbus_request_name_reply_primary_owner; | 60 | static Lisp_Object QCdbus_request_name_reply_primary_owner; |
| 61 | Lisp_Object QCdbus_request_name_reply_in_queue; | 61 | static Lisp_Object QCdbus_request_name_reply_in_queue; |
| 62 | Lisp_Object QCdbus_request_name_reply_exists; | 62 | static Lisp_Object QCdbus_request_name_reply_exists; |
| 63 | Lisp_Object QCdbus_request_name_reply_already_owner; | 63 | static Lisp_Object QCdbus_request_name_reply_already_owner; |
| 64 | 64 | ||
| 65 | /* Lisp symbols of D-Bus types. */ | 65 | /* Lisp symbols of D-Bus types. */ |
| 66 | Lisp_Object QCdbus_type_byte, QCdbus_type_boolean; | 66 | static Lisp_Object QCdbus_type_byte, QCdbus_type_boolean; |
| 67 | Lisp_Object QCdbus_type_int16, QCdbus_type_uint16; | 67 | static Lisp_Object QCdbus_type_int16, QCdbus_type_uint16; |
| 68 | Lisp_Object QCdbus_type_int32, QCdbus_type_uint32; | 68 | static Lisp_Object QCdbus_type_int32, QCdbus_type_uint32; |
| 69 | Lisp_Object QCdbus_type_int64, QCdbus_type_uint64; | 69 | static Lisp_Object QCdbus_type_int64, QCdbus_type_uint64; |
| 70 | Lisp_Object QCdbus_type_double, QCdbus_type_string; | 70 | static Lisp_Object QCdbus_type_double, QCdbus_type_string; |
| 71 | Lisp_Object QCdbus_type_object_path, QCdbus_type_signature; | 71 | static Lisp_Object QCdbus_type_object_path, QCdbus_type_signature; |
| 72 | #ifdef DBUS_TYPE_UNIX_FD | 72 | #ifdef DBUS_TYPE_UNIX_FD |
| 73 | Lisp_Object QCdbus_type_unix_fd; | 73 | Lisp_Object QCdbus_type_unix_fd; |
| 74 | #endif | 74 | #endif |
| 75 | Lisp_Object QCdbus_type_array, QCdbus_type_variant; | 75 | static Lisp_Object QCdbus_type_array, QCdbus_type_variant; |
| 76 | Lisp_Object QCdbus_type_struct, QCdbus_type_dict_entry; | 76 | static Lisp_Object QCdbus_type_struct, QCdbus_type_dict_entry; |
| 77 | 77 | ||
| 78 | /* Whether we are reading a D-Bus event. */ | 78 | /* Whether we are reading a D-Bus event. */ |
| 79 | int xd_in_read_queued_messages = 0; | 79 | int xd_in_read_queued_messages = 0; |
diff --git a/src/dired.c b/src/dired.c index f5fc1e3a62d..2b0ef275cde 100644 --- a/src/dired.c +++ b/src/dired.c | |||
| @@ -79,12 +79,12 @@ extern struct direct *readdir (DIR *); | |||
| 79 | #include "regex.h" | 79 | #include "regex.h" |
| 80 | #include "blockinput.h" | 80 | #include "blockinput.h" |
| 81 | 81 | ||
| 82 | Lisp_Object Qdirectory_files; | 82 | static Lisp_Object Qdirectory_files; |
| 83 | Lisp_Object Qdirectory_files_and_attributes; | 83 | static Lisp_Object Qdirectory_files_and_attributes; |
| 84 | Lisp_Object Qfile_name_completion; | 84 | static Lisp_Object Qfile_name_completion; |
| 85 | Lisp_Object Qfile_name_all_completions; | 85 | static Lisp_Object Qfile_name_all_completions; |
| 86 | Lisp_Object Qfile_attributes; | 86 | static Lisp_Object Qfile_attributes; |
| 87 | Lisp_Object Qfile_attributes_lessp; | 87 | static Lisp_Object Qfile_attributes_lessp; |
| 88 | 88 | ||
| 89 | static int scmp (const char *, const char *, int); | 89 | static int scmp (const char *, const char *, int); |
| 90 | INFUN (Ffile_attributes, 2); | 90 | INFUN (Ffile_attributes, 2); |
| @@ -439,7 +439,7 @@ These are all file names in directory DIRECTORY which begin with FILE. */) | |||
| 439 | } | 439 | } |
| 440 | 440 | ||
| 441 | static int file_name_completion_stat (Lisp_Object dirname, DIRENTRY *dp, struct stat *st_addr); | 441 | static int file_name_completion_stat (Lisp_Object dirname, DIRENTRY *dp, struct stat *st_addr); |
| 442 | Lisp_Object Qdefault_directory; | 442 | static Lisp_Object Qdefault_directory; |
| 443 | 443 | ||
| 444 | Lisp_Object | 444 | Lisp_Object |
| 445 | file_name_completion (Lisp_Object file, Lisp_Object dirname, int all_flag, int ver_flag, Lisp_Object predicate) | 445 | file_name_completion (Lisp_Object file, Lisp_Object dirname, int all_flag, int ver_flag, Lisp_Object predicate) |
diff --git a/src/editfns.c b/src/editfns.c index 0c34a95b949..afb1e8ebc18 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -107,7 +107,7 @@ static Lisp_Object subst_char_in_region_unwind_1 (Lisp_Object); | |||
| 107 | static void transpose_markers (EMACS_INT, EMACS_INT, EMACS_INT, EMACS_INT, | 107 | static void transpose_markers (EMACS_INT, EMACS_INT, EMACS_INT, EMACS_INT, |
| 108 | EMACS_INT, EMACS_INT, EMACS_INT, EMACS_INT); | 108 | EMACS_INT, EMACS_INT, EMACS_INT, EMACS_INT); |
| 109 | 109 | ||
| 110 | Lisp_Object Qbuffer_access_fontify_functions; | 110 | static Lisp_Object Qbuffer_access_fontify_functions; |
| 111 | INFUN (Fuser_full_name, 1); | 111 | INFUN (Fuser_full_name, 1); |
| 112 | 112 | ||
| 113 | /* Symbol for the text property used to mark fields. */ | 113 | /* Symbol for the text property used to mark fields. */ |
| @@ -116,7 +116,7 @@ Lisp_Object Qfield; | |||
| 116 | 116 | ||
| 117 | /* A special value for Qfield properties. */ | 117 | /* A special value for Qfield properties. */ |
| 118 | 118 | ||
| 119 | Lisp_Object Qboundary; | 119 | static Lisp_Object Qboundary; |
| 120 | 120 | ||
| 121 | 121 | ||
| 122 | void | 122 | void |
diff --git a/src/eval.c b/src/eval.c index d6d62aa4afb..cefdf784faf 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -66,12 +66,13 @@ int gcpro_level; | |||
| 66 | 66 | ||
| 67 | Lisp_Object Qautoload, Qmacro, Qexit, Qinteractive, Qcommandp, Qdefun; | 67 | Lisp_Object Qautoload, Qmacro, Qexit, Qinteractive, Qcommandp, Qdefun; |
| 68 | Lisp_Object Qinhibit_quit; | 68 | Lisp_Object Qinhibit_quit; |
| 69 | Lisp_Object Qand_rest, Qand_optional; | 69 | Lisp_Object Qand_rest; |
| 70 | Lisp_Object Qdebug_on_error; | 70 | static Lisp_Object Qand_optional; |
| 71 | Lisp_Object Qdeclare; | 71 | static Lisp_Object Qdebug_on_error; |
| 72 | static Lisp_Object Qdeclare; | ||
| 72 | Lisp_Object Qinternal_interpreter_environment, Qclosure; | 73 | Lisp_Object Qinternal_interpreter_environment, Qclosure; |
| 73 | 74 | ||
| 74 | Lisp_Object Qdebug; | 75 | static Lisp_Object Qdebug; |
| 75 | 76 | ||
| 76 | /* This holds either the symbol `run-hooks' or nil. | 77 | /* This holds either the symbol `run-hooks' or nil. |
| 77 | It is nil at an early stage of startup, and when Emacs | 78 | It is nil at an early stage of startup, and when Emacs |
diff --git a/src/fileio.c b/src/fileio.c index 5ad8b0a33a1..fb16decaaa3 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -102,20 +102,20 @@ int auto_save_error_occurred; | |||
| 102 | an actual coding system name, but just an indicator to tell | 102 | an actual coding system name, but just an indicator to tell |
| 103 | insert-file-contents to use `emacs-mule' with a special flag for | 103 | insert-file-contents to use `emacs-mule' with a special flag for |
| 104 | auto saving and recovering a file. */ | 104 | auto saving and recovering a file. */ |
| 105 | Lisp_Object Qauto_save_coding; | 105 | static Lisp_Object Qauto_save_coding; |
| 106 | 106 | ||
| 107 | /* Property name of a file name handler, | 107 | /* Property name of a file name handler, |
| 108 | which gives a list of operations it handles.. */ | 108 | which gives a list of operations it handles.. */ |
| 109 | Lisp_Object Qoperations; | 109 | static Lisp_Object Qoperations; |
| 110 | 110 | ||
| 111 | /* Lisp functions for translating file formats */ | 111 | /* Lisp functions for translating file formats */ |
| 112 | Lisp_Object Qformat_decode, Qformat_annotate_function; | 112 | static Lisp_Object Qformat_decode, Qformat_annotate_function; |
| 113 | 113 | ||
| 114 | /* Lisp function for setting buffer-file-coding-system and the | 114 | /* Lisp function for setting buffer-file-coding-system and the |
| 115 | multibyteness of the current buffer after inserting a file. */ | 115 | multibyteness of the current buffer after inserting a file. */ |
| 116 | Lisp_Object Qafter_insert_file_set_coding; | 116 | static Lisp_Object Qafter_insert_file_set_coding; |
| 117 | 117 | ||
| 118 | Lisp_Object Qwrite_region_annotate_functions; | 118 | static Lisp_Object Qwrite_region_annotate_functions; |
| 119 | /* Each time an annotation function changes the buffer, the new buffer | 119 | /* Each time an annotation function changes the buffer, the new buffer |
| 120 | is added here. */ | 120 | is added here. */ |
| 121 | Lisp_Object Vwrite_region_annotation_buffers; | 121 | Lisp_Object Vwrite_region_annotation_buffers; |
| @@ -123,25 +123,26 @@ Lisp_Object Vwrite_region_annotation_buffers; | |||
| 123 | #ifdef HAVE_FSYNC | 123 | #ifdef HAVE_FSYNC |
| 124 | #endif | 124 | #endif |
| 125 | 125 | ||
| 126 | Lisp_Object Qdelete_by_moving_to_trash; | 126 | static Lisp_Object Qdelete_by_moving_to_trash; |
| 127 | 127 | ||
| 128 | /* Lisp function for moving files to trash. */ | 128 | /* Lisp function for moving files to trash. */ |
| 129 | Lisp_Object Qmove_file_to_trash; | 129 | static Lisp_Object Qmove_file_to_trash; |
| 130 | 130 | ||
| 131 | /* Lisp function for recursively copying directories. */ | 131 | /* Lisp function for recursively copying directories. */ |
| 132 | Lisp_Object Qcopy_directory; | 132 | static Lisp_Object Qcopy_directory; |
| 133 | 133 | ||
| 134 | /* Lisp function for recursively deleting directories. */ | 134 | /* Lisp function for recursively deleting directories. */ |
| 135 | Lisp_Object Qdelete_directory; | 135 | static Lisp_Object Qdelete_directory; |
| 136 | 136 | ||
| 137 | #ifdef WINDOWSNT | 137 | #ifdef WINDOWSNT |
| 138 | #endif | 138 | #endif |
| 139 | 139 | ||
| 140 | Lisp_Object Qfile_error, Qfile_already_exists, Qfile_date_error; | 140 | Lisp_Object Qfile_error; |
| 141 | Lisp_Object Qexcl; | 141 | static Lisp_Object Qfile_already_exists, Qfile_date_error; |
| 142 | static Lisp_Object Qexcl; | ||
| 142 | Lisp_Object Qfile_name_history; | 143 | Lisp_Object Qfile_name_history; |
| 143 | 144 | ||
| 144 | Lisp_Object Qcar_less_than_car; | 145 | static Lisp_Object Qcar_less_than_car; |
| 145 | 146 | ||
| 146 | INFUN (Fmake_symbolic_link, 3); | 147 | INFUN (Fmake_symbolic_link, 3); |
| 147 | static int a_write (int, Lisp_Object, int, int, | 148 | static int a_write (int, Lisp_Object, int, int, |
| @@ -205,40 +206,40 @@ restore_point_unwind (Lisp_Object location) | |||
| 205 | } | 206 | } |
| 206 | 207 | ||
| 207 | 208 | ||
| 208 | Lisp_Object Qexpand_file_name; | 209 | static Lisp_Object Qexpand_file_name; |
| 209 | Lisp_Object Qsubstitute_in_file_name; | 210 | static Lisp_Object Qsubstitute_in_file_name; |
| 210 | Lisp_Object Qdirectory_file_name; | 211 | static Lisp_Object Qdirectory_file_name; |
| 211 | Lisp_Object Qfile_name_directory; | 212 | static Lisp_Object Qfile_name_directory; |
| 212 | Lisp_Object Qfile_name_nondirectory; | 213 | static Lisp_Object Qfile_name_nondirectory; |
| 213 | Lisp_Object Qunhandled_file_name_directory; | 214 | static Lisp_Object Qunhandled_file_name_directory; |
| 214 | Lisp_Object Qfile_name_as_directory; | 215 | static Lisp_Object Qfile_name_as_directory; |
| 215 | Lisp_Object Qcopy_file; | 216 | static Lisp_Object Qcopy_file; |
| 216 | Lisp_Object Qmake_directory_internal; | 217 | static Lisp_Object Qmake_directory_internal; |
| 217 | Lisp_Object Qmake_directory; | 218 | static Lisp_Object Qmake_directory; |
| 218 | Lisp_Object Qdelete_directory_internal; | 219 | static Lisp_Object Qdelete_directory_internal; |
| 219 | Lisp_Object Qdelete_file; | 220 | Lisp_Object Qdelete_file; |
| 220 | Lisp_Object Qrename_file; | 221 | static Lisp_Object Qrename_file; |
| 221 | Lisp_Object Qadd_name_to_file; | 222 | static Lisp_Object Qadd_name_to_file; |
| 222 | Lisp_Object Qmake_symbolic_link; | 223 | static Lisp_Object Qmake_symbolic_link; |
| 223 | Lisp_Object Qfile_exists_p; | 224 | Lisp_Object Qfile_exists_p; |
| 224 | Lisp_Object Qfile_executable_p; | 225 | static Lisp_Object Qfile_executable_p; |
| 225 | Lisp_Object Qfile_readable_p; | 226 | static Lisp_Object Qfile_readable_p; |
| 226 | Lisp_Object Qfile_writable_p; | 227 | static Lisp_Object Qfile_writable_p; |
| 227 | Lisp_Object Qfile_symlink_p; | 228 | static Lisp_Object Qfile_symlink_p; |
| 228 | Lisp_Object Qaccess_file; | 229 | static Lisp_Object Qaccess_file; |
| 229 | Lisp_Object Qfile_directory_p; | 230 | Lisp_Object Qfile_directory_p; |
| 230 | Lisp_Object Qfile_regular_p; | 231 | static Lisp_Object Qfile_regular_p; |
| 231 | Lisp_Object Qfile_accessible_directory_p; | 232 | static Lisp_Object Qfile_accessible_directory_p; |
| 232 | Lisp_Object Qfile_modes; | 233 | static Lisp_Object Qfile_modes; |
| 233 | Lisp_Object Qset_file_modes; | 234 | static Lisp_Object Qset_file_modes; |
| 234 | Lisp_Object Qset_file_times; | 235 | static Lisp_Object Qset_file_times; |
| 235 | Lisp_Object Qfile_selinux_context; | 236 | static Lisp_Object Qfile_selinux_context; |
| 236 | Lisp_Object Qset_file_selinux_context; | 237 | static Lisp_Object Qset_file_selinux_context; |
| 237 | Lisp_Object Qfile_newer_than_file_p; | 238 | static Lisp_Object Qfile_newer_than_file_p; |
| 238 | Lisp_Object Qinsert_file_contents; | 239 | Lisp_Object Qinsert_file_contents; |
| 239 | Lisp_Object Qwrite_region; | 240 | Lisp_Object Qwrite_region; |
| 240 | Lisp_Object Qverify_visited_file_modtime; | 241 | static Lisp_Object Qverify_visited_file_modtime; |
| 241 | Lisp_Object Qset_visited_file_modtime; | 242 | static Lisp_Object Qset_visited_file_modtime; |
| 242 | 243 | ||
| 243 | DEFUE ("find-file-name-handler", Ffind_file_name_handler, | 244 | DEFUE ("find-file-name-handler", Ffind_file_name_handler, |
| 244 | Sfind_file_name_handler, 2, 2, 0, | 245 | Sfind_file_name_handler, 2, 2, 0, |
| @@ -49,11 +49,12 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 49 | #define NULL ((POINTER_TYPE *)0) | 49 | #define NULL ((POINTER_TYPE *)0) |
| 50 | #endif | 50 | #endif |
| 51 | 51 | ||
| 52 | Lisp_Object Qstring_lessp, Qprovide, Qrequire; | 52 | Lisp_Object Qstring_lessp; |
| 53 | Lisp_Object Qyes_or_no_p_history; | 53 | static Lisp_Object Qprovide, Qrequire; |
| 54 | static Lisp_Object Qyes_or_no_p_history; | ||
| 54 | Lisp_Object Qcursor_in_echo_area; | 55 | Lisp_Object Qcursor_in_echo_area; |
| 55 | Lisp_Object Qwidget_type; | 56 | static Lisp_Object Qwidget_type; |
| 56 | Lisp_Object Qcodeset, Qdays, Qmonths, Qpaper; | 57 | static Lisp_Object Qcodeset, Qdays, Qmonths, Qpaper; |
| 57 | 58 | ||
| 58 | static int internal_equal (Lisp_Object , Lisp_Object, int, int); | 59 | static int internal_equal (Lisp_Object , Lisp_Object, int, int); |
| 59 | 60 | ||
| @@ -2541,7 +2542,7 @@ advisable. */) | |||
| 2541 | return ret; | 2542 | return ret; |
| 2542 | } | 2543 | } |
| 2543 | 2544 | ||
| 2544 | Lisp_Object Qsubfeatures; | 2545 | static Lisp_Object Qsubfeatures; |
| 2545 | 2546 | ||
| 2546 | DEFUN ("featurep", Ffeaturep, Sfeaturep, 1, 2, 0, | 2547 | DEFUN ("featurep", Ffeaturep, Sfeaturep, 1, 2, 0, |
| 2547 | doc: /* Return t if FEATURE is present in this Emacs. | 2548 | doc: /* Return t if FEATURE is present in this Emacs. |
| @@ -3354,9 +3355,10 @@ struct Lisp_Hash_Table *weak_hash_tables; | |||
| 3354 | 3355 | ||
| 3355 | /* Various symbols. */ | 3356 | /* Various symbols. */ |
| 3356 | 3357 | ||
| 3357 | Lisp_Object Qhash_table_p, Qeq, Qeql, Qequal, Qkey, Qvalue; | 3358 | static Lisp_Object Qhash_table_p, Qkey, Qvalue; |
| 3359 | Lisp_Object Qeq, Qeql, Qequal; | ||
| 3358 | Lisp_Object QCtest, QCsize, QCrehash_size, QCrehash_threshold, QCweakness; | 3360 | Lisp_Object QCtest, QCsize, QCrehash_size, QCrehash_threshold, QCweakness; |
| 3359 | Lisp_Object Qhash_table_test, Qkey_or_value, Qkey_and_value; | 3361 | static Lisp_Object Qhash_table_test, Qkey_or_value, Qkey_and_value; |
| 3360 | 3362 | ||
| 3361 | /* Function prototypes. */ | 3363 | /* Function prototypes. */ |
| 3362 | 3364 | ||
diff --git a/src/font.c b/src/font.c index a31a418e641..91cb0a2d52b 100644 --- a/src/font.c +++ b/src/font.c | |||
| @@ -48,7 +48,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 48 | #include "nsterm.h" | 48 | #include "nsterm.h" |
| 49 | #endif /* HAVE_NS */ | 49 | #endif /* HAVE_NS */ |
| 50 | 50 | ||
| 51 | Lisp_Object Qopentype; | 51 | static Lisp_Object Qopentype; |
| 52 | 52 | ||
| 53 | /* Important character set strings. */ | 53 | /* Important character set strings. */ |
| 54 | Lisp_Object Qascii_0, Qiso8859_1, Qiso10646_1, Qunicode_bmp, Qunicode_sip; | 54 | Lisp_Object Qascii_0, Qiso8859_1, Qiso10646_1, Qunicode_bmp, Qunicode_sip; |
| @@ -125,14 +125,16 @@ Lisp_Object QCfoundry; | |||
| 125 | static Lisp_Object QCadstyle, QCregistry; | 125 | static Lisp_Object QCadstyle, QCregistry; |
| 126 | /* Symbols representing keys of font extra info. */ | 126 | /* Symbols representing keys of font extra info. */ |
| 127 | Lisp_Object QCspacing, QCdpi, QCscalable, QCotf, QClang, QCscript, QCavgwidth; | 127 | Lisp_Object QCspacing, QCdpi, QCscalable, QCotf, QClang, QCscript, QCavgwidth; |
| 128 | Lisp_Object QCantialias, QCfont_entity, QCfc_unknown_spec; | 128 | Lisp_Object QCantialias, QCfont_entity; |
| 129 | static Lisp_Object QCfc_unknown_spec; | ||
| 129 | /* Symbols representing values of font spacing property. */ | 130 | /* Symbols representing values of font spacing property. */ |
| 130 | Lisp_Object Qc, Qm, Qp, Qd; | 131 | static Lisp_Object Qc, Qm, Qd; |
| 132 | Lisp_Object Qp; | ||
| 131 | /* Special ADSTYLE properties to avoid fonts used for Latin | 133 | /* Special ADSTYLE properties to avoid fonts used for Latin |
| 132 | characters; used in xfont.c and ftfont.c. */ | 134 | characters; used in xfont.c and ftfont.c. */ |
| 133 | Lisp_Object Qja, Qko; | 135 | Lisp_Object Qja, Qko; |
| 134 | 136 | ||
| 135 | Lisp_Object QCuser_spec; | 137 | static Lisp_Object QCuser_spec; |
| 136 | 138 | ||
| 137 | /* Alist of font registry symbol and the corresponding charsets | 139 | /* Alist of font registry symbol and the corresponding charsets |
| 138 | information. The information is retrieved from | 140 | information. The information is retrieved from |
diff --git a/src/font.h b/src/font.h index 511a7de3a16..a9b58eb7c76 100644 --- a/src/font.h +++ b/src/font.h | |||
| @@ -239,7 +239,7 @@ enum font_property_index | |||
| 239 | ASET ((font), prop, make_number (font_style_to_value (prop, val, 1))) | 239 | ASET ((font), prop, make_number (font_style_to_value (prop, val, 1))) |
| 240 | 240 | ||
| 241 | extern Lisp_Object QCspacing, QCdpi, QCscalable, QCotf, QClang, QCscript; | 241 | extern Lisp_Object QCspacing, QCdpi, QCscalable, QCotf, QClang, QCscript; |
| 242 | extern Lisp_Object QCavgwidth, QCantialias, QCfont_entity, QCfc_unknown_spec; | 242 | extern Lisp_Object QCavgwidth, QCantialias, QCfont_entity; |
| 243 | extern Lisp_Object Qp; | 243 | extern Lisp_Object Qp; |
| 244 | 244 | ||
| 245 | 245 | ||
| @@ -871,4 +871,3 @@ extern void font_deferred_log (const char *, Lisp_Object, Lisp_Object); | |||
| 871 | #endif /* not FONT_DEBUG */ | 871 | #endif /* not FONT_DEBUG */ |
| 872 | 872 | ||
| 873 | #endif /* not EMACS_FONT_H */ | 873 | #endif /* not EMACS_FONT_H */ |
| 874 | |||
diff --git a/src/frame.c b/src/frame.c index 6e0e9c4ffc0..5493600ce5b 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -69,10 +69,10 @@ Lisp_Object Qonly; | |||
| 69 | Lisp_Object Qx, Qw32, Qmac, Qpc, Qns; | 69 | Lisp_Object Qx, Qw32, Qmac, Qpc, Qns; |
| 70 | Lisp_Object Qvisible; | 70 | Lisp_Object Qvisible; |
| 71 | Lisp_Object Qdisplay_type; | 71 | Lisp_Object Qdisplay_type; |
| 72 | Lisp_Object Qbackground_mode; | 72 | static Lisp_Object Qbackground_mode; |
| 73 | Lisp_Object Qnoelisp; | 73 | Lisp_Object Qnoelisp; |
| 74 | 74 | ||
| 75 | Lisp_Object Qx_frame_parameter; | 75 | static Lisp_Object Qx_frame_parameter; |
| 76 | Lisp_Object Qx_resource_name; | 76 | Lisp_Object Qx_resource_name; |
| 77 | Lisp_Object Qterminal; | 77 | Lisp_Object Qterminal; |
| 78 | Lisp_Object Qterminal_live_p; | 78 | Lisp_Object Qterminal_live_p; |
| @@ -82,7 +82,7 @@ Lisp_Object Qterminal_live_p; | |||
| 82 | Lisp_Object Qauto_raise, Qauto_lower; | 82 | Lisp_Object Qauto_raise, Qauto_lower; |
| 83 | Lisp_Object Qborder_color, Qborder_width; | 83 | Lisp_Object Qborder_color, Qborder_width; |
| 84 | Lisp_Object Qcursor_color, Qcursor_type; | 84 | Lisp_Object Qcursor_color, Qcursor_type; |
| 85 | Lisp_Object Qgeometry; /* Not used */ | 85 | static Lisp_Object Qgeometry; /* Not used */ |
| 86 | Lisp_Object Qheight, Qwidth; | 86 | Lisp_Object Qheight, Qwidth; |
| 87 | Lisp_Object Qleft, Qright; | 87 | Lisp_Object Qleft, Qright; |
| 88 | Lisp_Object Qicon_left, Qicon_top, Qicon_type, Qicon_name; | 88 | Lisp_Object Qicon_left, Qicon_top, Qicon_type, Qicon_name; |
| @@ -95,19 +95,20 @@ Lisp_Object Qvisibility; | |||
| 95 | Lisp_Object Qscroll_bar_foreground, Qscroll_bar_background; | 95 | Lisp_Object Qscroll_bar_foreground, Qscroll_bar_background; |
| 96 | Lisp_Object Qscreen_gamma; | 96 | Lisp_Object Qscreen_gamma; |
| 97 | Lisp_Object Qline_spacing; | 97 | Lisp_Object Qline_spacing; |
| 98 | Lisp_Object Quser_position, Quser_size; | 98 | static Lisp_Object Quser_position, Quser_size; |
| 99 | Lisp_Object Qwait_for_wm; | 99 | Lisp_Object Qwait_for_wm; |
| 100 | Lisp_Object Qwindow_id; | 100 | static Lisp_Object Qwindow_id; |
| 101 | #ifdef HAVE_X_WINDOWS | 101 | #ifdef HAVE_X_WINDOWS |
| 102 | Lisp_Object Qouter_window_id; | 102 | static Lisp_Object Qouter_window_id; |
| 103 | #endif | 103 | #endif |
| 104 | Lisp_Object Qparent_id; | 104 | Lisp_Object Qparent_id; |
| 105 | Lisp_Object Qtitle, Qname; | 105 | Lisp_Object Qtitle, Qname; |
| 106 | Lisp_Object Qexplicit_name; | 106 | static Lisp_Object Qexplicit_name; |
| 107 | Lisp_Object Qunsplittable; | 107 | Lisp_Object Qunsplittable; |
| 108 | Lisp_Object Qmenu_bar_lines, Qtool_bar_lines, Qtool_bar_position; | 108 | Lisp_Object Qmenu_bar_lines, Qtool_bar_lines, Qtool_bar_position; |
| 109 | Lisp_Object Qleft_fringe, Qright_fringe; | 109 | Lisp_Object Qleft_fringe, Qright_fringe; |
| 110 | Lisp_Object Qbuffer_predicate, Qbuffer_list, Qburied_buffer_list; | 110 | Lisp_Object Qbuffer_predicate; |
| 111 | static Lisp_Object Qbuffer_list, Qburied_buffer_list; | ||
| 111 | Lisp_Object Qtty_color_mode; | 112 | Lisp_Object Qtty_color_mode; |
| 112 | Lisp_Object Qtty, Qtty_type; | 113 | Lisp_Object Qtty, Qtty_type; |
| 113 | 114 | ||
diff --git a/src/frame.h b/src/frame.h index 756e121f678..a82de35efb1 100644 --- a/src/frame.h +++ b/src/frame.h | |||
| @@ -1047,7 +1047,7 @@ extern Lisp_Object selected_frame; | |||
| 1047 | 1047 | ||
| 1048 | extern Lisp_Object Qauto_raise, Qauto_lower; | 1048 | extern Lisp_Object Qauto_raise, Qauto_lower; |
| 1049 | extern Lisp_Object Qborder_color, Qborder_width; | 1049 | extern Lisp_Object Qborder_color, Qborder_width; |
| 1050 | extern Lisp_Object Qbuffer_predicate, Qbuffer_list, Qburied_buffer_list; | 1050 | extern Lisp_Object Qbuffer_predicate; |
| 1051 | extern Lisp_Object Qcursor_color, Qcursor_type; | 1051 | extern Lisp_Object Qcursor_color, Qcursor_type; |
| 1052 | extern Lisp_Object Qfont; | 1052 | extern Lisp_Object Qfont; |
| 1053 | extern Lisp_Object Qbackground_color, Qforeground_color; | 1053 | extern Lisp_Object Qbackground_color, Qforeground_color; |
| @@ -1076,7 +1076,6 @@ extern Lisp_Object Qminibuffer, Qmodeline; | |||
| 1076 | extern Lisp_Object Qx, Qw32, Qmac, Qpc, Qns; | 1076 | extern Lisp_Object Qx, Qw32, Qmac, Qpc, Qns; |
| 1077 | extern Lisp_Object Qvisible; | 1077 | extern Lisp_Object Qvisible; |
| 1078 | extern Lisp_Object Qdisplay_type; | 1078 | extern Lisp_Object Qdisplay_type; |
| 1079 | extern Lisp_Object Qbackground_mode; | ||
| 1080 | 1079 | ||
| 1081 | extern Lisp_Object Qx_resource_name; | 1080 | extern Lisp_Object Qx_resource_name; |
| 1082 | 1081 | ||
diff --git a/src/fringe.c b/src/fringe.c index ce75df766ee..281b563c9b7 100644 --- a/src/fringe.c +++ b/src/fringe.c | |||
| @@ -64,9 +64,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 64 | must specify physical bitmap symbols. | 64 | must specify physical bitmap symbols. |
| 65 | */ | 65 | */ |
| 66 | 66 | ||
| 67 | Lisp_Object Qtruncation, Qcontinuation, Qoverlay_arrow; | 67 | static Lisp_Object Qtruncation, Qcontinuation, Qoverlay_arrow; |
| 68 | Lisp_Object Qempty_line, Qtop_bottom; | 68 | static Lisp_Object Qempty_line, Qtop_bottom; |
| 69 | Lisp_Object Qhollow_small; | 69 | static Lisp_Object Qhollow_small; |
| 70 | 70 | ||
| 71 | enum fringe_bitmap_align | 71 | enum fringe_bitmap_align |
| 72 | { | 72 | { |
diff --git a/src/ftfont.c b/src/ftfont.c index 2e66222d268..47425e853da 100644 --- a/src/ftfont.c +++ b/src/ftfont.c | |||
| @@ -39,7 +39,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 39 | #include "ftfont.h" | 39 | #include "ftfont.h" |
| 40 | 40 | ||
| 41 | /* Symbolic type of this font-driver. */ | 41 | /* Symbolic type of this font-driver. */ |
| 42 | Lisp_Object Qfreetype; | 42 | static Lisp_Object Qfreetype; |
| 43 | 43 | ||
| 44 | /* Fontconfig's generic families and their aliases. */ | 44 | /* Fontconfig's generic families and their aliases. */ |
| 45 | static Lisp_Object Qmonospace, Qsans_serif, Qserif, Qmono, Qsans, Qsans__serif; | 45 | static Lisp_Object Qmonospace, Qsans_serif, Qserif, Qmono, Qsans, Qsans__serif; |
diff --git a/src/image.c b/src/image.c index 20ca3cf1d6b..f1c3d5d84f0 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -124,7 +124,7 @@ typedef struct ns_bitmap_record Bitmap_Record; | |||
| 124 | 124 | ||
| 125 | /* The symbol `postscript' identifying images of this type. */ | 125 | /* The symbol `postscript' identifying images of this type. */ |
| 126 | 126 | ||
| 127 | Lisp_Object Qpostscript; | 127 | static Lisp_Object Qpostscript; |
| 128 | 128 | ||
| 129 | static void x_disable_image (struct frame *, struct image *); | 129 | static void x_disable_image (struct frame *, struct image *); |
| 130 | static void x_edge_detection (struct frame *, struct image *, Lisp_Object, | 130 | static void x_edge_detection (struct frame *, struct image *, Lisp_Object, |
| @@ -562,17 +562,21 @@ static Lisp_Object Vimage_type_cache; | |||
| 562 | 562 | ||
| 563 | /* The symbol `xbm' which is used as the type symbol for XBM images. */ | 563 | /* The symbol `xbm' which is used as the type symbol for XBM images. */ |
| 564 | 564 | ||
| 565 | Lisp_Object Qxbm; | 565 | static Lisp_Object Qxbm; |
| 566 | 566 | ||
| 567 | /* Keywords. */ | 567 | /* Keywords. */ |
| 568 | 568 | ||
| 569 | Lisp_Object QCascent, QCmargin, QCrelief, Qcount, Qextension_data; | 569 | Lisp_Object QCascent, QCmargin, QCrelief; |
| 570 | Lisp_Object QCconversion, QCcolor_symbols, QCheuristic_mask; | 570 | static Lisp_Object Qcount, Qextension_data; |
| 571 | Lisp_Object QCindex, QCmatrix, QCcolor_adjustment, QCmask, QCgeometry, QCcrop, QCrotation; | 571 | Lisp_Object QCconversion; |
| 572 | static Lisp_Object QCheuristic_mask; | ||
| 573 | static Lisp_Object QCcolor_symbols; | ||
| 574 | static Lisp_Object QCindex, QCmatrix, QCcolor_adjustment, QCmask, QCgeometry; | ||
| 575 | static Lisp_Object QCcrop, QCrotation; | ||
| 572 | 576 | ||
| 573 | /* Other symbols. */ | 577 | /* Other symbols. */ |
| 574 | 578 | ||
| 575 | Lisp_Object Qlaplace, Qemboss, Qedge_detection, Qheuristic; | 579 | static Lisp_Object Qlaplace, Qemboss, Qedge_detection, Qheuristic; |
| 576 | 580 | ||
| 577 | /* Function prototypes. */ | 581 | /* Function prototypes. */ |
| 578 | 582 | ||
| @@ -3001,7 +3005,7 @@ static int xpm_valid_color_symbols_p (Lisp_Object); | |||
| 3001 | #if defined (HAVE_XPM) || defined (HAVE_NS) | 3005 | #if defined (HAVE_XPM) || defined (HAVE_NS) |
| 3002 | /* The symbol `xpm' identifying XPM-format images. */ | 3006 | /* The symbol `xpm' identifying XPM-format images. */ |
| 3003 | 3007 | ||
| 3004 | Lisp_Object Qxpm; | 3008 | static Lisp_Object Qxpm; |
| 3005 | 3009 | ||
| 3006 | /* Indices of image specification fields in xpm_format, below. */ | 3010 | /* Indices of image specification fields in xpm_format, below. */ |
| 3007 | 3011 | ||
| @@ -4925,7 +4929,7 @@ static int pbm_scan_number (unsigned char **, unsigned char *); | |||
| 4925 | 4929 | ||
| 4926 | /* The symbol `pbm' identifying images of this type. */ | 4930 | /* The symbol `pbm' identifying images of this type. */ |
| 4927 | 4931 | ||
| 4928 | Lisp_Object Qpbm; | 4932 | static Lisp_Object Qpbm; |
| 4929 | 4933 | ||
| 4930 | /* Indices of image specification fields in gs_format, below. */ | 4934 | /* Indices of image specification fields in gs_format, below. */ |
| 4931 | 4935 | ||
| @@ -5342,7 +5346,7 @@ static int png_load (struct frame *f, struct image *img); | |||
| 5342 | 5346 | ||
| 5343 | /* The symbol `png' identifying images of this type. */ | 5347 | /* The symbol `png' identifying images of this type. */ |
| 5344 | 5348 | ||
| 5345 | Lisp_Object Qpng; | 5349 | static Lisp_Object Qpng; |
| 5346 | 5350 | ||
| 5347 | /* Indices of image specification fields in png_format, below. */ | 5351 | /* Indices of image specification fields in png_format, below. */ |
| 5348 | 5352 | ||
| @@ -5956,7 +5960,7 @@ static int jpeg_load (struct frame *f, struct image *img); | |||
| 5956 | 5960 | ||
| 5957 | /* The symbol `jpeg' identifying images of this type. */ | 5961 | /* The symbol `jpeg' identifying images of this type. */ |
| 5958 | 5962 | ||
| 5959 | Lisp_Object Qjpeg; | 5963 | static Lisp_Object Qjpeg; |
| 5960 | 5964 | ||
| 5961 | /* Indices of image specification fields in gs_format, below. */ | 5965 | /* Indices of image specification fields in gs_format, below. */ |
| 5962 | 5966 | ||
| @@ -6505,7 +6509,7 @@ static int tiff_load (struct frame *f, struct image *img); | |||
| 6505 | 6509 | ||
| 6506 | /* The symbol `tiff' identifying images of this type. */ | 6510 | /* The symbol `tiff' identifying images of this type. */ |
| 6507 | 6511 | ||
| 6508 | Lisp_Object Qtiff; | 6512 | static Lisp_Object Qtiff; |
| 6509 | 6513 | ||
| 6510 | /* Indices of image specification fields in tiff_format, below. */ | 6514 | /* Indices of image specification fields in tiff_format, below. */ |
| 6511 | 6515 | ||
| @@ -6933,7 +6937,7 @@ static void gif_clear_image (struct frame *f, struct image *img); | |||
| 6933 | 6937 | ||
| 6934 | /* The symbol `gif' identifying images of this type. */ | 6938 | /* The symbol `gif' identifying images of this type. */ |
| 6935 | 6939 | ||
| 6936 | Lisp_Object Qgif; | 6940 | static Lisp_Object Qgif; |
| 6937 | 6941 | ||
| 6938 | /* Indices of image specification fields in gif_format, below. */ | 6942 | /* Indices of image specification fields in gif_format, below. */ |
| 6939 | 6943 | ||
| @@ -8302,7 +8306,7 @@ static void gs_clear_image (struct frame *f, struct image *img); | |||
| 8302 | 8306 | ||
| 8303 | /* Keyword symbols. */ | 8307 | /* Keyword symbols. */ |
| 8304 | 8308 | ||
| 8305 | Lisp_Object QCloader, QCbounding_box, QCpt_width, QCpt_height; | 8309 | static Lisp_Object QCloader, QCbounding_box, QCpt_width, QCpt_height; |
| 8306 | 8310 | ||
| 8307 | /* Indices of image specification fields in gs_format, below. */ | 8311 | /* Indices of image specification fields in gs_format, below. */ |
| 8308 | 8312 | ||
diff --git a/src/intervals.h b/src/intervals.h index b2d755036ba..3a9ee87b921 100644 --- a/src/intervals.h +++ b/src/intervals.h | |||
| @@ -295,8 +295,6 @@ extern int invisible_p (Lisp_Object, Lisp_Object); | |||
| 295 | /* Declared in textprop.c */ | 295 | /* Declared in textprop.c */ |
| 296 | 296 | ||
| 297 | /* Types of hooks. */ | 297 | /* Types of hooks. */ |
| 298 | extern Lisp_Object Qmouse_left; | ||
| 299 | extern Lisp_Object Qmouse_entered; | ||
| 300 | extern Lisp_Object Qpoint_left; | 298 | extern Lisp_Object Qpoint_left; |
| 301 | extern Lisp_Object Qpoint_entered; | 299 | extern Lisp_Object Qpoint_entered; |
| 302 | extern Lisp_Object Qmodification_hooks; | 300 | extern Lisp_Object Qmodification_hooks; |
| @@ -305,8 +303,8 @@ extern Lisp_Object Qlocal_map; | |||
| 305 | extern Lisp_Object Qkeymap; | 303 | extern Lisp_Object Qkeymap; |
| 306 | 304 | ||
| 307 | /* Visual properties text (including strings) may have. */ | 305 | /* Visual properties text (including strings) may have. */ |
| 308 | extern Lisp_Object Qforeground, Qbackground, Qfont, Qunderline, Qstipple; | 306 | extern Lisp_Object Qfont; |
| 309 | extern Lisp_Object Qinvisible, Qintangible, Qread_only; | 307 | extern Lisp_Object Qinvisible, Qintangible; |
| 310 | 308 | ||
| 311 | /* Sticky properties */ | 309 | /* Sticky properties */ |
| 312 | extern Lisp_Object Qfront_sticky, Qrear_nonsticky; | 310 | extern Lisp_Object Qfront_sticky, Qrear_nonsticky; |
diff --git a/src/keyboard.c b/src/keyboard.c index 97989fc1c15..f4afe000685 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -100,7 +100,8 @@ int single_kboard; | |||
| 100 | 100 | ||
| 101 | /* Non-nil disable property on a command means | 101 | /* Non-nil disable property on a command means |
| 102 | do not execute it; call disabled-command-function's value instead. */ | 102 | do not execute it; call disabled-command-function's value instead. */ |
| 103 | Lisp_Object Qdisabled, Qdisabled_command_function; | 103 | Lisp_Object Qdisabled; |
| 104 | static Lisp_Object Qdisabled_command_function; | ||
| 104 | 105 | ||
| 105 | #define NUM_RECENT_KEYS (300) | 106 | #define NUM_RECENT_KEYS (300) |
| 106 | int recent_keys_index; /* Index for storing next element into recent_keys */ | 107 | int recent_keys_index; /* Index for storing next element into recent_keys */ |
| @@ -231,36 +232,37 @@ Lisp_Object internal_last_event_frame; | |||
| 231 | X Windows wants this for selection ownership. */ | 232 | X Windows wants this for selection ownership. */ |
| 232 | unsigned long last_event_timestamp; | 233 | unsigned long last_event_timestamp; |
| 233 | 234 | ||
| 234 | Lisp_Object Qx_set_selection, QPRIMARY, Qhandle_switch_frame; | 235 | static Lisp_Object Qx_set_selection, Qhandle_switch_frame; |
| 236 | Lisp_Object QPRIMARY; | ||
| 235 | 237 | ||
| 236 | Lisp_Object Qself_insert_command; | 238 | static Lisp_Object Qself_insert_command; |
| 237 | Lisp_Object Qforward_char; | 239 | static Lisp_Object Qforward_char; |
| 238 | Lisp_Object Qbackward_char; | 240 | static Lisp_Object Qbackward_char; |
| 239 | Lisp_Object Qundefined; | 241 | static Lisp_Object Qundefined; |
| 240 | Lisp_Object Qtimer_event_handler; | 242 | static Lisp_Object Qtimer_event_handler; |
| 241 | 243 | ||
| 242 | /* read_key_sequence stores here the command definition of the | 244 | /* read_key_sequence stores here the command definition of the |
| 243 | key sequence that it reads. */ | 245 | key sequence that it reads. */ |
| 244 | Lisp_Object read_key_sequence_cmd; | 246 | Lisp_Object read_key_sequence_cmd; |
| 245 | 247 | ||
| 246 | Lisp_Object Qinput_method_function; | 248 | static Lisp_Object Qinput_method_function; |
| 247 | 249 | ||
| 248 | Lisp_Object Qdeactivate_mark; | 250 | static Lisp_Object Qdeactivate_mark; |
| 249 | 251 | ||
| 250 | Lisp_Object Qrecompute_lucid_menubar, Qactivate_menubar_hook; | 252 | Lisp_Object Qrecompute_lucid_menubar, Qactivate_menubar_hook; |
| 251 | 253 | ||
| 252 | Lisp_Object Qecho_area_clear_hook; | 254 | static Lisp_Object Qecho_area_clear_hook; |
| 253 | 255 | ||
| 254 | /* Hooks to run before and after each command. */ | 256 | /* Hooks to run before and after each command. */ |
| 255 | Lisp_Object Qpre_command_hook; | 257 | static Lisp_Object Qpre_command_hook; |
| 256 | Lisp_Object Qpost_command_hook; | 258 | static Lisp_Object Qpost_command_hook; |
| 257 | 259 | ||
| 258 | Lisp_Object Qdeferred_action_function; | 260 | static Lisp_Object Qdeferred_action_function; |
| 259 | 261 | ||
| 260 | Lisp_Object Qinput_method_exit_on_first_char; | 262 | static Lisp_Object Qinput_method_exit_on_first_char; |
| 261 | Lisp_Object Qinput_method_use_echo_area; | 263 | static Lisp_Object Qinput_method_use_echo_area; |
| 262 | 264 | ||
| 263 | Lisp_Object Qhelp_form_show; | 265 | static Lisp_Object Qhelp_form_show; |
| 264 | 266 | ||
| 265 | /* File in which we write all commands we read. */ | 267 | /* File in which we write all commands we read. */ |
| 266 | FILE *dribble; | 268 | FILE *dribble; |
| @@ -293,42 +295,49 @@ static struct input_event * volatile kbd_store_ptr; | |||
| 293 | at inopportune times. */ | 295 | at inopportune times. */ |
| 294 | 296 | ||
| 295 | /* Symbols to head events. */ | 297 | /* Symbols to head events. */ |
| 296 | Lisp_Object Qmouse_movement; | 298 | static Lisp_Object Qmouse_movement; |
| 297 | Lisp_Object Qscroll_bar_movement; | 299 | static Lisp_Object Qscroll_bar_movement; |
| 298 | Lisp_Object Qswitch_frame; | 300 | Lisp_Object Qswitch_frame; |
| 299 | Lisp_Object Qdelete_frame; | 301 | static Lisp_Object Qdelete_frame; |
| 300 | Lisp_Object Qiconify_frame; | 302 | static Lisp_Object Qiconify_frame; |
| 301 | Lisp_Object Qmake_frame_visible; | 303 | static Lisp_Object Qmake_frame_visible; |
| 302 | Lisp_Object Qselect_window; | 304 | static Lisp_Object Qselect_window; |
| 303 | Lisp_Object Qhelp_echo; | 305 | Lisp_Object Qhelp_echo; |
| 304 | 306 | ||
| 305 | #if defined (HAVE_MOUSE) || defined (HAVE_GPM) | 307 | #if defined (HAVE_MOUSE) || defined (HAVE_GPM) |
| 306 | Lisp_Object Qmouse_fixup_help_message; | 308 | static Lisp_Object Qmouse_fixup_help_message; |
| 307 | #endif | 309 | #endif |
| 308 | 310 | ||
| 309 | /* Symbols to denote kinds of events. */ | 311 | /* Symbols to denote kinds of events. */ |
| 310 | Lisp_Object Qfunction_key; | 312 | static Lisp_Object Qfunction_key; |
| 311 | Lisp_Object Qmouse_click; | 313 | Lisp_Object Qmouse_click; |
| 312 | #if defined (WINDOWSNT) | 314 | #if defined (WINDOWSNT) |
| 313 | Lisp_Object Qlanguage_change; | 315 | Lisp_Object Qlanguage_change; |
| 314 | #endif | 316 | #endif |
| 315 | Lisp_Object Qdrag_n_drop; | 317 | static Lisp_Object Qdrag_n_drop; |
| 316 | Lisp_Object Qsave_session; | 318 | static Lisp_Object Qsave_session; |
| 317 | #ifdef HAVE_DBUS | 319 | #ifdef HAVE_DBUS |
| 318 | Lisp_Object Qdbus_event; | 320 | static Lisp_Object Qdbus_event; |
| 319 | #endif | 321 | #endif |
| 320 | Lisp_Object Qconfig_changed_event; | 322 | static Lisp_Object Qconfig_changed_event; |
| 321 | 323 | ||
| 322 | /* Lisp_Object Qmouse_movement; - also an event header */ | 324 | /* Lisp_Object Qmouse_movement; - also an event header */ |
| 323 | 325 | ||
| 324 | /* Properties of event headers. */ | 326 | /* Properties of event headers. */ |
| 325 | Lisp_Object Qevent_kind; | 327 | Lisp_Object Qevent_kind; |
| 326 | Lisp_Object Qevent_symbol_elements; | 328 | static Lisp_Object Qevent_symbol_elements; |
| 327 | 329 | ||
| 328 | /* menu and tool bar item parts */ | 330 | /* menu and tool bar item parts */ |
| 329 | Lisp_Object Qmenu_enable; | 331 | static Lisp_Object Qmenu_enable; |
| 330 | Lisp_Object QCenable, QCvisible, QChelp, QCfilter, QCkeys, QCkey_sequence; | 332 | static Lisp_Object QCenable, QCvisible, QChelp, QCkeys, QCkey_sequence; |
| 331 | Lisp_Object QCbutton, QCtoggle, QCradio, QClabel, QCvert_only; | 333 | Lisp_Object QCfilter; |
| 334 | |||
| 335 | /* Non-nil disable property on a command means | ||
| 336 | do not execute it; call disabled-command-function's value instead. */ | ||
| 337 | Lisp_Object QCtoggle, QCradio; | ||
| 338 | static Lisp_Object QCbutton, QClabel; | ||
| 339 | |||
| 340 | static Lisp_Object QCvert_only; | ||
| 332 | 341 | ||
| 333 | /* An event header symbol HEAD may have a property named | 342 | /* An event header symbol HEAD may have a property named |
| 334 | Qevent_symbol_element_mask, which is of the form (BASE MODIFIERS); | 343 | Qevent_symbol_element_mask, which is of the form (BASE MODIFIERS); |
| @@ -341,22 +350,22 @@ Lisp_Object Qevent_symbol_element_mask; | |||
| 341 | Qmodifier_cache, which is an alist mapping modifier masks onto | 350 | Qmodifier_cache, which is an alist mapping modifier masks onto |
| 342 | modified versions of BASE. If present, this helps speed up | 351 | modified versions of BASE. If present, this helps speed up |
| 343 | apply_modifiers. */ | 352 | apply_modifiers. */ |
| 344 | Lisp_Object Qmodifier_cache; | 353 | static Lisp_Object Qmodifier_cache; |
| 345 | 354 | ||
| 346 | /* Symbols to use for parts of windows. */ | 355 | /* Symbols to use for parts of windows. */ |
| 347 | Lisp_Object Qmode_line; | 356 | Lisp_Object Qmode_line; |
| 348 | Lisp_Object Qvertical_line; | 357 | Lisp_Object Qvertical_line; |
| 349 | Lisp_Object Qvertical_scroll_bar; | 358 | static Lisp_Object Qvertical_scroll_bar; |
| 350 | Lisp_Object Qmenu_bar; | 359 | Lisp_Object Qmenu_bar; |
| 351 | 360 | ||
| 352 | Lisp_Object recursive_edit_unwind (Lisp_Object buffer), command_loop (void); | 361 | Lisp_Object recursive_edit_unwind (Lisp_Object buffer), command_loop (void); |
| 353 | Lisp_Object Qextended_command_history; | 362 | static Lisp_Object Qextended_command_history; |
| 354 | EMACS_TIME timer_check (void); | 363 | EMACS_TIME timer_check (void); |
| 355 | 364 | ||
| 356 | static void record_menu_key (Lisp_Object c); | 365 | static void record_menu_key (Lisp_Object c); |
| 357 | static int echo_length (void); | 366 | static int echo_length (void); |
| 358 | 367 | ||
| 359 | Lisp_Object Qpolling_period; | 368 | static Lisp_Object Qpolling_period; |
| 360 | 369 | ||
| 361 | /* Incremented whenever a timer is run. */ | 370 | /* Incremented whenever a timer is run. */ |
| 362 | int timers_run; | 371 | int timers_run; |
| @@ -5032,9 +5041,11 @@ static const char *const lispy_drag_n_drop_names[] = | |||
| 5032 | }; | 5041 | }; |
| 5033 | 5042 | ||
| 5034 | /* Scroll bar parts. */ | 5043 | /* Scroll bar parts. */ |
| 5035 | Lisp_Object Qabove_handle, Qhandle, Qbelow_handle; | 5044 | static Lisp_Object Qabove_handle, Qhandle, Qbelow_handle; |
| 5036 | Lisp_Object Qup, Qdown, Qbottom, Qend_scroll; | 5045 | Lisp_Object Qup, Qdown, Qbottom; |
| 5037 | Lisp_Object Qtop, Qratio; | 5046 | static Lisp_Object Qend_scroll; |
| 5047 | Lisp_Object Qtop; | ||
| 5048 | static Lisp_Object Qratio; | ||
| 5038 | 5049 | ||
| 5039 | /* An array of scroll bar parts, indexed by an enum scroll_bar_part value. */ | 5050 | /* An array of scroll bar parts, indexed by an enum scroll_bar_part value. */ |
| 5040 | static Lisp_Object *const scroll_bar_parts[] = { | 5051 | static Lisp_Object *const scroll_bar_parts[] = { |
| @@ -7889,8 +7900,8 @@ static int ntool_bar_items; | |||
| 7889 | 7900 | ||
| 7890 | /* The symbols `:image' and `:rtl'. */ | 7901 | /* The symbols `:image' and `:rtl'. */ |
| 7891 | 7902 | ||
| 7892 | Lisp_Object QCimage; | 7903 | static Lisp_Object QCimage; |
| 7893 | Lisp_Object Qrtl; | 7904 | static Lisp_Object Qrtl; |
| 7894 | 7905 | ||
| 7895 | /* Function prototypes. */ | 7906 | /* Function prototypes. */ |
| 7896 | 7907 | ||
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 | |||
| 408 | extern Lisp_Object Qswitch_frame; | 408 | extern Lisp_Object Qswitch_frame; |
| 409 | 409 | ||
| 410 | /* Properties on event heads. */ | 410 | /* Properties on event heads. */ |
| 411 | extern Lisp_Object Qevent_kind, Qevent_symbol_elements; | 411 | extern Lisp_Object Qevent_kind; |
| 412 | |||
| 413 | /* Getting an unmodified version of an event head. */ | ||
| 414 | #define EVENT_HEAD_UNMODIFIED(event_head) \ | ||
| 415 | (Fcar (Fget ((event_head), Qevent_symbol_elements))) | ||
| 416 | 412 | ||
| 417 | /* The values of Qevent_kind properties. */ | 413 | /* The values of Qevent_kind properties. */ |
| 418 | extern Lisp_Object Qfunction_key, Qmouse_click, Qmouse_movement; | 414 | extern Lisp_Object Qmouse_click; |
| 419 | extern Lisp_Object Qscroll_bar_movement; | ||
| 420 | 415 | ||
| 421 | extern Lisp_Object Qhelp_echo; | 416 | extern Lisp_Object Qhelp_echo; |
| 422 | 417 | ||
| @@ -454,9 +449,7 @@ extern Lisp_Object real_this_command; | |||
| 454 | 449 | ||
| 455 | /* Non-nil disable property on a command means | 450 | /* Non-nil disable property on a command means |
| 456 | do not execute it; call disabled-command-function's value instead. */ | 451 | do not execute it; call disabled-command-function's value instead. */ |
| 457 | extern Lisp_Object QCbutton, QCtoggle, QCradio, QClabel; | 452 | extern Lisp_Object QCtoggle, QCradio; |
| 458 | |||
| 459 | extern Lisp_Object Qinput_method_function; | ||
| 460 | 453 | ||
| 461 | /* An event header symbol HEAD may have a property named | 454 | /* An event header symbol HEAD may have a property named |
| 462 | Qevent_symbol_element_mask, which is of the form (BASE MODIFIERS); | 455 | Qevent_symbol_element_mask, which is of the form (BASE MODIFIERS); |
diff --git a/src/keymap.c b/src/keymap.c index 9adf2898736..741fa4f6dfc 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -56,8 +56,9 @@ Lisp_Object control_x_map; /* The keymap used for globally bound | |||
| 56 | 56 | ||
| 57 | /* keymap used for minibuffers when doing completion */ | 57 | /* keymap used for minibuffers when doing completion */ |
| 58 | /* keymap used for minibuffers when doing completion and require a match */ | 58 | /* keymap used for minibuffers when doing completion and require a match */ |
| 59 | Lisp_Object Qkeymapp, Qkeymap, Qnon_ascii, Qmenu_item, Qremap; | 59 | static Lisp_Object Qkeymapp, Qnon_ascii; |
| 60 | Lisp_Object QCadvertised_binding; | 60 | Lisp_Object Qkeymap, Qmenu_item, Qremap; |
| 61 | static Lisp_Object QCadvertised_binding; | ||
| 61 | 62 | ||
| 62 | /* Alist of elements like (DEL . "\d"). */ | 63 | /* Alist of elements like (DEL . "\d"). */ |
| 63 | static Lisp_Object exclude_keys; | 64 | static Lisp_Object exclude_keys; |
| @@ -659,7 +660,7 @@ map_keymap (Lisp_Object map, map_keymap_function_t fun, Lisp_Object args, void * | |||
| 659 | UNGCPRO; | 660 | UNGCPRO; |
| 660 | } | 661 | } |
| 661 | 662 | ||
| 662 | Lisp_Object Qkeymap_canonicalize; | 663 | static Lisp_Object Qkeymap_canonicalize; |
| 663 | 664 | ||
| 664 | /* Same as map_keymap, but does it right, properly eliminating duplicate | 665 | /* Same as map_keymap, but does it right, properly eliminating duplicate |
| 665 | bindings due to inheritance. */ | 666 | bindings due to inheritance. */ |
| @@ -2175,7 +2176,7 @@ then the value includes only maps for prefixes that start with PREFIX. */) | |||
| 2175 | } | 2176 | } |
| 2176 | return maps; | 2177 | return maps; |
| 2177 | } | 2178 | } |
| 2178 | Lisp_Object Qsingle_key_description, Qkey_description; | 2179 | static Lisp_Object Qsingle_key_description, Qkey_description; |
| 2179 | 2180 | ||
| 2180 | /* This function cannot GC. */ | 2181 | /* This function cannot GC. */ |
| 2181 | 2182 | ||
diff --git a/src/lisp.h b/src/lisp.h index 10fc66f4406..fb44002b6a6 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -2291,22 +2291,22 @@ struct window; | |||
| 2291 | struct frame; | 2291 | struct frame; |
| 2292 | 2292 | ||
| 2293 | /* Defined in data.c. */ | 2293 | /* Defined in data.c. */ |
| 2294 | extern Lisp_Object Qnil, Qt, Qquote, Qlambda, Qsubr, Qunbound; | 2294 | extern Lisp_Object Qnil, Qt, Qquote, Qlambda, Qunbound; |
| 2295 | extern Lisp_Object Qerror_conditions, Qerror_message, Qtop_level; | 2295 | extern Lisp_Object Qerror_conditions, Qerror_message, Qtop_level; |
| 2296 | extern Lisp_Object Qerror, Qquit, Qwrong_type_argument, Qargs_out_of_range; | 2296 | extern Lisp_Object Qerror, Qquit, Qargs_out_of_range; |
| 2297 | extern Lisp_Object Qvoid_variable, Qvoid_function; | 2297 | extern Lisp_Object Qvoid_variable, Qvoid_function; |
| 2298 | extern Lisp_Object Qsetting_constant, Qinvalid_read_syntax; | 2298 | extern Lisp_Object Qinvalid_read_syntax; |
| 2299 | extern Lisp_Object Qinvalid_function, Qwrong_number_of_arguments, Qno_catch; | 2299 | extern Lisp_Object Qinvalid_function, Qwrong_number_of_arguments, Qno_catch; |
| 2300 | extern Lisp_Object Qend_of_file, Qarith_error, Qmark_inactive; | 2300 | extern Lisp_Object Qend_of_file, Qarith_error, Qmark_inactive; |
| 2301 | extern Lisp_Object Qbeginning_of_buffer, Qend_of_buffer, Qbuffer_read_only; | 2301 | extern Lisp_Object Qbeginning_of_buffer, Qend_of_buffer, Qbuffer_read_only; |
| 2302 | extern Lisp_Object Qtext_read_only; | 2302 | extern Lisp_Object Qtext_read_only; |
| 2303 | extern Lisp_Object Qinteractive_form; | 2303 | extern Lisp_Object Qinteractive_form; |
| 2304 | extern Lisp_Object Qcircular_list; | 2304 | extern Lisp_Object Qcircular_list; |
| 2305 | extern Lisp_Object Qintegerp, Qnatnump, Qwholenump, Qsymbolp, Qlistp, Qconsp; | 2305 | extern Lisp_Object Qintegerp, Qwholenump, Qsymbolp, Qlistp, Qconsp; |
| 2306 | extern Lisp_Object Qstringp, Qarrayp, Qsequencep, Qbufferp; | 2306 | extern Lisp_Object Qstringp, Qarrayp, Qsequencep, Qbufferp; |
| 2307 | extern Lisp_Object Qchar_or_string_p, Qmarkerp, Qinteger_or_marker_p, Qvectorp; | 2307 | extern Lisp_Object Qchar_or_string_p, Qmarkerp, Qinteger_or_marker_p, Qvectorp; |
| 2308 | extern Lisp_Object Qbuffer_or_string_p; | 2308 | extern Lisp_Object Qbuffer_or_string_p; |
| 2309 | extern Lisp_Object Qboundp, Qfboundp; | 2309 | extern Lisp_Object Qfboundp; |
| 2310 | extern Lisp_Object Qchar_table_p, Qvector_or_char_table_p; | 2310 | extern Lisp_Object Qchar_table_p, Qvector_or_char_table_p; |
| 2311 | 2311 | ||
| 2312 | extern Lisp_Object Qcdr; | 2312 | extern Lisp_Object Qcdr; |
| @@ -2530,9 +2530,8 @@ extern void init_fringe_once (void); | |||
| 2530 | #endif /* HAVE_WINDOW_SYSTEM */ | 2530 | #endif /* HAVE_WINDOW_SYSTEM */ |
| 2531 | 2531 | ||
| 2532 | /* Defined in image.c */ | 2532 | /* Defined in image.c */ |
| 2533 | extern Lisp_Object QCascent, QCmargin, QCrelief, Qcount, Qextension_data; | 2533 | extern Lisp_Object QCascent, QCmargin, QCrelief; |
| 2534 | extern Lisp_Object QCconversion, QCcolor_symbols, QCheuristic_mask; | 2534 | extern Lisp_Object QCconversion; |
| 2535 | extern Lisp_Object QCindex, QCmatrix, QCcolor_adjustment, QCmask; | ||
| 2536 | extern int x_bitmap_mask (struct frame *, int); | 2535 | extern int x_bitmap_mask (struct frame *, int); |
| 2537 | extern void syms_of_image (void); | 2536 | extern void syms_of_image (void); |
| 2538 | extern void init_image (void); | 2537 | extern void init_image (void); |
| @@ -2602,8 +2601,6 @@ extern void syms_of_display (void); | |||
| 2602 | /* Defined in xdisp.c */ | 2601 | /* Defined in xdisp.c */ |
| 2603 | extern Lisp_Object Qinhibit_point_motion_hooks; | 2602 | extern Lisp_Object Qinhibit_point_motion_hooks; |
| 2604 | extern Lisp_Object Qinhibit_redisplay, Qdisplay; | 2603 | extern Lisp_Object Qinhibit_redisplay, Qdisplay; |
| 2605 | extern Lisp_Object Qinhibit_eval_during_redisplay; | ||
| 2606 | extern Lisp_Object Qmessage_truncate_lines; | ||
| 2607 | extern Lisp_Object Qmenu_bar_update_hook; | 2604 | extern Lisp_Object Qmenu_bar_update_hook; |
| 2608 | extern Lisp_Object Qwindow_scroll_functions; | 2605 | extern Lisp_Object Qwindow_scroll_functions; |
| 2609 | extern Lisp_Object Qoverriding_local_map, Qoverriding_terminal_local_map; | 2606 | extern Lisp_Object Qoverriding_local_map, Qoverriding_terminal_local_map; |
| @@ -2821,6 +2818,7 @@ extern void syms_of_lread (void); | |||
| 2821 | /* Defined in eval.c. */ | 2818 | /* Defined in eval.c. */ |
| 2822 | extern Lisp_Object Qautoload, Qexit, Qinteractive, Qcommandp, Qdefun, Qmacro; | 2819 | extern Lisp_Object Qautoload, Qexit, Qinteractive, Qcommandp, Qdefun, Qmacro; |
| 2823 | extern Lisp_Object Qinhibit_quit, Qclosure; | 2820 | extern Lisp_Object Qinhibit_quit, Qclosure; |
| 2821 | extern Lisp_Object Qand_rest; | ||
| 2824 | extern Lisp_Object Vautoload_queue; | 2822 | extern Lisp_Object Vautoload_queue; |
| 2825 | extern Lisp_Object Vsignaling_function; | 2823 | extern Lisp_Object Vsignaling_function; |
| 2826 | extern int handling_signal; | 2824 | extern int handling_signal; |
| @@ -2963,8 +2961,7 @@ EXFUN (Fkill_buffer, 1); | |||
| 2963 | EXFUN (Fkill_all_local_variables, 0); | 2961 | EXFUN (Fkill_all_local_variables, 0); |
| 2964 | EXFUN (Fbuffer_enable_undo, 1); | 2962 | EXFUN (Fbuffer_enable_undo, 1); |
| 2965 | EXFUN (Ferase_buffer, 0); | 2963 | EXFUN (Ferase_buffer, 0); |
| 2966 | extern Lisp_Object Qoverlayp; | 2964 | extern Lisp_Object Qpriority, Qwindow, Qbefore_string, Qafter_string; |
| 2967 | extern Lisp_Object Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string; | ||
| 2968 | extern Lisp_Object get_truename_buffer (Lisp_Object); | 2965 | extern Lisp_Object get_truename_buffer (Lisp_Object); |
| 2969 | extern struct buffer *all_buffers; | 2966 | extern struct buffer *all_buffers; |
| 2970 | EXFUN (Fprevious_overlay_change, 1); | 2967 | EXFUN (Fprevious_overlay_change, 1); |
| @@ -3111,16 +3108,14 @@ extern Lisp_Object echo_message_buffer; | |||
| 3111 | extern struct kboard *echo_kboard; | 3108 | extern struct kboard *echo_kboard; |
| 3112 | extern void cancel_echoing (void); | 3109 | extern void cancel_echoing (void); |
| 3113 | extern Lisp_Object Qdisabled, QCfilter; | 3110 | extern Lisp_Object Qdisabled, QCfilter; |
| 3114 | extern Lisp_Object Qabove_handle, Qhandle, Qbelow_handle; | 3111 | extern Lisp_Object Qup, Qdown, Qbottom; |
| 3115 | extern Lisp_Object Qup, Qdown, Qbottom, Qend_scroll; | 3112 | extern Lisp_Object Qtop; |
| 3116 | extern Lisp_Object Qtop, Qratio; | ||
| 3117 | extern int input_pending; | 3113 | extern int input_pending; |
| 3118 | EXFUN (Fdiscard_input, 0); | 3114 | EXFUN (Fdiscard_input, 0); |
| 3119 | EXFUN (Frecursive_edit, 0); | 3115 | EXFUN (Frecursive_edit, 0); |
| 3120 | EXFUN (Ftop_level, 0) NO_RETURN; | 3116 | EXFUN (Ftop_level, 0) NO_RETURN; |
| 3121 | extern Lisp_Object menu_bar_items (Lisp_Object); | 3117 | extern Lisp_Object menu_bar_items (Lisp_Object); |
| 3122 | extern Lisp_Object tool_bar_items (Lisp_Object, int *); | 3118 | extern Lisp_Object tool_bar_items (Lisp_Object, int *); |
| 3123 | extern Lisp_Object Qvertical_scroll_bar; | ||
| 3124 | extern void discard_mouse_events (void); | 3119 | extern void discard_mouse_events (void); |
| 3125 | EXFUN (Fevent_convert_list, 1); | 3120 | EXFUN (Fevent_convert_list, 1); |
| 3126 | EXFUN (Fread_key_sequence, 5); | 3121 | EXFUN (Fread_key_sequence, 5); |
| @@ -3223,7 +3218,6 @@ EXFUN (Fget_buffer_process, 1); | |||
| 3223 | EXFUN (Fprocess_status, 1); | 3218 | EXFUN (Fprocess_status, 1); |
| 3224 | EXFUN (Fkill_process, 2); | 3219 | EXFUN (Fkill_process, 2); |
| 3225 | EXFUN (Fwaiting_for_user_input_p, 0); | 3220 | EXFUN (Fwaiting_for_user_input_p, 0); |
| 3226 | extern Lisp_Object Qprocessp; | ||
| 3227 | extern void kill_buffer_processes (Lisp_Object); | 3221 | extern void kill_buffer_processes (Lisp_Object); |
| 3228 | extern int wait_reading_process_output (int, int, int, int, | 3222 | extern int wait_reading_process_output (int, int, int, int, |
| 3229 | Lisp_Object, | 3223 | Lisp_Object, |
| @@ -3411,9 +3405,9 @@ EXFUN (Fx_focus_frame, 1); | |||
| 3411 | #endif | 3405 | #endif |
| 3412 | 3406 | ||
| 3413 | /* Defined in xfaces.c */ | 3407 | /* Defined in xfaces.c */ |
| 3414 | extern Lisp_Object Qdefault, Qtool_bar, Qregion, Qfringe; | 3408 | extern Lisp_Object Qdefault, Qtool_bar, Qfringe; |
| 3415 | extern Lisp_Object Qheader_line, Qscroll_bar, Qcursor, Qborder, Qmouse, Qmenu; | 3409 | extern Lisp_Object Qheader_line, Qscroll_bar, Qcursor; |
| 3416 | extern Lisp_Object Qmode_line_inactive, Qvertical_border; | 3410 | extern Lisp_Object Qmode_line_inactive; |
| 3417 | extern Lisp_Object Qface; | 3411 | extern Lisp_Object Qface; |
| 3418 | extern Lisp_Object Qnormal; | 3412 | extern Lisp_Object Qnormal; |
| 3419 | extern Lisp_Object QCfamily, QCweight, QCslant; | 3413 | extern Lisp_Object QCfamily, QCweight, QCslant; |
diff --git a/src/lread.c b/src/lread.c index 7d12f5a85d3..2d383350ec1 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -61,20 +61,21 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 61 | #endif | 61 | #endif |
| 62 | 62 | ||
| 63 | /* hash table read constants */ | 63 | /* hash table read constants */ |
| 64 | Lisp_Object Qhash_table, Qdata; | 64 | static Lisp_Object Qhash_table, Qdata; |
| 65 | Lisp_Object Qtest, Qsize; | 65 | static Lisp_Object Qtest, Qsize; |
| 66 | Lisp_Object Qweakness; | 66 | static Lisp_Object Qweakness; |
| 67 | Lisp_Object Qrehash_size; | 67 | static Lisp_Object Qrehash_size; |
| 68 | Lisp_Object Qrehash_threshold; | 68 | static Lisp_Object Qrehash_threshold; |
| 69 | 69 | ||
| 70 | Lisp_Object Qread_char, Qget_file_char, Qstandard_input, Qcurrent_load_list; | 70 | static Lisp_Object Qread_char, Qget_file_char, Qcurrent_load_list; |
| 71 | Lisp_Object Qstandard_input; | ||
| 71 | Lisp_Object Qvariable_documentation; | 72 | Lisp_Object Qvariable_documentation; |
| 72 | Lisp_Object Qascii_character, Qload, Qload_file_name; | 73 | static Lisp_Object Qascii_character, Qload, Qload_file_name; |
| 73 | Lisp_Object Qbackquote, Qcomma, Qcomma_at, Qcomma_dot, Qfunction; | 74 | Lisp_Object Qbackquote, Qcomma, Qcomma_at, Qcomma_dot, Qfunction; |
| 74 | Lisp_Object Qinhibit_file_name_operation; | 75 | static Lisp_Object Qinhibit_file_name_operation; |
| 75 | Lisp_Object Qeval_buffer_list; | 76 | static Lisp_Object Qeval_buffer_list; |
| 76 | Lisp_Object Qlexical_binding; | 77 | static Lisp_Object Qlexical_binding; |
| 77 | Lisp_Object Qfile_truename, Qdo_after_load_evaluation; /* ACM 2006/5/16 */ | 78 | static Lisp_Object Qfile_truename, Qdo_after_load_evaluation; /* ACM 2006/5/16 */ |
| 78 | 79 | ||
| 79 | /* Used instead of Qget_file_char while loading *.elc files compiled | 80 | /* Used instead of Qget_file_char while loading *.elc files compiled |
| 80 | by Emacs 21 or older. */ | 81 | by Emacs 21 or older. */ |
diff --git a/src/macros.c b/src/macros.c index fd771b52dee..e5de4a14136 100644 --- a/src/macros.c +++ b/src/macros.c | |||
| @@ -27,7 +27,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 27 | #include "window.h" | 27 | #include "window.h" |
| 28 | #include "keyboard.h" | 28 | #include "keyboard.h" |
| 29 | 29 | ||
| 30 | Lisp_Object Qexecute_kbd_macro, Qkbd_macro_termination_hook; | 30 | Lisp_Object Qexecute_kbd_macro; |
| 31 | static Lisp_Object Qkbd_macro_termination_hook; | ||
| 31 | 32 | ||
| 32 | /* Number of successful iterations so far | 33 | /* Number of successful iterations so far |
| 33 | for innermost keyboard macro. | 34 | for innermost keyboard macro. |
diff --git a/src/minibuf.c b/src/minibuf.c index 3e8fc0c2424..ae4372746bc 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -53,35 +53,35 @@ int minibuf_level; | |||
| 53 | 53 | ||
| 54 | /* The maximum length of a minibuffer history. */ | 54 | /* The maximum length of a minibuffer history. */ |
| 55 | 55 | ||
| 56 | Lisp_Object Qhistory_length; | 56 | static Lisp_Object Qhistory_length; |
| 57 | 57 | ||
| 58 | /* Fread_minibuffer leaves the input here as a string. */ | 58 | /* Fread_minibuffer leaves the input here as a string. */ |
| 59 | 59 | ||
| 60 | Lisp_Object last_minibuf_string; | 60 | Lisp_Object last_minibuf_string; |
| 61 | 61 | ||
| 62 | Lisp_Object Qminibuffer_history, Qbuffer_name_history; | 62 | static Lisp_Object Qminibuffer_history, Qbuffer_name_history; |
| 63 | 63 | ||
| 64 | Lisp_Object Qread_file_name_internal; | 64 | static Lisp_Object Qread_file_name_internal; |
| 65 | 65 | ||
| 66 | /* Normal hooks for entry to and exit from minibuffer. */ | 66 | /* Normal hooks for entry to and exit from minibuffer. */ |
| 67 | 67 | ||
| 68 | Lisp_Object Qminibuffer_setup_hook; | 68 | static Lisp_Object Qminibuffer_setup_hook; |
| 69 | Lisp_Object Qminibuffer_exit_hook; | 69 | static Lisp_Object Qminibuffer_exit_hook; |
| 70 | 70 | ||
| 71 | Lisp_Object Qcompletion_ignore_case; | 71 | Lisp_Object Qcompletion_ignore_case; |
| 72 | Lisp_Object Qminibuffer_completion_table; | 72 | static Lisp_Object Qminibuffer_completion_table; |
| 73 | Lisp_Object Qminibuffer_completion_predicate; | 73 | static Lisp_Object Qminibuffer_completion_predicate; |
| 74 | Lisp_Object Qminibuffer_completion_confirm; | 74 | static Lisp_Object Qminibuffer_completion_confirm; |
| 75 | Lisp_Object Qcompleting_read_default; | 75 | static Lisp_Object Qcompleting_read_default; |
| 76 | Lisp_Object Quser_variable_p; | 76 | static Lisp_Object Quser_variable_p; |
| 77 | 77 | ||
| 78 | Lisp_Object Qminibuffer_default; | 78 | static Lisp_Object Qminibuffer_default; |
| 79 | 79 | ||
| 80 | Lisp_Object Qcurrent_input_method, Qactivate_input_method; | 80 | static Lisp_Object Qcurrent_input_method, Qactivate_input_method; |
| 81 | 81 | ||
| 82 | Lisp_Object Qcase_fold_search; | 82 | static Lisp_Object Qcase_fold_search; |
| 83 | 83 | ||
| 84 | Lisp_Object Qread_expression_history; | 84 | static Lisp_Object Qread_expression_history; |
| 85 | 85 | ||
| 86 | /* Prompt to display in front of the mini-buffer contents. */ | 86 | /* Prompt to display in front of the mini-buffer contents. */ |
| 87 | 87 | ||
diff --git a/src/print.c b/src/print.c index f039b40aa60..82040555921 100644 --- a/src/print.c +++ b/src/print.c | |||
| @@ -39,11 +39,11 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 39 | 39 | ||
| 40 | Lisp_Object Qstandard_output; | 40 | Lisp_Object Qstandard_output; |
| 41 | 41 | ||
| 42 | Lisp_Object Qtemp_buffer_setup_hook; | 42 | static Lisp_Object Qtemp_buffer_setup_hook; |
| 43 | 43 | ||
| 44 | /* These are used to print like we read. */ | 44 | /* These are used to print like we read. */ |
| 45 | 45 | ||
| 46 | Lisp_Object Qfloat_output_format; | 46 | static Lisp_Object Qfloat_output_format; |
| 47 | 47 | ||
| 48 | #include <math.h> | 48 | #include <math.h> |
| 49 | 49 | ||
| @@ -79,7 +79,7 @@ EMACS_INT print_buffer_pos; | |||
| 79 | EMACS_INT print_buffer_pos_byte; | 79 | EMACS_INT print_buffer_pos_byte; |
| 80 | 80 | ||
| 81 | Lisp_Object Qprint_escape_newlines; | 81 | Lisp_Object Qprint_escape_newlines; |
| 82 | Lisp_Object Qprint_escape_multibyte, Qprint_escape_nonascii; | 82 | static Lisp_Object Qprint_escape_multibyte, Qprint_escape_nonascii; |
| 83 | 83 | ||
| 84 | /* Vprint_number_table is a table, that keeps objects that are going to | 84 | /* Vprint_number_table is a table, that keeps objects that are going to |
| 85 | be printed, to allow use of #n= and #n# to express sharing. | 85 | be printed, to allow use of #n= and #n# to express sharing. |
diff --git a/src/process.c b/src/process.c index ec96c1aa67e..89d04081eb7 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -127,22 +127,24 @@ int inhibit_sentinels; | |||
| 127 | 127 | ||
| 128 | #ifdef subprocesses | 128 | #ifdef subprocesses |
| 129 | 129 | ||
| 130 | Lisp_Object Qprocessp; | 130 | static Lisp_Object Qprocessp; |
| 131 | Lisp_Object Qrun, Qstop, Qsignal; | 131 | static Lisp_Object Qrun, Qstop, Qsignal; |
| 132 | Lisp_Object Qopen, Qclosed, Qconnect, Qfailed, Qlisten; | 132 | static Lisp_Object Qopen, Qclosed, Qconnect, Qfailed, Qlisten; |
| 133 | Lisp_Object Qlocal, Qipv4, Qdatagram, Qseqpacket; | 133 | Lisp_Object Qlocal; |
| 134 | Lisp_Object Qreal, Qnetwork, Qserial; | 134 | static Lisp_Object Qipv4, Qdatagram, Qseqpacket; |
| 135 | static Lisp_Object Qreal, Qnetwork, Qserial; | ||
| 135 | #ifdef AF_INET6 | 136 | #ifdef AF_INET6 |
| 136 | Lisp_Object Qipv6; | 137 | static Lisp_Object Qipv6; |
| 137 | #endif | 138 | #endif |
| 138 | Lisp_Object QCport, QCspeed, QCprocess; | 139 | static Lisp_Object QCport, QCprocess; |
| 140 | Lisp_Object QCspeed; | ||
| 139 | Lisp_Object QCbytesize, QCstopbits, QCparity, Qodd, Qeven; | 141 | Lisp_Object QCbytesize, QCstopbits, QCparity, Qodd, Qeven; |
| 140 | Lisp_Object QCflowcontrol, Qhw, Qsw, QCsummary; | 142 | Lisp_Object QCflowcontrol, Qhw, Qsw, QCsummary; |
| 141 | Lisp_Object QCbuffer, QChost, QCservice; | 143 | static Lisp_Object QCbuffer, QChost, QCservice; |
| 142 | Lisp_Object QClocal, QCremote, QCcoding; | 144 | static Lisp_Object QClocal, QCremote, QCcoding; |
| 143 | Lisp_Object QCserver, QCnowait, QCnoquery, QCstop; | 145 | static Lisp_Object QCserver, QCnowait, QCnoquery, QCstop; |
| 144 | Lisp_Object QCsentinel, QClog, QCoptions, QCplist; | 146 | static Lisp_Object QCsentinel, QClog, QCoptions, QCplist; |
| 145 | Lisp_Object Qlast_nonmenu_event; | 147 | static Lisp_Object Qlast_nonmenu_event; |
| 146 | /* QCfamily is declared and initialized in xfaces.c, | 148 | /* QCfamily is declared and initialized in xfaces.c, |
| 147 | QCfilter in keyboard.c. */ | 149 | QCfilter in keyboard.c. */ |
| 148 | extern Lisp_Object QCfamily, QCfilter; | 150 | extern Lisp_Object QCfamily, QCfilter; |
diff --git a/src/process.h b/src/process.h index 6bf1084afcd..1e90f553b38 100644 --- a/src/process.h +++ b/src/process.h | |||
| @@ -181,7 +181,7 @@ extern Lisp_Object Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime; | |||
| 181 | extern Lisp_Object Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs; | 181 | extern Lisp_Object Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs; |
| 182 | extern Lisp_Object Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime; | 182 | extern Lisp_Object Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime; |
| 183 | extern Lisp_Object Qtime, Qctime; | 183 | extern Lisp_Object Qtime, Qctime; |
| 184 | extern Lisp_Object QCport, QCspeed, QCprocess; | 184 | extern Lisp_Object QCspeed; |
| 185 | extern Lisp_Object QCbytesize, QCstopbits, QCparity, Qodd, Qeven; | 185 | extern Lisp_Object QCbytesize, QCstopbits, QCparity, Qodd, Qeven; |
| 186 | extern Lisp_Object QCflowcontrol, Qhw, Qsw, QCsummary; | 186 | extern Lisp_Object QCflowcontrol, Qhw, Qsw, QCsummary; |
| 187 | 187 | ||
| @@ -198,4 +198,3 @@ extern void add_read_fd (int fd, fd_callback func, void *data); | |||
| 198 | extern void delete_read_fd (int fd); | 198 | extern void delete_read_fd (int fd); |
| 199 | extern void add_write_fd (int fd, fd_callback func, void *data); | 199 | extern void add_write_fd (int fd, fd_callback func, void *data); |
| 200 | extern void delete_write_fd (int fd); | 200 | extern void delete_write_fd (int fd); |
| 201 | |||
diff --git a/src/search.c b/src/search.c index 34f02e6cd65..ea10e47f556 100644 --- a/src/search.c +++ b/src/search.c | |||
| @@ -85,10 +85,10 @@ static Lisp_Object last_thing_searched; | |||
| 85 | 85 | ||
| 86 | /* error condition signaled when regexp compile_pattern fails */ | 86 | /* error condition signaled when regexp compile_pattern fails */ |
| 87 | 87 | ||
| 88 | Lisp_Object Qinvalid_regexp; | 88 | static Lisp_Object Qinvalid_regexp; |
| 89 | 89 | ||
| 90 | /* Error condition used for failing searches */ | 90 | /* Error condition used for failing searches */ |
| 91 | Lisp_Object Qsearch_failed; | 91 | static Lisp_Object Qsearch_failed; |
| 92 | 92 | ||
| 93 | static void set_search_regs (EMACS_INT, EMACS_INT); | 93 | static void set_search_regs (EMACS_INT, EMACS_INT); |
| 94 | static void save_search_regs (void); | 94 | static void save_search_regs (void); |
diff --git a/src/sound.c b/src/sound.c index a972809e2c7..4478a067c09 100644 --- a/src/sound.c +++ b/src/sound.c | |||
| @@ -94,9 +94,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 94 | 94 | ||
| 95 | /* Symbols. */ | 95 | /* Symbols. */ |
| 96 | 96 | ||
| 97 | Lisp_Object QCvolume, QCdevice; | 97 | static Lisp_Object QCvolume, QCdevice; |
| 98 | Lisp_Object Qsound; | 98 | static Lisp_Object Qsound; |
| 99 | Lisp_Object Qplay_sound_functions; | 99 | static Lisp_Object Qplay_sound_functions; |
| 100 | 100 | ||
| 101 | /* Indices of attributes in a sound attributes vector. */ | 101 | /* Indices of attributes in a sound attributes vector. */ |
| 102 | 102 | ||
diff --git a/src/syntax.c b/src/syntax.c index 819a7542a7b..96d50f9a4e3 100644 --- a/src/syntax.c +++ b/src/syntax.c | |||
| @@ -95,7 +95,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 95 | #define ST_COMMENT_STYLE (256 + 1) | 95 | #define ST_COMMENT_STYLE (256 + 1) |
| 96 | #define ST_STRING_STYLE (256 + 2) | 96 | #define ST_STRING_STYLE (256 + 2) |
| 97 | 97 | ||
| 98 | Lisp_Object Qsyntax_table_p, Qsyntax_table, Qscan_error; | 98 | static Lisp_Object Qsyntax_table_p; |
| 99 | static Lisp_Object Qsyntax_table, Qscan_error; | ||
| 99 | 100 | ||
| 100 | /* Used as a temporary in SYNTAX_ENTRY and other macros in syntax.h, | 101 | /* Used as a temporary in SYNTAX_ENTRY and other macros in syntax.h, |
| 101 | if not compiled with GCC. No need to mark it, since it is used | 102 | if not compiled with GCC. No need to mark it, since it is used |
diff --git a/src/syntax.h b/src/syntax.h index e8726bb28a4..2b052715dac 100644 --- a/src/syntax.h +++ b/src/syntax.h | |||
| @@ -19,7 +19,6 @@ You should have received a copy of the GNU General Public License | |||
| 19 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | 19 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
| 20 | 20 | ||
| 21 | 21 | ||
| 22 | extern Lisp_Object Qsyntax_table_p; | ||
| 23 | extern void update_syntax_table (EMACS_INT, int, int, Lisp_Object); | 22 | extern void update_syntax_table (EMACS_INT, int, int, Lisp_Object); |
| 24 | 23 | ||
| 25 | /* The standard syntax table is stored where it will automatically | 24 | /* The standard syntax table is stored where it will automatically |
| @@ -300,4 +299,3 @@ struct gl_state_s | |||
| 300 | 299 | ||
| 301 | extern struct gl_state_s gl_state; | 300 | extern struct gl_state_s gl_state; |
| 302 | extern EMACS_INT scan_words (EMACS_INT, EMACS_INT); | 301 | extern EMACS_INT scan_words (EMACS_INT, EMACS_INT); |
| 303 | |||
diff --git a/src/textprop.c b/src/textprop.c index 8cd9d580c4c..b3bb064e8b8 100644 --- a/src/textprop.c +++ b/src/textprop.c | |||
| @@ -47,16 +47,19 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 47 | 47 | ||
| 48 | 48 | ||
| 49 | /* Types of hooks. */ | 49 | /* Types of hooks. */ |
| 50 | Lisp_Object Qmouse_left; | 50 | static Lisp_Object Qmouse_left; |
| 51 | Lisp_Object Qmouse_entered; | 51 | static Lisp_Object Qmouse_entered; |
| 52 | Lisp_Object Qpoint_left; | 52 | Lisp_Object Qpoint_left; |
| 53 | Lisp_Object Qpoint_entered; | 53 | Lisp_Object Qpoint_entered; |
| 54 | Lisp_Object Qcategory; | 54 | Lisp_Object Qcategory; |
| 55 | Lisp_Object Qlocal_map; | 55 | Lisp_Object Qlocal_map; |
| 56 | 56 | ||
| 57 | /* Visual properties text (including strings) may have. */ | 57 | /* Visual properties text (including strings) may have. */ |
| 58 | Lisp_Object Qforeground, Qbackground, Qfont, Qunderline, Qstipple; | 58 | static Lisp_Object Qforeground, Qbackground, Qunderline; |
| 59 | Lisp_Object Qinvisible, Qread_only, Qintangible, Qmouse_face; | 59 | Lisp_Object Qfont; |
| 60 | static Lisp_Object Qstipple; | ||
| 61 | Lisp_Object Qinvisible, Qintangible, Qmouse_face; | ||
| 62 | static Lisp_Object Qread_only; | ||
| 60 | Lisp_Object Qminibuffer_prompt; | 63 | Lisp_Object Qminibuffer_prompt; |
| 61 | 64 | ||
| 62 | /* Sticky properties */ | 65 | /* Sticky properties */ |
diff --git a/src/window.c b/src/window.c index 72ab2a3ea10..ee1b1bc04f7 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -50,10 +50,11 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 50 | #include "nsterm.h" | 50 | #include "nsterm.h" |
| 51 | #endif | 51 | #endif |
| 52 | 52 | ||
| 53 | Lisp_Object Qwindowp, Qwindow_live_p, Qwindow_configuration_p; | 53 | Lisp_Object Qwindowp, Qwindow_live_p; |
| 54 | Lisp_Object Qdisplay_buffer; | 54 | static Lisp_Object Qwindow_configuration_p; |
| 55 | Lisp_Object Qscroll_up, Qscroll_down, Qscroll_command; | 55 | static Lisp_Object Qdisplay_buffer; |
| 56 | Lisp_Object Qwindow_size_fixed; | 56 | static Lisp_Object Qscroll_up, Qscroll_down, Qscroll_command; |
| 57 | static Lisp_Object Qwindow_size_fixed; | ||
| 57 | 58 | ||
| 58 | static int displayed_window_lines (struct window *); | 59 | static int displayed_window_lines (struct window *); |
| 59 | static struct window *decode_window (Lisp_Object); | 60 | static struct window *decode_window (Lisp_Object); |
| @@ -116,7 +117,7 @@ Lisp_Object minibuf_selected_window; | |||
| 116 | 117 | ||
| 117 | /* Hook run at end of temp_output_buffer_show. */ | 118 | /* Hook run at end of temp_output_buffer_show. */ |
| 118 | 119 | ||
| 119 | Lisp_Object Qtemp_buffer_show_hook; | 120 | static Lisp_Object Qtemp_buffer_show_hook; |
| 120 | 121 | ||
| 121 | /* Incremented for each window created. */ | 122 | /* Incremented for each window created. */ |
| 122 | 123 | ||
diff --git a/src/xdisp.c b/src/xdisp.c index 7553841f51b..b5ba2090c70 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -318,29 +318,31 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 318 | 318 | ||
| 319 | Lisp_Object Qoverriding_local_map, Qoverriding_terminal_local_map; | 319 | Lisp_Object Qoverriding_local_map, Qoverriding_terminal_local_map; |
| 320 | Lisp_Object Qwindow_scroll_functions; | 320 | Lisp_Object Qwindow_scroll_functions; |
| 321 | Lisp_Object Qwindow_text_change_functions; | 321 | static Lisp_Object Qwindow_text_change_functions; |
| 322 | Lisp_Object Qredisplay_end_trigger_functions; | 322 | static Lisp_Object Qredisplay_end_trigger_functions; |
| 323 | Lisp_Object Qinhibit_point_motion_hooks; | 323 | Lisp_Object Qinhibit_point_motion_hooks; |
| 324 | Lisp_Object QCeval, QCfile, QCdata, QCpropertize; | 324 | static Lisp_Object QCeval, QCpropertize; |
| 325 | Lisp_Object Qfontified; | 325 | Lisp_Object QCfile, QCdata; |
| 326 | Lisp_Object Qgrow_only; | 326 | static Lisp_Object Qfontified; |
| 327 | Lisp_Object Qinhibit_eval_during_redisplay; | 327 | static Lisp_Object Qgrow_only; |
| 328 | Lisp_Object Qbuffer_position, Qposition, Qobject; | 328 | static Lisp_Object Qinhibit_eval_during_redisplay; |
| 329 | Lisp_Object Qright_to_left, Qleft_to_right; | 329 | static Lisp_Object Qbuffer_position, Qposition, Qobject; |
| 330 | static Lisp_Object Qright_to_left, Qleft_to_right; | ||
| 330 | 331 | ||
| 331 | /* Cursor shapes */ | 332 | /* Cursor shapes */ |
| 332 | Lisp_Object Qbar, Qhbar, Qbox, Qhollow; | 333 | Lisp_Object Qbar, Qhbar, Qbox, Qhollow; |
| 333 | 334 | ||
| 334 | /* Pointer shapes */ | 335 | /* Pointer shapes */ |
| 335 | Lisp_Object Qarrow, Qhand, Qtext; | 336 | static Lisp_Object Qarrow, Qhand; |
| 337 | Lisp_Object Qtext; | ||
| 336 | 338 | ||
| 337 | /* Holds the list (error). */ | 339 | /* Holds the list (error). */ |
| 338 | Lisp_Object list_of_error; | 340 | Lisp_Object list_of_error; |
| 339 | 341 | ||
| 340 | Lisp_Object Qfontification_functions; | 342 | static Lisp_Object Qfontification_functions; |
| 341 | 343 | ||
| 342 | Lisp_Object Qwrap_prefix; | 344 | static Lisp_Object Qwrap_prefix; |
| 343 | Lisp_Object Qline_prefix; | 345 | static Lisp_Object Qline_prefix; |
| 344 | 346 | ||
| 345 | /* Non-nil means don't actually do any redisplay. */ | 347 | /* Non-nil means don't actually do any redisplay. */ |
| 346 | 348 | ||
| @@ -350,12 +352,14 @@ Lisp_Object Qinhibit_redisplay; | |||
| 350 | 352 | ||
| 351 | Lisp_Object Qdisplay; | 353 | Lisp_Object Qdisplay; |
| 352 | 354 | ||
| 353 | Lisp_Object Qspace, QCalign_to, QCrelative_width, QCrelative_height; | 355 | Lisp_Object Qspace, QCalign_to; |
| 354 | Lisp_Object Qleft_margin, Qright_margin, Qspace_width, Qraise; | 356 | static Lisp_Object QCrelative_width, QCrelative_height; |
| 355 | Lisp_Object Qslice; | 357 | Lisp_Object Qleft_margin, Qright_margin; |
| 358 | static Lisp_Object Qspace_width, Qraise; | ||
| 359 | static Lisp_Object Qslice; | ||
| 356 | Lisp_Object Qcenter; | 360 | Lisp_Object Qcenter; |
| 357 | Lisp_Object Qmargin, Qpointer; | 361 | static Lisp_Object Qmargin, Qpointer; |
| 358 | Lisp_Object Qline_height; | 362 | static Lisp_Object Qline_height; |
| 359 | 363 | ||
| 360 | #ifdef HAVE_WINDOW_SYSTEM | 364 | #ifdef HAVE_WINDOW_SYSTEM |
| 361 | 365 | ||
| @@ -383,15 +387,15 @@ Lisp_Object Qline_height; | |||
| 383 | 387 | ||
| 384 | /* Name of the face used to highlight trailing whitespace. */ | 388 | /* Name of the face used to highlight trailing whitespace. */ |
| 385 | 389 | ||
| 386 | Lisp_Object Qtrailing_whitespace; | 390 | static Lisp_Object Qtrailing_whitespace; |
| 387 | 391 | ||
| 388 | /* Name and number of the face used to highlight escape glyphs. */ | 392 | /* Name and number of the face used to highlight escape glyphs. */ |
| 389 | 393 | ||
| 390 | Lisp_Object Qescape_glyph; | 394 | static Lisp_Object Qescape_glyph; |
| 391 | 395 | ||
| 392 | /* Name and number of the face used to highlight non-breaking spaces. */ | 396 | /* Name and number of the face used to highlight non-breaking spaces. */ |
| 393 | 397 | ||
| 394 | Lisp_Object Qnobreak_space; | 398 | static Lisp_Object Qnobreak_space; |
| 395 | 399 | ||
| 396 | /* The symbol `image' which is the car of the lists used to represent | 400 | /* The symbol `image' which is the car of the lists used to represent |
| 397 | images in Lisp. Also a tool bar style. */ | 401 | images in Lisp. Also a tool bar style. */ |
| @@ -399,8 +403,9 @@ Lisp_Object Qnobreak_space; | |||
| 399 | Lisp_Object Qimage; | 403 | Lisp_Object Qimage; |
| 400 | 404 | ||
| 401 | /* The image map types. */ | 405 | /* The image map types. */ |
| 402 | Lisp_Object QCmap, QCpointer; | 406 | Lisp_Object QCmap; |
| 403 | Lisp_Object Qrect, Qcircle, Qpoly; | 407 | static Lisp_Object QCpointer; |
| 408 | static Lisp_Object Qrect, Qcircle, Qpoly; | ||
| 404 | 409 | ||
| 405 | /* Tool bar styles */ | 410 | /* Tool bar styles */ |
| 406 | Lisp_Object Qboth, Qboth_horiz, Qtext_image_horiz; | 411 | Lisp_Object Qboth, Qboth_horiz, Qtext_image_horiz; |
| @@ -460,12 +465,12 @@ static struct buffer *this_line_buffer; | |||
| 460 | Voverlay_arrow_position is a marker, last-arrow-position is its | 465 | Voverlay_arrow_position is a marker, last-arrow-position is its |
| 461 | numerical position. */ | 466 | numerical position. */ |
| 462 | 467 | ||
| 463 | Lisp_Object Qlast_arrow_position, Qlast_arrow_string; | 468 | static Lisp_Object Qlast_arrow_position, Qlast_arrow_string; |
| 464 | 469 | ||
| 465 | /* Alternative overlay-arrow-string and overlay-arrow-bitmap | 470 | /* Alternative overlay-arrow-string and overlay-arrow-bitmap |
| 466 | properties on a symbol in overlay-arrow-variable-list. */ | 471 | properties on a symbol in overlay-arrow-variable-list. */ |
| 467 | 472 | ||
| 468 | Lisp_Object Qoverlay_arrow_string, Qoverlay_arrow_bitmap; | 473 | static Lisp_Object Qoverlay_arrow_string, Qoverlay_arrow_bitmap; |
| 469 | 474 | ||
| 470 | Lisp_Object Qmenu_bar_update_hook; | 475 | Lisp_Object Qmenu_bar_update_hook; |
| 471 | 476 | ||
| @@ -548,8 +553,8 @@ int message_buf_print; | |||
| 548 | 553 | ||
| 549 | /* The symbol `inhibit-menubar-update' and its DEFVAR_BOOL variable. */ | 554 | /* The symbol `inhibit-menubar-update' and its DEFVAR_BOOL variable. */ |
| 550 | 555 | ||
| 551 | Lisp_Object Qinhibit_menubar_update; | 556 | static Lisp_Object Qinhibit_menubar_update; |
| 552 | Lisp_Object Qmessage_truncate_lines; | 557 | static Lisp_Object Qmessage_truncate_lines; |
| 553 | 558 | ||
| 554 | /* Set to 1 in clear_message to make redisplay_internal aware | 559 | /* Set to 1 in clear_message to make redisplay_internal aware |
| 555 | of an emptied echo area. */ | 560 | of an emptied echo area. */ |
| @@ -603,7 +608,7 @@ int trace_move; | |||
| 603 | #define TRACE_MOVE(x) (void) 0 | 608 | #define TRACE_MOVE(x) (void) 0 |
| 604 | #endif | 609 | #endif |
| 605 | 610 | ||
| 606 | Lisp_Object Qauto_hscroll_mode; | 611 | static Lisp_Object Qauto_hscroll_mode; |
| 607 | 612 | ||
| 608 | /* Buffer being redisplayed -- for redisplay_window_error. */ | 613 | /* Buffer being redisplayed -- for redisplay_window_error. */ |
| 609 | 614 | ||
| @@ -708,7 +713,7 @@ static struct glyph_slice null_glyph_slice = { 0, 0, 0, 0 }; | |||
| 708 | 713 | ||
| 709 | int redisplaying_p; | 714 | int redisplaying_p; |
| 710 | 715 | ||
| 711 | Lisp_Object Qinhibit_free_realized_faces; | 716 | static Lisp_Object Qinhibit_free_realized_faces; |
| 712 | 717 | ||
| 713 | /* If a string, XTread_socket generates an event to display that string. | 718 | /* If a string, XTread_socket generates an event to display that string. |
| 714 | (The display is done in read_char.) */ | 719 | (The display is done in read_char.) */ |
| @@ -735,7 +740,7 @@ struct atimer *hourglass_atimer; | |||
| 735 | Lisp_Object Qglyphless_char; | 740 | Lisp_Object Qglyphless_char; |
| 736 | 741 | ||
| 737 | /* Symbol for the purpose of Vglyphless_char_display. */ | 742 | /* Symbol for the purpose of Vglyphless_char_display. */ |
| 738 | Lisp_Object Qglyphless_char_display; | 743 | static Lisp_Object Qglyphless_char_display; |
| 739 | 744 | ||
| 740 | /* Method symbols for Vglyphless_char_display. */ | 745 | /* Method symbols for Vglyphless_char_display. */ |
| 741 | static Lisp_Object Qhex_code, Qempty_box, Qthin_space, Qzero_width; | 746 | static Lisp_Object Qhex_code, Qempty_box, Qthin_space, Qzero_width; |
diff --git a/src/xfaces.c b/src/xfaces.c index eb2065d4637..920debf4dba 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -304,25 +304,29 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 304 | 304 | ||
| 305 | /* Keyword symbols used for face attribute names. */ | 305 | /* Keyword symbols used for face attribute names. */ |
| 306 | 306 | ||
| 307 | Lisp_Object QCfamily, QCheight, QCweight, QCslant, QCunderline; | 307 | Lisp_Object QCfamily, QCheight, QCweight, QCslant; |
| 308 | Lisp_Object QCinverse_video, QCforeground, QCbackground, QCstipple; | 308 | static Lisp_Object QCunderline; |
| 309 | Lisp_Object QCwidth, QCfont, QCbold, QCitalic; | 309 | static Lisp_Object QCinverse_video, QCstipple; |
| 310 | Lisp_Object QCreverse_video; | 310 | Lisp_Object QCforeground, QCbackground; |
| 311 | Lisp_Object QCoverline, QCstrike_through, QCbox, QCinherit; | 311 | Lisp_Object QCwidth; |
| 312 | Lisp_Object QCfontset; | 312 | static Lisp_Object QCfont, QCbold, QCitalic; |
| 313 | static Lisp_Object QCreverse_video; | ||
| 314 | static Lisp_Object QCoverline, QCstrike_through, QCbox, QCinherit; | ||
| 315 | static Lisp_Object QCfontset; | ||
| 313 | 316 | ||
| 314 | /* Symbols used for attribute values. */ | 317 | /* Symbols used for attribute values. */ |
| 315 | 318 | ||
| 316 | Lisp_Object Qnormal, Qbold, Qultra_light, Qextra_light, Qlight; | 319 | Lisp_Object Qnormal; |
| 317 | Lisp_Object Qsemi_light, Qsemi_bold, Qextra_bold, Qultra_bold; | 320 | static Lisp_Object Qbold, Qultra_light, Qextra_light, Qlight; |
| 318 | Lisp_Object Qoblique, Qitalic, Qreverse_oblique, Qreverse_italic; | 321 | static Lisp_Object Qsemi_light, Qsemi_bold, Qextra_bold, Qultra_bold; |
| 319 | Lisp_Object Qultra_condensed, Qextra_condensed, Qcondensed; | 322 | static Lisp_Object Qoblique, Qitalic, Qreverse_oblique, Qreverse_italic; |
| 320 | Lisp_Object Qsemi_condensed, Qsemi_expanded, Qexpanded, Qextra_expanded; | 323 | static Lisp_Object Qultra_condensed, Qextra_condensed, Qcondensed; |
| 321 | Lisp_Object Qultra_expanded; | 324 | static Lisp_Object Qsemi_condensed, Qsemi_expanded, Qexpanded, Qextra_expanded; |
| 322 | Lisp_Object Qreleased_button, Qpressed_button; | 325 | static Lisp_Object Qultra_expanded; |
| 323 | Lisp_Object QCstyle, QCcolor, QCline_width; | 326 | static Lisp_Object Qreleased_button, Qpressed_button; |
| 324 | Lisp_Object Qunspecified; | 327 | static Lisp_Object QCstyle, QCcolor, QCline_width; |
| 325 | Lisp_Object Qignore_defface; | 328 | static Lisp_Object Qunspecified; |
| 329 | static Lisp_Object Qignore_defface; | ||
| 326 | 330 | ||
| 327 | char unspecified_fg[] = "unspecified-fg", unspecified_bg[] = "unspecified-bg"; | 331 | char unspecified_fg[] = "unspecified-fg", unspecified_bg[] = "unspecified-bg"; |
| 328 | 332 | ||
| @@ -333,15 +337,18 @@ Lisp_Object Qframe_set_background_mode; | |||
| 333 | 337 | ||
| 334 | /* Names of basic faces. */ | 338 | /* Names of basic faces. */ |
| 335 | 339 | ||
| 336 | Lisp_Object Qdefault, Qtool_bar, Qregion, Qfringe; | 340 | Lisp_Object Qdefault, Qtool_bar, Qfringe; |
| 337 | Lisp_Object Qheader_line, Qscroll_bar, Qcursor, Qborder, Qmouse, Qmenu; | 341 | static Lisp_Object Qregion; |
| 338 | Lisp_Object Qmode_line_inactive, Qvertical_border; | 342 | Lisp_Object Qheader_line, Qscroll_bar, Qcursor; |
| 343 | static Lisp_Object Qborder, Qmouse, Qmenu; | ||
| 344 | Lisp_Object Qmode_line_inactive; | ||
| 345 | static Lisp_Object Qvertical_border; | ||
| 339 | 346 | ||
| 340 | /* The symbol `face-alias'. A symbols having that property is an | 347 | /* The symbol `face-alias'. A symbols having that property is an |
| 341 | alias for another face. Value of the property is the name of | 348 | alias for another face. Value of the property is the name of |
| 342 | the aliased face. */ | 349 | the aliased face. */ |
| 343 | 350 | ||
| 344 | Lisp_Object Qface_alias; | 351 | static Lisp_Object Qface_alias; |
| 345 | 352 | ||
| 346 | /* Alist of alternative font families. Each element is of the form | 353 | /* Alist of alternative font families. Each element is of the form |
| 347 | (FAMILY FAMILY1 FAMILY2 ...). If fonts of FAMILY can't be loaded, | 354 | (FAMILY FAMILY1 FAMILY2 ...). If fonts of FAMILY can't be loaded, |
| @@ -361,7 +368,7 @@ Lisp_Object Vface_alternative_font_registry_alist; | |||
| 361 | font may be scaled if its name matches a regular expression in the | 368 | font may be scaled if its name matches a regular expression in the |
| 362 | list. */ | 369 | list. */ |
| 363 | 370 | ||
| 364 | Lisp_Object Qscalable_fonts_allowed; | 371 | static Lisp_Object Qscalable_fonts_allowed; |
| 365 | 372 | ||
| 366 | #define DEFAULT_FONT_LIST_LIMIT 100 | 373 | #define DEFAULT_FONT_LIST_LIMIT 100 |
| 367 | 374 | ||
| @@ -377,11 +384,11 @@ Lisp_Object Qface; | |||
| 377 | 384 | ||
| 378 | /* Property for basic faces which other faces cannot inherit. */ | 385 | /* Property for basic faces which other faces cannot inherit. */ |
| 379 | 386 | ||
| 380 | Lisp_Object Qface_no_inherit; | 387 | static Lisp_Object Qface_no_inherit; |
| 381 | 388 | ||
| 382 | /* Error symbol for wrong_type_argument in load_pixmap. */ | 389 | /* Error symbol for wrong_type_argument in load_pixmap. */ |
| 383 | 390 | ||
| 384 | Lisp_Object Qbitmap_spec_p; | 391 | static Lisp_Object Qbitmap_spec_p; |
| 385 | 392 | ||
| 386 | /* The next ID to assign to Lisp faces. */ | 393 | /* The next ID to assign to Lisp faces. */ |
| 387 | 394 | ||
| @@ -394,11 +401,11 @@ static int lface_id_to_name_size; | |||
| 394 | 401 | ||
| 395 | /* TTY color-related functions (defined in tty-colors.el). */ | 402 | /* TTY color-related functions (defined in tty-colors.el). */ |
| 396 | 403 | ||
| 397 | Lisp_Object Qtty_color_desc, Qtty_color_by_index, Qtty_color_standard_values; | 404 | static Lisp_Object Qtty_color_desc, Qtty_color_by_index, Qtty_color_standard_values; |
| 398 | 405 | ||
| 399 | /* The name of the function used to compute colors on TTYs. */ | 406 | /* The name of the function used to compute colors on TTYs. */ |
| 400 | 407 | ||
| 401 | Lisp_Object Qtty_color_alist; | 408 | static Lisp_Object Qtty_color_alist; |
| 402 | 409 | ||
| 403 | /* Counter for calls to clear_face_cache. If this counter reaches | 410 | /* Counter for calls to clear_face_cache. If this counter reaches |
| 404 | CLEAR_FONT_TABLE_COUNT, and a frame has more than | 411 | CLEAR_FONT_TABLE_COUNT, and a frame has more than |
diff --git a/src/xfns.c b/src/xfns.c index 8d8a908222f..6fd332016ce 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -139,10 +139,10 @@ char *gray_bitmap_bits = gray_bits; | |||
| 139 | 139 | ||
| 140 | static int x_in_use; | 140 | static int x_in_use; |
| 141 | 141 | ||
| 142 | Lisp_Object Qnone; | 142 | static Lisp_Object Qnone; |
| 143 | Lisp_Object Qsuppress_icon; | 143 | static Lisp_Object Qsuppress_icon; |
| 144 | Lisp_Object Qundefined_color; | 144 | static Lisp_Object Qundefined_color; |
| 145 | Lisp_Object Qcompound_text, Qcancel_timer; | 145 | static Lisp_Object Qcompound_text, Qcancel_timer; |
| 146 | Lisp_Object Qfont_param; | 146 | Lisp_Object Qfont_param; |
| 147 | 147 | ||
| 148 | #if GLYPH_DEBUG | 148 | #if GLYPH_DEBUG |
diff --git a/src/xmenu.c b/src/xmenu.c index 595ae795282..721019ffc56 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -111,7 +111,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 111 | #define FALSE 0 | 111 | #define FALSE 0 |
| 112 | #endif /* no TRUE */ | 112 | #endif /* no TRUE */ |
| 113 | 113 | ||
| 114 | Lisp_Object Qdebug_on_next_call; | 114 | static Lisp_Object Qdebug_on_next_call; |
| 115 | 115 | ||
| 116 | #if defined (USE_X_TOOLKIT) || defined (USE_GTK) | 116 | #if defined (USE_X_TOOLKIT) || defined (USE_GTK) |
| 117 | static Lisp_Object xdialog_show (FRAME_PTR, int, Lisp_Object, Lisp_Object, | 117 | static Lisp_Object xdialog_show (FRAME_PTR, int, Lisp_Object, Lisp_Object, |
diff --git a/src/xselect.c b/src/xselect.c index 4f1a452023a..2d656cfec9a 100644 --- a/src/xselect.c +++ b/src/xselect.c | |||
| @@ -100,14 +100,14 @@ static Lisp_Object clean_local_selection_data (Lisp_Object); | |||
| 100 | #endif | 100 | #endif |
| 101 | 101 | ||
| 102 | 102 | ||
| 103 | Lisp_Object QSECONDARY, QSTRING, QINTEGER, QCLIPBOARD, QTIMESTAMP, | 103 | static Lisp_Object QSECONDARY, QSTRING, QINTEGER, QCLIPBOARD, QTIMESTAMP, |
| 104 | QTEXT, QDELETE, QMULTIPLE, QINCR, QEMACS_TMP, QTARGETS, QATOM, QNULL, | 104 | QTEXT, QDELETE, QMULTIPLE, QINCR, QEMACS_TMP, QTARGETS, QATOM, QNULL, |
| 105 | QATOM_PAIR; | 105 | QATOM_PAIR; |
| 106 | 106 | ||
| 107 | Lisp_Object QCOMPOUND_TEXT; /* This is a type of selection. */ | 107 | static Lisp_Object QCOMPOUND_TEXT; /* This is a type of selection. */ |
| 108 | Lisp_Object QUTF8_STRING; /* This is a type of selection. */ | 108 | static Lisp_Object QUTF8_STRING; /* This is a type of selection. */ |
| 109 | 109 | ||
| 110 | Lisp_Object Qcompound_text_with_extensions; | 110 | static Lisp_Object Qcompound_text_with_extensions; |
| 111 | 111 | ||
| 112 | static Lisp_Object Qforeign_selection; | 112 | static Lisp_Object Qforeign_selection; |
| 113 | 113 | ||