diff options
| author | Juanma Barranquero | 2011-06-24 23:25:22 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2011-06-24 23:25:22 +0200 |
| commit | cd3520a41df21d80a9d894c58af2daba23c8dd24 (patch) | |
| tree | 945eaef322c65471833954ddce161a7a913ee3c8 /src/fileio.c | |
| parent | 7d0da90e7b98f5c09df82be9985cc27d30adea07 (diff) | |
| download | emacs-cd3520a41df21d80a9d894c58af2daba23c8dd24.tar.gz emacs-cd3520a41df21d80a9d894c58af2daba23c8dd24.zip | |
Move DEFSYM to lisp.h and use everywhere.
Diffstat (limited to 'src/fileio.c')
| -rw-r--r-- | src/fileio.c | 153 |
1 files changed, 51 insertions, 102 deletions
diff --git a/src/fileio.c b/src/fileio.c index 824df8172e7..27fef42960a 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -5425,92 +5425,50 @@ Fread_file_name (Lisp_Object prompt, Lisp_Object dir, Lisp_Object default_filena | |||
| 5425 | void | 5425 | void |
| 5426 | syms_of_fileio (void) | 5426 | syms_of_fileio (void) |
| 5427 | { | 5427 | { |
| 5428 | Qoperations = intern_c_string ("operations"); | 5428 | DEFSYM (Qoperations, "operations"); |
| 5429 | Qexpand_file_name = intern_c_string ("expand-file-name"); | 5429 | DEFSYM (Qexpand_file_name, "expand-file-name"); |
| 5430 | Qsubstitute_in_file_name = intern_c_string ("substitute-in-file-name"); | 5430 | DEFSYM (Qsubstitute_in_file_name, "substitute-in-file-name"); |
| 5431 | Qdirectory_file_name = intern_c_string ("directory-file-name"); | 5431 | DEFSYM (Qdirectory_file_name, "directory-file-name"); |
| 5432 | Qfile_name_directory = intern_c_string ("file-name-directory"); | 5432 | DEFSYM (Qfile_name_directory, "file-name-directory"); |
| 5433 | Qfile_name_nondirectory = intern_c_string ("file-name-nondirectory"); | 5433 | DEFSYM (Qfile_name_nondirectory, "file-name-nondirectory"); |
| 5434 | Qunhandled_file_name_directory = intern_c_string ("unhandled-file-name-directory"); | 5434 | DEFSYM (Qunhandled_file_name_directory, "unhandled-file-name-directory"); |
| 5435 | Qfile_name_as_directory = intern_c_string ("file-name-as-directory"); | 5435 | DEFSYM (Qfile_name_as_directory, "file-name-as-directory"); |
| 5436 | Qcopy_file = intern_c_string ("copy-file"); | 5436 | DEFSYM (Qcopy_file, "copy-file"); |
| 5437 | Qmake_directory_internal = intern_c_string ("make-directory-internal"); | 5437 | DEFSYM (Qmake_directory_internal, "make-directory-internal"); |
| 5438 | Qmake_directory = intern_c_string ("make-directory"); | 5438 | DEFSYM (Qmake_directory, "make-directory"); |
| 5439 | Qdelete_directory_internal = intern_c_string ("delete-directory-internal"); | 5439 | DEFSYM (Qdelete_directory_internal, "delete-directory-internal"); |
| 5440 | Qdelete_file = intern_c_string ("delete-file"); | 5440 | DEFSYM (Qdelete_file, "delete-file"); |
| 5441 | Qrename_file = intern_c_string ("rename-file"); | 5441 | DEFSYM (Qrename_file, "rename-file"); |
| 5442 | Qadd_name_to_file = intern_c_string ("add-name-to-file"); | 5442 | DEFSYM (Qadd_name_to_file, "add-name-to-file"); |
| 5443 | Qmake_symbolic_link = intern_c_string ("make-symbolic-link"); | 5443 | DEFSYM (Qmake_symbolic_link, "make-symbolic-link"); |
| 5444 | Qfile_exists_p = intern_c_string ("file-exists-p"); | 5444 | DEFSYM (Qfile_exists_p, "file-exists-p"); |
| 5445 | Qfile_executable_p = intern_c_string ("file-executable-p"); | 5445 | DEFSYM (Qfile_executable_p, "file-executable-p"); |
| 5446 | Qfile_readable_p = intern_c_string ("file-readable-p"); | 5446 | DEFSYM (Qfile_readable_p, "file-readable-p"); |
| 5447 | Qfile_writable_p = intern_c_string ("file-writable-p"); | 5447 | DEFSYM (Qfile_writable_p, "file-writable-p"); |
| 5448 | Qfile_symlink_p = intern_c_string ("file-symlink-p"); | 5448 | DEFSYM (Qfile_symlink_p, "file-symlink-p"); |
| 5449 | Qaccess_file = intern_c_string ("access-file"); | 5449 | DEFSYM (Qaccess_file, "access-file"); |
| 5450 | Qfile_directory_p = intern_c_string ("file-directory-p"); | 5450 | DEFSYM (Qfile_directory_p, "file-directory-p"); |
| 5451 | Qfile_regular_p = intern_c_string ("file-regular-p"); | 5451 | DEFSYM (Qfile_regular_p, "file-regular-p"); |
| 5452 | Qfile_accessible_directory_p = intern_c_string ("file-accessible-directory-p"); | 5452 | DEFSYM (Qfile_accessible_directory_p, "file-accessible-directory-p"); |
| 5453 | Qfile_modes = intern_c_string ("file-modes"); | 5453 | DEFSYM (Qfile_modes, "file-modes"); |
| 5454 | Qset_file_modes = intern_c_string ("set-file-modes"); | 5454 | DEFSYM (Qset_file_modes, "set-file-modes"); |
| 5455 | Qset_file_times = intern_c_string ("set-file-times"); | 5455 | DEFSYM (Qset_file_times, "set-file-times"); |
| 5456 | Qfile_selinux_context = intern_c_string("file-selinux-context"); | 5456 | DEFSYM (Qfile_selinux_context, "file-selinux-context"); |
| 5457 | Qset_file_selinux_context = intern_c_string("set-file-selinux-context"); | 5457 | DEFSYM (Qset_file_selinux_context, "set-file-selinux-context"); |
| 5458 | Qfile_newer_than_file_p = intern_c_string ("file-newer-than-file-p"); | 5458 | DEFSYM (Qfile_newer_than_file_p, "file-newer-than-file-p"); |
| 5459 | Qinsert_file_contents = intern_c_string ("insert-file-contents"); | 5459 | DEFSYM (Qinsert_file_contents, "insert-file-contents"); |
| 5460 | Qwrite_region = intern_c_string ("write-region"); | 5460 | DEFSYM (Qwrite_region, "write-region"); |
| 5461 | Qverify_visited_file_modtime = intern_c_string ("verify-visited-file-modtime"); | 5461 | DEFSYM (Qverify_visited_file_modtime, "verify-visited-file-modtime"); |
| 5462 | Qset_visited_file_modtime = intern_c_string ("set-visited-file-modtime"); | 5462 | DEFSYM (Qset_visited_file_modtime, "set-visited-file-modtime"); |
| 5463 | Qauto_save_coding = intern_c_string ("auto-save-coding"); | 5463 | DEFSYM (Qauto_save_coding, "auto-save-coding"); |
| 5464 | 5464 | ||
| 5465 | staticpro (&Qoperations); | 5465 | DEFSYM (Qfile_name_history, "file-name-history"); |
| 5466 | staticpro (&Qexpand_file_name); | ||
| 5467 | staticpro (&Qsubstitute_in_file_name); | ||
| 5468 | staticpro (&Qdirectory_file_name); | ||
| 5469 | staticpro (&Qfile_name_directory); | ||
| 5470 | staticpro (&Qfile_name_nondirectory); | ||
| 5471 | staticpro (&Qunhandled_file_name_directory); | ||
| 5472 | staticpro (&Qfile_name_as_directory); | ||
| 5473 | staticpro (&Qcopy_file); | ||
| 5474 | staticpro (&Qmake_directory_internal); | ||
| 5475 | staticpro (&Qmake_directory); | ||
| 5476 | staticpro (&Qdelete_directory_internal); | ||
| 5477 | staticpro (&Qdelete_file); | ||
| 5478 | staticpro (&Qrename_file); | ||
| 5479 | staticpro (&Qadd_name_to_file); | ||
| 5480 | staticpro (&Qmake_symbolic_link); | ||
| 5481 | staticpro (&Qfile_exists_p); | ||
| 5482 | staticpro (&Qfile_executable_p); | ||
| 5483 | staticpro (&Qfile_readable_p); | ||
| 5484 | staticpro (&Qfile_writable_p); | ||
| 5485 | staticpro (&Qaccess_file); | ||
| 5486 | staticpro (&Qfile_symlink_p); | ||
| 5487 | staticpro (&Qfile_directory_p); | ||
| 5488 | staticpro (&Qfile_regular_p); | ||
| 5489 | staticpro (&Qfile_accessible_directory_p); | ||
| 5490 | staticpro (&Qfile_modes); | ||
| 5491 | staticpro (&Qset_file_modes); | ||
| 5492 | staticpro (&Qset_file_times); | ||
| 5493 | staticpro (&Qfile_selinux_context); | ||
| 5494 | staticpro (&Qset_file_selinux_context); | ||
| 5495 | staticpro (&Qfile_newer_than_file_p); | ||
| 5496 | staticpro (&Qinsert_file_contents); | ||
| 5497 | staticpro (&Qwrite_region); | ||
| 5498 | staticpro (&Qverify_visited_file_modtime); | ||
| 5499 | staticpro (&Qset_visited_file_modtime); | ||
| 5500 | staticpro (&Qauto_save_coding); | ||
| 5501 | |||
| 5502 | Qfile_name_history = intern_c_string ("file-name-history"); | ||
| 5503 | Fset (Qfile_name_history, Qnil); | 5466 | Fset (Qfile_name_history, Qnil); |
| 5504 | staticpro (&Qfile_name_history); | ||
| 5505 | 5467 | ||
| 5506 | Qfile_error = intern_c_string ("file-error"); | 5468 | DEFSYM (Qfile_error, "file-error"); |
| 5507 | staticpro (&Qfile_error); | 5469 | DEFSYM (Qfile_already_exists, "file-already-exists"); |
| 5508 | Qfile_already_exists = intern_c_string ("file-already-exists"); | 5470 | DEFSYM (Qfile_date_error, "file-date-error"); |
| 5509 | staticpro (&Qfile_already_exists); | 5471 | DEFSYM (Qexcl, "excl"); |
| 5510 | Qfile_date_error = intern_c_string ("file-date-error"); | ||
| 5511 | staticpro (&Qfile_date_error); | ||
| 5512 | Qexcl = intern_c_string ("excl"); | ||
| 5513 | staticpro (&Qexcl); | ||
| 5514 | 5472 | ||
| 5515 | DEFVAR_LISP ("file-name-coding-system", Vfile_name_coding_system, | 5473 | DEFVAR_LISP ("file-name-coding-system", Vfile_name_coding_system, |
| 5516 | doc: /* *Coding system for encoding file names. | 5474 | doc: /* *Coding system for encoding file names. |
| @@ -5528,15 +5486,10 @@ instead use `file-name-coding-system' to get a constant encoding | |||
| 5528 | of file names regardless of the current language environment. */); | 5486 | of file names regardless of the current language environment. */); |
| 5529 | Vdefault_file_name_coding_system = Qnil; | 5487 | Vdefault_file_name_coding_system = Qnil; |
| 5530 | 5488 | ||
| 5531 | Qformat_decode = intern_c_string ("format-decode"); | 5489 | DEFSYM (Qformat_decode, "format-decode"); |
| 5532 | staticpro (&Qformat_decode); | 5490 | DEFSYM (Qformat_annotate_function, "format-annotate-function"); |
| 5533 | Qformat_annotate_function = intern_c_string ("format-annotate-function"); | 5491 | DEFSYM (Qafter_insert_file_set_coding, "after-insert-file-set-coding"); |
| 5534 | staticpro (&Qformat_annotate_function); | 5492 | DEFSYM (Qcar_less_than_car, "car-less-than-car"); |
| 5535 | Qafter_insert_file_set_coding = intern_c_string ("after-insert-file-set-coding"); | ||
| 5536 | staticpro (&Qafter_insert_file_set_coding); | ||
| 5537 | |||
| 5538 | Qcar_less_than_car = intern_c_string ("car-less-than-car"); | ||
| 5539 | staticpro (&Qcar_less_than_car); | ||
| 5540 | 5493 | ||
| 5541 | Fput (Qfile_error, Qerror_conditions, | 5494 | Fput (Qfile_error, Qerror_conditions, |
| 5542 | Fpurecopy (list2 (Qfile_error, Qerror))); | 5495 | Fpurecopy (list2 (Qfile_error, Qerror))); |
| @@ -5615,9 +5568,7 @@ After `write-region' completes, Emacs calls the function stored in | |||
| 5615 | current when building the annotations (i.e., at least once), with that | 5568 | current when building the annotations (i.e., at least once), with that |
| 5616 | buffer current. */); | 5569 | buffer current. */); |
| 5617 | Vwrite_region_annotate_functions = Qnil; | 5570 | Vwrite_region_annotate_functions = Qnil; |
| 5618 | staticpro (&Qwrite_region_annotate_functions); | 5571 | DEFSYM (Qwrite_region_annotate_functions, "write-region-annotate-functions"); |
| 5619 | Qwrite_region_annotate_functions | ||
| 5620 | = intern_c_string ("write-region-annotate-functions"); | ||
| 5621 | 5572 | ||
| 5622 | DEFVAR_LISP ("write-region-post-annotation-function", | 5573 | DEFVAR_LISP ("write-region-post-annotation-function", |
| 5623 | Vwrite_region_post_annotation_function, | 5574 | Vwrite_region_post_annotation_function, |
| @@ -5681,12 +5632,10 @@ This includes interactive calls to `delete-file' and | |||
| 5681 | `delete-directory' and the Dired deletion commands. */); | 5632 | `delete-directory' and the Dired deletion commands. */); |
| 5682 | delete_by_moving_to_trash = 0; | 5633 | delete_by_moving_to_trash = 0; |
| 5683 | Qdelete_by_moving_to_trash = intern_c_string ("delete-by-moving-to-trash"); | 5634 | Qdelete_by_moving_to_trash = intern_c_string ("delete-by-moving-to-trash"); |
| 5684 | Qmove_file_to_trash = intern_c_string ("move-file-to-trash"); | 5635 | |
| 5685 | staticpro (&Qmove_file_to_trash); | 5636 | DEFSYM (Qmove_file_to_trash, "move-file-to-trash"); |
| 5686 | Qcopy_directory = intern_c_string ("copy-directory"); | 5637 | DEFSYM (Qcopy_directory, "copy-directory"); |
| 5687 | staticpro (&Qcopy_directory); | 5638 | DEFSYM (Qdelete_directory, "delete-directory"); |
| 5688 | Qdelete_directory = intern_c_string ("delete-directory"); | ||
| 5689 | staticpro (&Qdelete_directory); | ||
| 5690 | 5639 | ||
| 5691 | defsubr (&Sfind_file_name_handler); | 5640 | defsubr (&Sfind_file_name_handler); |
| 5692 | defsubr (&Sfile_name_directory); | 5641 | defsubr (&Sfile_name_directory); |