Mercurial > hg > xemacs-beta
annotate src/general-slots.h @ 5222:18c0b5909d16
Use keywords in structure syntax; new #define, NEED_TO_HANDLE_21_4_CODE 1
src/ChangeLog addition:
2010-05-31 Aidan Kehoe <kehoea@parhasard.net>
* rangetab.c (print_range_table, rangetab_instantiate)
(structure_type_create_rangetab):
* chartab.c (print_char_table, chartab_instantiate)
(structure_type_create_chartab):
* faces.c (syms_of_faces, print_face, face_validate):
Move structure syntax in these files to using keywords by default,
as is done in Common Lisp and GNU Emacs, accepting for the moment
the older non-keywords syntax too.
* glyphs.h: No need to have Q_data here.
* general-slots.h: Add Q_data, Q_type here.
* config.h.in (NEED_TO_HANDLE_21_4_CODE):
New #define, always 1 for the moment, replacing the previous
never-really-used NO_NEED_TO_HANDLE_21_4_CODE, and avoiding
confusing syntax.
* eval.c (Ffuncall): Wrap the hack that allows #'throw to be
funcalled in #ifdef NEED_TO_HANDLE_21_4_CODE.
* elhash.c (syms_of_elhash): Move Q_type, Q_data to
general-slots.h. Change to NEED_TO_HANDLE_21_4_CODE throughout
this file.
lisp/ChangeLog addition:
2010-05-31 Aidan Kehoe <kehoea@parhasard.net>
* specifier.el (current-display-table):
Use keywords in the structure syntax here, now we've moved to that
by default in C.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Mon, 31 May 2010 16:47:44 +0100 |
parents | 1096ef427b56 |
children | 31be2a3d121d 308d34e9f07d |
rev | line source |
---|---|
442 | 1 /* Commonly-used symbols -- include file |
2 Copyright (C) 1995 Sun Microsystems. | |
5157
1fae11d56ad2
redo memory-usage mechanism, add way of dynamically initializing Lisp objects
Ben Wing <ben@xemacs.org>
parents:
5084
diff
changeset
|
3 Copyright (C) 1995, 1996, 2000, 2001, 2002, 2003, 2010 Ben Wing. |
442 | 4 |
5 This file is part of XEmacs. | |
6 | |
7 XEmacs is free software; you can redistribute it and/or modify it | |
8 under the terms of the GNU General Public License as published by the | |
9 Free Software Foundation; either version 2, or (at your option) any | |
10 later version. | |
11 | |
12 XEmacs is distributed in the hope that it will be useful, but WITHOUT | |
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
15 for more details. | |
16 | |
17 You should have received a copy of the GNU General Public License | |
18 along with XEmacs; see the file COPYING. If not, write to | |
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
20 Boston, MA 02111-1307, USA. */ | |
21 | |
22 /* Synched up with: Not in FSF. */ | |
23 | |
24 /* The purpose of this file is as a central place to stick symbols | |
25 that don't have any obvious connection to any particular module | |
26 and might be used in many different contexts. | |
27 | |
1632 | 28 Four types of declarations are allowed here: |
442 | 29 |
30 SYMBOL (Qfoo); declares a symbol "foo" | |
1632 | 31 SYMBOL_MODULE_API (Qfoo); declares a symbol "foo" that is visible to modules |
442 | 32 SYMBOL_KEYWORD (Q_foo); declares a keyword symbol ":foo" |
33 SYMBOL_GENERAL (Qfoo, "bar"); declares a symbol named "bar" but stored in | |
34 the variable Qfoo | |
35 | |
36 To sort the crap in this file, use the following: | |
37 | |
38 (sort-regexp-fields nil | |
39 "^.*(Q_?\\(.*\\));$" "\\1" | |
40 (progn | |
41 (search-forward "SYMBOL") | |
42 (match-beginning 0)) | |
43 (point-max)) | |
44 */ | |
45 | |
46 SYMBOL (Qabort); | |
47 SYMBOL_KEYWORD (Q_accelerator); | |
48 SYMBOL_KEYWORD (Q_active); | |
49 SYMBOL (Qafter); | |
50 SYMBOL (Qall); | |
5084
6afe991b8135
Add a PARSE_KEYWORDS macro, use it in #'make-hash-table.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4995
diff
changeset
|
51 SYMBOL_KEYWORD (Q_allow_other_keys); |
442 | 52 SYMBOL (Qand); |
53 SYMBOL (Qappend); | |
771 | 54 SYMBOL (Qascii); |
442 | 55 SYMBOL (Qassoc); |
56 SYMBOL (Qat); | |
57 SYMBOL (Qautodetect); | |
58 SYMBOL (Qbad_variable); | |
59 SYMBOL (Qbefore); | |
1983 | 60 SYMBOL (Qbigfloat); |
442 | 61 SYMBOL (Qbinary); |
62 SYMBOL (Qbitmap); | |
63 SYMBOL (Qboolean); | |
64 SYMBOL_KEYWORD (Q_border); | |
65 SYMBOL (Qbottom); | |
66 SYMBOL (Qbottom_margin); | |
67 SYMBOL (Qbuffer); | |
1318 | 68 SYMBOL (Qbuffers); |
442 | 69 SYMBOL (Qbuilt_in); |
70 SYMBOL (Qbutton); | |
71 SYMBOL_KEYWORD (Q_buttons); | |
72 SYMBOL_KEYWORD (Q_callback); | |
73 SYMBOL_KEYWORD (Q_callback_ex); | |
74 SYMBOL (Qcancel); | |
5182
2e528066e2fc
Move #'sort*, #'fill, #'merge to C from cl-seq.el.
Aidan Kehoe <kehoea@parhasard.net>
parents:
5157
diff
changeset
|
75 SYMBOL (Qcar); |
442 | 76 SYMBOL (Qcategory); |
3439 | 77 SYMBOL (Qccl_program); |
442 | 78 SYMBOL (Qcenter); |
771 | 79 SYMBOL (Qchain); |
1333 | 80 SYMBOL (Qchange); |
442 | 81 SYMBOL (Qchannel); |
82 SYMBOL (Qchar); | |
83 SYMBOL (Qcharacter); | |
84 SYMBOL (Qchars); | |
771 | 85 SYMBOL (Qcode_page); |
86 SYMBOL (Qcoding_system); | |
4995
8431b52e43b1
Move the various map* functions to C; add #'map-into.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4691
diff
changeset
|
87 SYMBOL (Qcoerce); |
442 | 88 SYMBOL (Qcolor); |
89 SYMBOL (Qcolumns); | |
90 SYMBOL (Qcommand); | |
91 SYMBOL_KEYWORD (Q_config); | |
92 SYMBOL (Qconsole); | |
771 | 93 SYMBOL (Qcontrol_1); |
442 | 94 SYMBOL (Qcopies); |
1927 | 95 SYMBOL_MODULE_API (Qcritical); |
442 | 96 SYMBOL (Qctext); |
771 | 97 SYMBOL (Qcurrent); |
442 | 98 SYMBOL (Qcursor); |
99 SYMBOL (Qdata); | |
5222
18c0b5909d16
Use keywords in structure syntax; new #define, NEED_TO_HANDLE_21_4_CODE 1
Aidan Kehoe <kehoea@parhasard.net>
parents:
5207
diff
changeset
|
100 SYMBOL_KEYWORD (Q_data); |
903 | 101 SYMBOL (Qdde); |
442 | 102 SYMBOL (Qdead); |
793 | 103 SYMBOL (Qdebug); |
442 | 104 SYMBOL (Qdefault); |
1927 | 105 SYMBOL_MODULE_API (Qdelete); |
442 | 106 SYMBOL (Qdelq); |
771 | 107 SYMBOL (Qdescription); |
442 | 108 SYMBOL_KEYWORD (Q_descriptor); |
109 SYMBOL (Qdevice); | |
1318 | 110 SYMBOL (Qdevices); |
442 | 111 SYMBOL_KEYWORD (Q_device); |
112 SYMBOL (Qdialog); | |
673 | 113 SYMBOL (Qdirectory); |
442 | 114 SYMBOL (Qdimension); |
115 SYMBOL (Qdisplay); | |
116 SYMBOL (Qdoc_string); | |
771 | 117 SYMBOL (Qdocumentation); |
442 | 118 SYMBOL (Qduplex); |
793 | 119 SYMBOL (Qemergency); |
442 | 120 SYMBOL (Qempty); |
5182
2e528066e2fc
Move #'sort*, #'fill, #'merge to C from cl-seq.el.
Aidan Kehoe <kehoea@parhasard.net>
parents:
5157
diff
changeset
|
121 SYMBOL_KEYWORD (Q_end); |
3439 | 122 SYMBOL (Qencode_as_utf_8); |
442 | 123 SYMBOL (Qeval); |
853 | 124 SYMBOL (Qevent); |
442 | 125 SYMBOL (Qextents); |
563 | 126 SYMBOL (Qexternal); |
442 | 127 SYMBOL (Qface); |
1318 | 128 SYMBOL (Qfaces); |
442 | 129 SYMBOL (Qfallback); |
130 SYMBOL (Qfile); | |
1632 | 131 SYMBOL_MODULE_API (Qfile_name); |
442 | 132 SYMBOL_KEYWORD (Q_filter); |
3659 | 133 SYMBOL (Qfinal); |
1983 | 134 SYMBOL (Qfixnum); |
5193
41ac827cb71b
fix cygwin compile, fix warning and style in elhash.c
Ben Wing <ben@xemacs.org>
parents:
5191
diff
changeset
|
135 SYMBOL_MODULE_API (Qfixnump); |
1983 | 136 SYMBOL (Qfloat); |
442 | 137 SYMBOL (Qfont); |
138 SYMBOL (Qframe); | |
1318 | 139 SYMBOL (Qframes); |
442 | 140 SYMBOL (Qfrom_page); |
4691
3ba90c659d01
Move Qfrom_unicode to general-slots.h, fix the native Win32 build.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4690
diff
changeset
|
141 SYMBOL (Qfrom_unicode); |
442 | 142 SYMBOL (Qfull_assoc); |
143 SYMBOL (Qfuncall); | |
144 SYMBOL (Qfunction); | |
1333 | 145 SYMBOL (Qgarbage_collection); |
442 | 146 SYMBOL (Qgeneric); |
147 SYMBOL (Qgeometry); | |
148 SYMBOL (Qglobal); | |
853 | 149 SYMBOL (Qglyph); |
462 | 150 SYMBOL (Qgtk); |
853 | 151 SYMBOL (Qgui_item); |
442 | 152 SYMBOL (Qgutter); |
153 SYMBOL (Qheight); | |
154 SYMBOL_KEYWORD (Q_height); | |
155 SYMBOL (Qhelp); | |
771 | 156 SYMBOL (Qhigh); |
442 | 157 SYMBOL (Qhighlight); |
158 SYMBOL (Qhorizontal); | |
159 SYMBOL (Qicon); | |
160 SYMBOL (Qid); | |
161 SYMBOL (Qignore); | |
3659 | 162 SYMBOL (Qinitial); |
442 | 163 SYMBOL (Qimage); |
164 SYMBOL_KEYWORD (Q_image); | |
165 SYMBOL_KEYWORD (Q_included); | |
166 SYMBOL (Qinfo); | |
167 SYMBOL (Qinherit); | |
168 SYMBOL_KEYWORD (Q_initial_focus); | |
169 SYMBOL (Qinteger); | |
170 SYMBOL (Qinternal); | |
171 SYMBOL_KEYWORD (Q_items); | |
172 SYMBOL_KEYWORD (Q_justify); | |
863 | 173 SYMBOL_KEYWORD (Q_vertically_justify); |
174 SYMBOL_KEYWORD (Q_horizontally_justify); | |
5182
2e528066e2fc
Move #'sort*, #'fill, #'merge to C from cl-seq.el.
Aidan Kehoe <kehoea@parhasard.net>
parents:
5157
diff
changeset
|
175 SYMBOL_KEYWORD (Q_key); |
442 | 176 SYMBOL (Qkey); |
177 SYMBOL (Qkey_assoc); | |
2842 | 178 SYMBOL (Qkey_mapping); |
442 | 179 SYMBOL_KEYWORD (Q_key_sequence); |
180 SYMBOL (Qkeyboard); | |
181 SYMBOL (Qkeymap); | |
182 SYMBOL_KEYWORD (Q_keys); | |
183 SYMBOL_KEYWORD (Q_label); | |
184 SYMBOL (Qlandscape); | |
185 SYMBOL (Qlast_command); | |
186 SYMBOL (Qleft); | |
187 SYMBOL (Qleft_margin); | |
188 SYMBOL (Qlet); | |
771 | 189 SYMBOL (Qlevel); |
442 | 190 SYMBOL (Qlist); |
771 | 191 SYMBOL (Qlittle_endian); |
192 SYMBOL (Qlocale); | |
193 SYMBOL (Qlow); | |
5182
2e528066e2fc
Move #'sort*, #'fill, #'merge to C from cl-seq.el.
Aidan Kehoe <kehoea@parhasard.net>
parents:
5157
diff
changeset
|
194 SYMBOL_GENERAL (Qlss, "<"); |
442 | 195 SYMBOL (Qmagic); |
196 SYMBOL_KEYWORD (Q_margin_width); | |
197 SYMBOL (Qmarkers); | |
198 SYMBOL (Qmax); | |
199 SYMBOL (Qmemory); | |
200 SYMBOL (Qmenubar); | |
201 SYMBOL (Qmessage); | |
202 SYMBOL_GENERAL (Qminus, "-"); | |
203 SYMBOL (Qmodifiers); | |
204 SYMBOL (Qmotion); | |
205 SYMBOL (Qmsprinter); | |
206 SYMBOL (Qmswindows); | |
207 SYMBOL (Qname); | |
1632 | 208 SYMBOL_MODULE_API (Qnative); |
442 | 209 SYMBOL (Qnatnum); |
210 SYMBOL (Qno); | |
211 SYMBOL (Qnone); | |
212 SYMBOL (Qnot); | |
213 SYMBOL (Qnothing); | |
1632 | 214 SYMBOL_MODULE_API (Qnotice); |
442 | 215 SYMBOL (Qobject); |
216 SYMBOL (Qok); | |
217 SYMBOL (Qold_assoc); | |
218 SYMBOL (Qold_delete); | |
219 SYMBOL (Qold_delq); | |
220 SYMBOL (Qold_rassoc); | |
221 SYMBOL (Qold_rassq); | |
222 SYMBOL (Qonly); | |
223 SYMBOL (Qor); | |
224 SYMBOL (Qorientation); | |
225 SYMBOL_KEYWORD (Q_orientation); | |
226 SYMBOL (Qother); | |
227 SYMBOL (Qpage_setup); | |
510 | 228 SYMBOL (Qpages); |
442 | 229 SYMBOL (Qpeer); |
230 SYMBOL (Qpointer); | |
231 SYMBOL (Qpopup); | |
232 SYMBOL (Qportrait); | |
233 SYMBOL (Qprepend); | |
234 SYMBOL (Qprint); | |
235 SYMBOL (Qprinter); | |
236 SYMBOL_KEYWORD (Q_printer_settings); | |
237 SYMBOL (Qprocess); | |
238 SYMBOL_KEYWORD (Q_properties); | |
239 SYMBOL (Qprovide); | |
4690
257b468bf2ca
Move the #'query-coding-region implementation to C.
Aidan Kehoe <kehoea@parhasard.net>
parents:
3767
diff
changeset
|
240 SYMBOL (Qquery_coding_clear_highlights); |
257b468bf2ca
Move the #'query-coding-region implementation to C.
Aidan Kehoe <kehoea@parhasard.net>
parents:
3767
diff
changeset
|
241 SYMBOL (Qquery_coding_warning_face); |
442 | 242 SYMBOL (Qquestion); |
243 SYMBOL_KEYWORD (Q_question); | |
5207
1096ef427b56
Error on too many arguments to #'function, #'quote.
Aidan Kehoe <kehoea@parhasard.net>
parents:
5193
diff
changeset
|
244 SYMBOL (Qquote); |
442 | 245 SYMBOL (Qradio); |
246 SYMBOL (Qrassoc); | |
247 SYMBOL (Qrassq); | |
1983 | 248 SYMBOL (Qratio); |
1318 | 249 SYMBOL (Qredisplay); |
442 | 250 SYMBOL (Qremove_all); |
251 SYMBOL (Qrequire); | |
252 SYMBOL (Qresource); | |
253 SYMBOL (Qretry); | |
254 SYMBOL (Qreturn); | |
255 SYMBOL (Qreverse); | |
256 SYMBOL (Qright); | |
257 SYMBOL (Qright_margin); | |
1927 | 258 SYMBOL_MODULE_API (Qsearch); |
442 | 259 SYMBOL (Qselected); |
260 SYMBOL_KEYWORD (Q_selected); | |
510 | 261 SYMBOL (Qselection); |
442 | 262 SYMBOL (Qset_glyph_image); |
263 SYMBOL (Qsignal); | |
1927 | 264 SYMBOL_MODULE_API (Qsimple); |
442 | 265 SYMBOL (Qsize); |
563 | 266 SYMBOL (Qsound); |
442 | 267 SYMBOL (Qspace); |
268 SYMBOL (Qspecifier); | |
269 SYMBOL (Qstandard); | |
5182
2e528066e2fc
Move #'sort*, #'fill, #'merge to C from cl-seq.el.
Aidan Kehoe <kehoea@parhasard.net>
parents:
5157
diff
changeset
|
270 SYMBOL_KEYWORD (Q_start); |
442 | 271 SYMBOL (Qstream); |
272 SYMBOL (Qstring); | |
273 SYMBOL_KEYWORD (Q_style); | |
274 SYMBOL_KEYWORD (Q_suffix); | |
771 | 275 SYMBOL (Qsubtype); |
4690
257b468bf2ca
Move the #'query-coding-region implementation to C.
Aidan Kehoe <kehoea@parhasard.net>
parents:
3767
diff
changeset
|
276 SYMBOL (Qsucceeded); |
442 | 277 SYMBOL (Qsymbol); |
278 SYMBOL (Qsyntax); | |
771 | 279 SYMBOL (Qsystem_default); |
442 | 280 SYMBOL (Qterminal); |
281 SYMBOL (Qtest); | |
282 SYMBOL (Qtext); | |
283 SYMBOL_KEYWORD (Q_text); | |
284 SYMBOL (Qthis_command); | |
285 SYMBOL (Qtimeout); | |
286 SYMBOL (Qtimestamp); | |
287 SYMBOL_KEYWORD (Q_title); | |
288 SYMBOL (Qto_page); | |
289 SYMBOL (Qtoggle); | |
290 SYMBOL (Qtoolbar); | |
291 SYMBOL (Qtop); | |
292 SYMBOL (Qtop_margin); | |
293 SYMBOL (Qtty); | |
294 SYMBOL (Qtype); | |
5222
18c0b5909d16
Use keywords in structure syntax; new #define, NEED_TO_HANDLE_21_4_CODE 1
Aidan Kehoe <kehoea@parhasard.net>
parents:
5207
diff
changeset
|
295 SYMBOL_KEYWORD (Q_type); |
442 | 296 SYMBOL (Qundecided); |
297 SYMBOL (Qundefined); | |
4690
257b468bf2ca
Move the #'query-coding-region implementation to C.
Aidan Kehoe <kehoea@parhasard.net>
parents:
3767
diff
changeset
|
298 SYMBOL (Qunencodable); |
257b468bf2ca
Move the #'query-coding-region implementation to C.
Aidan Kehoe <kehoea@parhasard.net>
parents:
3767
diff
changeset
|
299 SYMBOL (Qinvalid_sequence); |
442 | 300 SYMBOL (Qunimplemented); |
3659 | 301 SYMBOL (Qunicode_registries); |
3767 | 302 SYMBOL (Qunicode_type); |
771 | 303 SYMBOL (Quser_default); |
442 | 304 SYMBOL_KEYWORD (Q_value); |
305 SYMBOL (Qvalue_assoc); | |
306 SYMBOL (Qvertical); | |
307 SYMBOL (Qwarning); | |
308 SYMBOL (Qwidget); | |
309 SYMBOL (Qwidth); | |
310 SYMBOL_KEYWORD (Q_width); | |
311 SYMBOL (Qwindow); | |
1318 | 312 SYMBOL (Qwindows); |
313 SYMBOL (Qwindow_id); | |
442 | 314 SYMBOL (Qwindow_system); |
315 SYMBOL (Qx); | |
316 SYMBOL (Qy); | |
317 SYMBOL (Qyes); |