Mercurial > emacs
comparison src/category.c @ 105877:21bdda3ded62
* xterm.c (syms_of_xterm):
* xselect.c (syms_of_xselect):
* xmenu.c (syms_of_xmenu):
* xfns.c (syms_of_xfns):
* xfaces.c (syms_of_xfaces):
* xdisp.c (syms_of_xdisp):
* window.c (syms_of_window):
* w32fns.c (syms_of_w32fns):
* undo.c (syms_of_undo):
* textprop.c (syms_of_textprop):
* terminal.c (syms_of_terminal):
* syntax.c (syms_of_syntax):
* sound.c (syms_of_sound):
* search.c (syms_of_search):
* print.c (syms_of_print):
* minibuf.c (syms_of_minibuf):
* macros.c (syms_of_macros):
* keymap.c (syms_of_keymap, initial_define_key)
(initial_define_lispy_key):
* keyboard.c (syms_of_keyboard):
* insdel.c (syms_of_insdel):
* image.c (syms_of_image):
* fringe.c (syms_of_fringe):
* frame.c (syms_of_frame):
* fontset.c (syms_of_fontset):
* fns.c (syms_of_fns):
* fns.c (syms_of_fns):
* fileio.c (syms_of_fileio):
* fileio.c (syms_of_fileio):
* eval.c (syms_of_eval):
* doc.c (syms_of_doc):
* dispnew.c (syms_of_display):
* dired.c (syms_of_dired):
* dbusbind.c (syms_of_dbusbind):
* data.c (syms_of_data):
* composite.c (syms_of_composite):
* coding.c (syms_of_coding):
* cmds.c (syms_of_cmds):
* charset.c (define_charset_internal, syms_of_character):
* ccl.c (syms_of_ccl):
* category.c (syms_of_category, init_category_once):
* casetab.c (syms_of_casetab):
* casefiddle.c (syms_of_casefiddle):
* callint.c (syms_of_callint):
* bytecode.c (syms_of_bytecode):
* buffer.c (keys_of_buffer, syms_of_buffer):
* alloc.c (syms_of_alloc):
* process.c (syms_of_process, init_process):
* lread.c (syms_of_lread, init_obarray):
* font.c (build_style_table):
* emacs.c (syms_of_emacs, main): Replace calls to intern with
intern_c_string, calls to make_pure_string with
make_pure_c_string. Use pure_cons instead of Fcons.
* process.c (socket_options): Make it const.
(set_socket_option, init_process): Use a const pointer.
* lread.c (intern_c_string): New function.
(defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
(defvar_int): Uset it. Make the name const char*.
* font.c (struct table_entry): Remove unused member. Make NAMES
constant.
(weight_table, slant_table, width_table): Make constant.
* emacs.c (struct standard_args): Make name and longname constant.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Fri, 06 Nov 2009 06:50:52 +0000 |
parents | b0a732611398 |
children | 0bc34ff12a2d |
comparison
equal
deleted
inserted
replaced
105876:c5c76c2da5ee | 105877:21bdda3ded62 |
---|---|
465 | 465 |
466 void | 466 void |
467 init_category_once () | 467 init_category_once () |
468 { | 468 { |
469 /* This has to be done here, before we call Fmake_char_table. */ | 469 /* This has to be done here, before we call Fmake_char_table. */ |
470 Qcategory_table = intern ("category-table"); | 470 Qcategory_table = intern_c_string ("category-table"); |
471 staticpro (&Qcategory_table); | 471 staticpro (&Qcategory_table); |
472 | 472 |
473 /* Intern this now in case it isn't already done. | 473 /* Intern this now in case it isn't already done. |
474 Setting this variable twice is harmless. | 474 Setting this variable twice is harmless. |
475 But don't staticpro it here--that is done in alloc.c. */ | 475 But don't staticpro it here--that is done in alloc.c. */ |
476 Qchar_table_extra_slots = intern ("char-table-extra-slots"); | 476 Qchar_table_extra_slots = intern_c_string ("char-table-extra-slots"); |
477 | 477 |
478 /* Now we are ready to set up this property, so we can | 478 /* Now we are ready to set up this property, so we can |
479 create category tables. */ | 479 create category tables. */ |
480 Fput (Qcategory_table, Qchar_table_extra_slots, make_number (2)); | 480 Fput (Qcategory_table, Qchar_table_extra_slots, make_number (2)); |
481 | 481 |
487 } | 487 } |
488 | 488 |
489 void | 489 void |
490 syms_of_category () | 490 syms_of_category () |
491 { | 491 { |
492 Qcategoryp = intern ("categoryp"); | 492 Qcategoryp = intern_c_string ("categoryp"); |
493 staticpro (&Qcategoryp); | 493 staticpro (&Qcategoryp); |
494 Qcategorysetp = intern ("categorysetp"); | 494 Qcategorysetp = intern_c_string ("categorysetp"); |
495 staticpro (&Qcategorysetp); | 495 staticpro (&Qcategorysetp); |
496 Qcategory_table_p = intern ("category-table-p"); | 496 Qcategory_table_p = intern_c_string ("category-table-p"); |
497 staticpro (&Qcategory_table_p); | 497 staticpro (&Qcategory_table_p); |
498 | 498 |
499 DEFVAR_LISP ("word-combining-categories", &Vword_combining_categories, | 499 DEFVAR_LISP ("word-combining-categories", &Vword_combining_categories, |
500 doc: /* List of pair (cons) of categories to determine word boundary. | 500 doc: /* List of pair (cons) of categories to determine word boundary. |
501 | 501 |