Mercurial > hg > xemacs-beta
comparison src/emacs.c @ 776:79940b592197
[xemacs-hg @ 2002-03-15 07:43:14 by ben]
.cvsignore: ignore .tmp files that are getting auto-created by VC.
Makefile.in.in: Use -no-packages to avoid problems with package files shadowing
core files (e.g. unicode.el in mule-ucs).
alloc.c, emacs.c, lisp.h: add new -no-packages. make sure list of args for sorting is
actually correct. clean up arg parsing code.
xemacs.mak: Use -no-packages to avoid problems with package files shadowing
core files (e.g. unicode.el in mule-ucs).
Makefile: Use -no-packages to avoid problems with package files shadowing
core files (e.g. unicode.el in mule-ucs).
mule\chinese.el, mule\japan-util.el: fix warnings.
behavior-defs.el: fix errors with require.
bytecomp-runtime.el: add new funs {when,and}-{f}boundp, clean up docs.
cus-edit.el: pretty-print values.
dump-paths.el, find-paths.el, startup.el, setup-paths.el: fix problems/inconsistencies parsing options. support new
-no-packages option. merge code duplication in dump-paths and
startup.
lisp-mode.el: indent macrolet and labels correctly. update comments about
lisp-indent-function. flet already handled in cl.
apropos.el, auto-save.el, buff-menu.el, cl-extra.el, dragdrop.el, faces.el, files.el, fill.el, font-lock.el, font.el, gtk-faces.el, gui.el, help.el, hyper-apropos.el, info.el, isearch-mode.el, keymap.el, lisp-mnt.el, mouse.el, package-admin.el, package-get.el, printer.el, process.el, resize-minibuffer.el, simple.el, toolbar-items.el, wid-edit.el, win32-native.el: fix warnings.
very-early-lisp.el: update docs.
mule\chinese.el, mule\japan-util.el: fix warnings.
mule\chinese.el, mule\japan-util.el: fix warnings.
behavior-defs.el: fix errors with require.
bytecomp-runtime.el: add new funs {when,and}-{f}boundp, clean up docs.
cus-edit.el: pretty-print values.
dump-paths.el, find-paths.el, startup.el, setup-paths.el: fix problems/inconsistencies parsing options. support new
-no-packages option. merge code duplication in dump-paths and
startup.
lisp-mode.el: indent macrolet and labels correctly. update comments about
lisp-indent-function. flet already handled in cl.
apropos.el, auto-save.el, buff-menu.el, cl-extra.el, dragdrop.el, faces.el, files.el, fill.el, font-lock.el, font.el, gtk-faces.el, gui.el, help.el, hyper-apropos.el, info.el, isearch-mode.el, keymap.el, lisp-mnt.el, mouse.el, package-admin.el, package-get.el, printer.el, process.el, resize-minibuffer.el, simple.el, toolbar-items.el, wid-edit.el, win32-native.el: fix warnings.
very-early-lisp.el: update docs.
mule\chinese.el, mule\japan-util.el: fix warnings.
Makefile.in.in: Use -no-packages to avoid problems with package files shadowing
core files (e.g. unicode.el in mule-ucs).
Makefile.in.in: Use -no-packages to avoid problems with package files shadowing
core files (e.g. unicode.el in mule-ucs).
author | ben |
---|---|
date | Fri, 15 Mar 2002 07:43:43 +0000 |
parents | 943eaba38521 |
children | 026c5bf9c134 |
comparison
equal
deleted
inserted
replaced
775:7d972c3de90a | 776:79940b592197 |
---|---|
432 int inhibit_site_lisp; | 432 int inhibit_site_lisp; |
433 | 433 |
434 /* Nonzero means don't perform site-modules searches at startup */ | 434 /* Nonzero means don't perform site-modules searches at startup */ |
435 int inhibit_site_modules; | 435 int inhibit_site_modules; |
436 | 436 |
437 /* Nonzero means don't load user-init or site-start file */ | |
438 int vanilla_inhibiting; | |
439 | |
437 /* Nonzero means don't respect early packages at startup */ | 440 /* Nonzero means don't respect early packages at startup */ |
438 int inhibit_early_packages; | 441 int inhibit_early_packages; |
442 | |
443 /* Nonzero means don't respect any packages at startup -- act as if they | |
444 don't exist. */ | |
445 int inhibit_all_packages; | |
439 | 446 |
440 /* Nonzero means don't load package autoloads at startup */ | 447 /* Nonzero means don't load package autoloads at startup */ |
441 int inhibit_autoloads; | 448 int inhibit_autoloads; |
442 | 449 |
443 /* Nonzero means don't load the dump file (ignored if not PDUMP) */ | 450 /* Nonzero means don't load the dump file (ignored if not PDUMP) */ |
595 return Fcopy_sequence (Vinvocation_directory); | 602 return Fcopy_sequence (Vinvocation_directory); |
596 } | 603 } |
597 | 604 |
598 | 605 |
599 | 606 |
600 /* Test whether the next argument in ARGV matches SSTR or a prefix of | 607 /* Test whether the next argument in ARGV matches SSTR or a prefix of LSTR |
601 LSTR (at least MINLEN characters). If so, then if VALPTR is non-null | 608 (at least MINLEN characters; if MINLEN is 0, set to size of LSTR). If |
602 (the argument is supposed to have a value) store in *VALPTR either | 609 so, then if VALPTR is non-null (the argument is supposed to have a |
603 the next argument or the portion of this one after the equal sign. | 610 value) store in *VALPTR either the next argument or the portion of this |
604 ARGV is read starting at position *SKIPPTR; this index is advanced | 611 one after the equal sign. ARGV is read starting at position *SKIPPTR; |
605 by the number of arguments used. | 612 this index is advanced by the number of arguments used. |
606 | 613 |
607 Too bad we can't just use getopt for all of this, but we don't have | 614 Too bad we can't just use getopt for all of this, but we don't have |
608 enough information to do it right. */ | 615 enough information to do it right. */ |
609 | 616 |
610 static int | 617 static int |
633 *skipptr += 1; | 640 *skipptr += 1; |
634 return 1; | 641 return 1; |
635 } | 642 } |
636 arglen = (valptr != NULL && (p = strchr (arg, '=')) != NULL | 643 arglen = (valptr != NULL && (p = strchr (arg, '=')) != NULL |
637 ? p - arg : (int) strlen (arg)); | 644 ? p - arg : (int) strlen (arg)); |
645 if (lstr && !minlen) | |
646 minlen = strlen (lstr); | |
638 if (lstr == 0 || arglen < minlen || strncmp (arg, lstr, arglen) != 0) | 647 if (lstr == 0 || arglen < minlen || strncmp (arg, lstr, arglen) != 0) |
639 return 0; | 648 return 0; |
640 else if (valptr == NULL) | 649 else if (valptr == NULL) |
641 { | 650 { |
642 *skipptr += 1; | 651 *skipptr += 1; |
715 | 724 |
716 #ifdef NeXT | 725 #ifdef NeXT |
717 /* 19-Jun-1995 -baw | 726 /* 19-Jun-1995 -baw |
718 * NeXT secret magic, ripped from Emacs-for-NS by Carl Edman | 727 * NeXT secret magic, ripped from Emacs-for-NS by Carl Edman |
719 * <cedman@princeton.edu>. Note that even Carl doesn't know what this | 728 * <cedman@princeton.edu>. Note that even Carl doesn't know what this |
720 * does; it was provided by NeXT, and it presumable makes NS's mallocator | 729 * does; it was provided by NeXT, and it presumably makes NS's mallocator |
721 * work with dumping. But malloc_jumpstart() and malloc_freezedry() in | 730 * work with dumping. But malloc_jumpstart() and malloc_freezedry() in |
722 * unexnext.c are both completely undocumented, even in NS header files! | 731 * unexnext.c are both completely undocumented, even in NS header files! |
723 * But hey, it solves all NS related memory problems, so who's | 732 * But hey, it solves all NS related memory problems, so who's |
724 * complaining? */ | 733 * complaining? */ |
725 if (initialized && malloc_jumpstart (malloc_cookie) != 0) | 734 if (initialized && malloc_jumpstart (malloc_cookie) != 0) |
788 inhibit_window_system = 0; | 797 inhibit_window_system = 0; |
789 #else | 798 #else |
790 inhibit_window_system = 1; | 799 inhibit_window_system = 1; |
791 #endif | 800 #endif |
792 | 801 |
793 /* Handle the -sd/--show-dump-id switch, which means show the hex dump_id and quit */ | 802 /* NOTE NOTE NOTE: Keep the following args in sync with the big list of |
794 if (argmatch (argv, argc, "-sd", "--show-dump-id", 9, NULL, &skip_args)) | 803 arguments below in standard_args[], with the help text in startup.el, |
804 and with the list of non-clobbered variables near where pdump_load() | |
805 is called! */ | |
806 | |
807 /* Handle the -sd/--show-dump-id switch, which means show the hex dump_id | |
808 and quit */ | |
809 if (argmatch (argv, argc, "-sd", "--show-dump-id", 0, NULL, &skip_args)) | |
795 { | 810 { |
796 #ifdef PDUMP | 811 #ifdef PDUMP |
797 printf ("%08x\n", dump_id); | 812 printf ("%08x\n", dump_id); |
798 #else | 813 #else |
799 printf ("Portable dumper not configured; -sd just forces exit.\n"); | 814 printf ("Portable dumper not configured; -sd just forces exit.\n"); |
802 } | 817 } |
803 | 818 |
804 /* Handle the -t switch, which specifies filename to use as terminal */ | 819 /* Handle the -t switch, which specifies filename to use as terminal */ |
805 { | 820 { |
806 Extbyte *term; | 821 Extbyte *term; |
807 if (argmatch (argv, argc, "-t", "--terminal", 4, &term, &skip_args)) | 822 if (argmatch (argv, argc, "-t", "--terminal", 0, &term, &skip_args)) |
808 { | 823 { |
809 retry_close (0); | 824 retry_close (0); |
810 retry_close (1); | 825 retry_close (1); |
811 if (open (term, O_RDWR | OPEN_BINARY, 2) < 0) | 826 if (open (term, O_RDWR | OPEN_BINARY, 2) < 0) |
812 fatal ("%s: %s", term, strerror (errno)); | 827 fatal ("%s: %s", term, strerror (errno)); |
820 stderr_out ("Using %s", term); | 835 stderr_out ("Using %s", term); |
821 inhibit_window_system = 1; /* -t => -nw */ | 836 inhibit_window_system = 1; /* -t => -nw */ |
822 } | 837 } |
823 } | 838 } |
824 | 839 |
825 /* Handle the --no-dump-file/-nd switch, which means don't load the dump file (ignored when not using pdump) */ | 840 /* Handle the --no-dump-file/-nd switch, which means don't load the dump |
826 if (argmatch (argv, argc, "-nd", "--no-dump-file", 7, NULL, &skip_args)) | 841 file (ignored when not using pdump) */ |
827 { | 842 if (argmatch (argv, argc, "-nd", "--no-dump-file", 0, NULL, &skip_args)) |
828 nodumpfile = 1; | 843 nodumpfile = 1; |
829 } | |
830 | 844 |
831 /* Handle -nw switch */ | 845 /* Handle -nw switch */ |
832 if (argmatch (argv, argc, "-nw", "--no-windows", 6, NULL, &skip_args)) | 846 if (argmatch (argv, argc, "-nw", "--no-windows", 0, NULL, &skip_args)) |
833 inhibit_window_system = 1; | 847 inhibit_window_system = 1; |
834 | 848 |
835 /* Handle the -batch switch, which means don't do interactive display. */ | 849 /* Handle the -batch switch, which means don't do interactive display. */ |
836 if (argmatch (argv, argc, "-batch", "--batch", 5, NULL, &skip_args)) | 850 if (argmatch (argv, argc, "-batch", "--batch", 0, NULL, &skip_args)) |
837 { | 851 { |
838 #if 0 /* I don't think this is correct. */ | 852 #if 0 /* I don't think this is correct. */ |
839 inhibit_autoloads = 1; | 853 inhibit_autoloads = 1; |
840 #endif | 854 #endif |
841 noninteractive = 1; | 855 noninteractive = 1; |
844 #ifdef WIN32_NATIVE | 858 #ifdef WIN32_NATIVE |
845 /* Handle the -nuni switch, which forces XEmacs to use the ANSI | 859 /* Handle the -nuni switch, which forces XEmacs to use the ANSI |
846 versions of Unicode-split API's even on Windows NT, which has | 860 versions of Unicode-split API's even on Windows NT, which has |
847 full Unicode support. This helps flush out problems in the code | 861 full Unicode support. This helps flush out problems in the code |
848 we've written to convert between ANSI and Unicode. */ | 862 we've written to convert between ANSI and Unicode. */ |
849 if (argmatch (argv, argc, "-nuni", "--no-unicode-lib-calls", 6, NULL, | 863 if (argmatch (argv, argc, "-nuni", "--no-unicode-lib-calls", 0, NULL, |
850 &skip_args)) | 864 &skip_args)) |
851 no_mswin_unicode_lib_calls = 1; | 865 no_mswin_unicode_lib_calls = 1; |
852 #endif /* WIN32_NATIVE */ | 866 #endif /* WIN32_NATIVE */ |
853 | 867 |
854 /* #### is it correct that -debug-paths is handled here (and presumably | |
855 removed), and then checked again below? */ | |
856 if (argmatch (argv, argc, "-debug-paths", "--debug-paths", | 868 if (argmatch (argv, argc, "-debug-paths", "--debug-paths", |
857 11, NULL, &skip_args)) | 869 0, NULL, &skip_args)) |
858 debug_paths = 1; | 870 debug_paths = 1; |
859 | 871 |
860 /* Partially handle -no-autoloads, -no-early-packages and -vanilla. Packages */ | 872 /* Handle (maybe partially) some inhibiting flags. Packages are searched |
861 /* are searched prior to the rest of the command line being parsed in */ | 873 prior to the rest of the command line being parsed in startup.el. */ |
862 /* startup.el */ | 874 |
875 if (argmatch (argv, argc, "-no-packages", "--no-packages", | |
876 0, NULL, &skip_args)) | |
877 { | |
878 inhibit_all_packages = 1; | |
879 inhibit_early_packages = 1; | |
880 vanilla_inhibiting = 1; | |
881 } | |
882 | |
863 if (argmatch (argv, argc, "-no-early-packages", "--no-early-packages", | 883 if (argmatch (argv, argc, "-no-early-packages", "--no-early-packages", |
864 6, NULL, &skip_args)) | 884 0, NULL, &skip_args)) |
885 inhibit_early_packages = 1; | |
886 | |
887 #ifdef HAVE_SHLIB | |
888 if (argmatch (argv, argc, "-no-site-modules", "--no-site-modules", | |
889 0, NULL, &skip_args)) | |
890 #endif | |
891 inhibit_site_modules = 1; | |
892 | |
893 if (argmatch (argv, argc, "-vanilla", "--vanilla", | |
894 0, NULL, &skip_args)) | |
865 { | 895 { |
866 inhibit_early_packages = 1; | 896 inhibit_early_packages = 1; |
867 skip_args--; | 897 vanilla_inhibiting = 1; |
868 } | 898 } |
869 #ifdef HAVE_SHLIB | 899 |
870 if (argmatch (argv, argc, "-no-site-modules", "--no-site-modules", | 900 if (argmatch (argv, argc, "-no-autoloads", "--no-autoloads", |
871 9, NULL, &skip_args)) | 901 0, NULL, &skip_args)) |
872 { | 902 { |
873 inhibit_site_modules = 1; | 903 inhibit_autoloads = 1; |
874 skip_args--; | 904 inhibit_early_packages = 1; |
905 vanilla_inhibiting = 1; | |
875 } | 906 } |
876 #else | |
877 inhibit_site_modules = 1; | |
878 #endif | |
879 if (argmatch (argv, argc, "-vanilla", "--vanilla", | |
880 7, NULL, &skip_args)) | |
881 { | |
882 inhibit_early_packages = 1; | |
883 skip_args--; | |
884 } | |
885 | |
886 if (argmatch (argv, argc, "-no-autoloads", "--no-autoloads", | |
887 7, NULL, &skip_args)) | |
888 { | |
889 /* Inhibit everything */ | |
890 inhibit_autoloads = 1; | |
891 skip_args--; | |
892 } | |
893 | |
894 if (argmatch (argv, argc, "-debug-paths", "--debug-paths", | |
895 6, NULL, &skip_args)) | |
896 { | |
897 debug_paths = 1; | |
898 skip_args--; | |
899 } | |
900 | |
901 | 907 |
902 /* Partially handle the -version and -help switches: they imply -batch, | 908 /* Partially handle the -version and -help switches: they imply -batch, |
903 but are not removed from the list. */ | 909 but are not removed from the list. */ |
904 if (argmatch (argv, argc, "-help", "--help", 3, NULL, &skip_args)) | 910 if (argmatch (argv, argc, "-help", "--help", 3, NULL, &skip_args)) |
905 noninteractive = 1, skip_args--; | 911 noninteractive = 1, skip_args--; |
1040 dumped in building a --pdump XEmacs, but _before_ it is restored in | 1046 dumped in building a --pdump XEmacs, but _before_ it is restored in |
1041 normal operation. Thus the restored values overwrite the values | 1047 normal operation. Thus the restored values overwrite the values |
1042 XEmacs is getting at run-time. Such variables must be saved here, | 1048 XEmacs is getting at run-time. Such variables must be saved here, |
1043 and restored after loading the dumped data. | 1049 and restored after loading the dumped data. |
1044 | 1050 |
1045 Boy, this is ugly, but how else to do it? | 1051 (Remember: Only LISP-visible options that are set up to this point |
1052 need to be listed here.) | |
1046 */ | 1053 */ |
1047 | 1054 |
1048 /* noninteractive1 is saved in noninteractive, which isn't | 1055 /* noninteractive1 is saved in noninteractive, which isn't |
1049 LISP-visible */ | 1056 LISP-visible */ |
1050 int inhibit_early_packages_save = inhibit_early_packages; | 1057 int inhibit_early_packages_save = inhibit_early_packages; |
1051 int inhibit_autoloads_save = inhibit_autoloads; | 1058 int inhibit_autoloads_save = inhibit_autoloads; |
1059 int inhibit_all_packages_save = inhibit_all_packages; | |
1060 int vanilla_inhibiting_save = vanilla_inhibiting; | |
1052 int debug_paths_save = debug_paths; | 1061 int debug_paths_save = debug_paths; |
1053 /* #### Give inhibit-site-lisp a command switch? If so, uncomment: */ | 1062 int inhibit_site_lisp_save = inhibit_site_lisp; |
1054 /* int inhibit_site_lisp_save = inhibit_site_lisp; */ | |
1055 int inhibit_site_modules_save = inhibit_site_modules; | 1063 int inhibit_site_modules_save = inhibit_site_modules; |
1056 | 1064 |
1057 initialized = pdump_load (argv[0]); | 1065 initialized = pdump_load (argv[0]); |
1058 | 1066 |
1059 /* Now unstomp everything */ | 1067 /* Now unstomp everything */ |
1060 noninteractive1 = noninteractive; | 1068 noninteractive1 = noninteractive; |
1061 inhibit_early_packages = inhibit_early_packages_save; | 1069 inhibit_early_packages = inhibit_early_packages_save; |
1062 inhibit_autoloads = inhibit_autoloads_save; | 1070 inhibit_autoloads = inhibit_autoloads_save; |
1071 inhibit_all_packages = inhibit_all_packages_save; | |
1072 vanilla_inhibiting = vanilla_inhibiting_save; | |
1063 debug_paths = debug_paths_save; | 1073 debug_paths = debug_paths_save; |
1064 /* #### Give inhibit-site-lisp a command switch? If so, uncomment: */ | 1074 inhibit_site_lisp = inhibit_site_lisp_save; |
1065 /* inhibit_site_lisp = inhibit_site_lisp_save; */ | |
1066 inhibit_site_modules = inhibit_site_modules_save; | 1075 inhibit_site_modules = inhibit_site_modules_save; |
1067 | 1076 |
1068 if (initialized) | 1077 if (initialized) |
1069 run_temacs_argc = -1; | 1078 run_temacs_argc = -1; |
1070 else | 1079 else |
2314 int nargs; | 2323 int nargs; |
2315 }; | 2324 }; |
2316 | 2325 |
2317 static const struct standard_args standard_args[] = | 2326 static const struct standard_args standard_args[] = |
2318 { | 2327 { |
2319 /* Handled by main_1 above: */ | 2328 /* Handled by main_1 above: Each must have its own priority and must be |
2329 in the order mentioned in main_1. */ | |
2320 { "-sd", "--show-dump-id", 105, 0 }, | 2330 { "-sd", "--show-dump-id", 105, 0 }, |
2321 { "-t", "--terminal", 100, 1 }, | 2331 { "-t", "--terminal", 100, 1 }, |
2322 { "-nd", "--no-dump-file", 95, 0 }, | 2332 { "-nd", "--no-dump-file", 95, 0 }, |
2323 { "-nw", "--no-windows", 90, 0 }, | 2333 { "-nw", "--no-windows", 90, 0 }, |
2324 { "-batch", "--batch", 85, 0 }, | 2334 { "-batch", "--batch", 85, 0 }, |
2325 #ifdef WIN32_NATIVE | 2335 #ifdef WIN32_NATIVE |
2326 { "-nuni", "--no-unicode-lib-calls", 83, 0 }, | 2336 { "-nuni", "--no-unicode-lib-calls", 83, 0 }, |
2327 #endif /* WIN32_NATIVE */ | 2337 #endif /* WIN32_NATIVE */ |
2328 { "-debug-paths", "--debug-paths", 82, 0 }, | 2338 { "-debug-paths", "--debug-paths", 82, 0 }, |
2329 { "-help", "--help", 80, 0 }, | 2339 { "-no-packages", "--no-packages", 81, 0 }, |
2330 { "-version", "--version", 75, 0 }, | 2340 { "-no-early-packages", "--no-early-packages", 80, 0 }, |
2331 { "-V", 0, 75, 0 }, | 2341 { "-no-site-modules", "--no-site-modules", 78, 0 }, |
2332 { "-d", "--display", 80, 1 }, | 2342 { "-vanilla", "--vanilla", 76, 0 }, |
2333 { "-display", 0, 80, 1 }, | 2343 { "-no-autoloads", "--no-autoloads", 74, 0 }, |
2334 { "-NXHost", 0, 79, 0 }, | 2344 { "-help", "--help", 72, 0 }, |
2335 { "-MachLaunch", 0, 79, 0}, | 2345 { "-version", "--version", 70, 0 }, |
2346 { "-V", 0, 68, 0 }, | |
2347 { "-d", "--display", 66, 1 }, | |
2348 { "-display", 0, 64, 1 }, | |
2336 | 2349 |
2337 /* Handled by command-line-early in startup.el: */ | 2350 /* Handled by command-line-early in startup.el: */ |
2338 { "-q", "--no-init-file", 50, 0 }, | 2351 { "-q", "--no-init-file", 50, 0 }, |
2339 { "-unmapped", 0, 50, 0 }, | |
2340 { "-no-init-file", 0, 50, 0 }, | 2352 { "-no-init-file", 0, 50, 0 }, |
2341 { "-vanilla", "--vanilla", 50, 0 }, | 2353 { "-no-site-file", "--no-site-file", 50, 0 }, |
2342 { "-no-autoloads", "--no-autoloads", 50, 0 }, | 2354 { "-unmapped", "--unmapped", 50, 0 }, |
2343 { "-no-site-file", "--no-site-file", 40, 0 }, | 2355 { "-u", "--user", 50, 1 }, |
2344 { "-no-early-packages", "--no-early-packages", 35, 0 }, | 2356 { "-user", 0, 50, 1 }, |
2345 { "-u", "--user", 30, 1 }, | 2357 { "-user-init-file", "--user-init-file", 50, 1 }, |
2346 { "-user", 0, 30, 1 }, | 2358 { "-user-init-directory", "--user-init-directory", 50, 1 }, |
2347 { "-debug-init", "--debug-init", 20, 0 }, | 2359 { "-debug-init", "--debug-init", 50, 0 }, |
2348 { "-debug-paths", "--debug-paths", 20, 0 }, | |
2349 { "-eol", "--enable-eol-detection", 20, 0 }, | |
2350 | 2360 |
2351 /* Xt options: */ | 2361 /* Xt options: */ |
2352 { "-i", "--icon-type", 15, 0 }, | 2362 { "-i", "--icon-type", 15, 0 }, |
2353 { "-itype", 0, 15, 0 }, | 2363 { "-itype", 0, 15, 0 }, |
2354 { "-iconic", "--iconic", 15, 0 }, | 2364 { "-iconic", "--iconic", 15, 0 }, |
2373 { "-rv", 0, 5, 0 }, | 2383 { "-rv", 0, 5, 0 }, |
2374 { "-reverse", 0, 5, 0 }, | 2384 { "-reverse", 0, 5, 0 }, |
2375 { "-hb", "--horizontal-scroll-bars", 5, 0 }, | 2385 { "-hb", "--horizontal-scroll-bars", 5, 0 }, |
2376 { "-vb", "--vertical-scroll-bars", 5, 0 }, | 2386 { "-vb", "--vertical-scroll-bars", 5, 0 }, |
2377 | 2387 |
2388 { "-eol", "--enable-eol-detection", 2, 0 }, | |
2389 { "-enable-eol-detection", 0, 2, 0 }, | |
2378 /* These have the same priority as ordinary file name args, | 2390 /* These have the same priority as ordinary file name args, |
2379 so they are not reordered with respect to those. */ | 2391 so they are not reordered with respect to those. */ |
2380 { "-L", "--directory", 0, 1 }, | 2392 { "-L", "--directory", 0, 1 }, |
2381 { "-directory", 0, 0, 1 }, | 2393 { "-directory", 0, 0, 1 }, |
2382 { "-l", "--load", 0, 1 }, | 2394 { "-l", "--load", 0, 1 }, |
3619 | 3631 |
3620 DEFSYMBOL (Qkill_emacs_hook); | 3632 DEFSYMBOL (Qkill_emacs_hook); |
3621 DEFSYMBOL (Qsave_buffers_kill_emacs); | 3633 DEFSYMBOL (Qsave_buffers_kill_emacs); |
3622 } | 3634 } |
3623 | 3635 |
3636 /* Yuck! These variables may get set from command-line options when | |
3637 dumping; if we don't clear them, they will still be on once the dumped | |
3638 XEmacs reloads. (not an issue with pdump, as we kludge around this in | |
3639 main_1().) */ | |
3640 | |
3641 void | |
3642 zero_out_command_line_status_vars (void) | |
3643 { | |
3644 vanilla_inhibiting = 0; | |
3645 inhibit_early_packages = 0; | |
3646 inhibit_all_packages = 0; | |
3647 inhibit_autoloads = 0; | |
3648 debug_paths = 0; | |
3649 #ifndef INHIBIT_SITE_LISP | |
3650 inhibit_site_lisp = 0; | |
3651 #else | |
3652 inhibit_site_lisp = 1; | |
3653 #endif | |
3654 #ifndef INHIBIT_SITE_MODULES | |
3655 inhibit_site_modules = 0; | |
3656 #else | |
3657 inhibit_site_modules = 1; | |
3658 #endif | |
3659 } | |
3660 | |
3624 void | 3661 void |
3625 vars_of_emacs (void) | 3662 vars_of_emacs (void) |
3626 { | 3663 { |
3627 DEFVAR_BOOL ("suppress-early-error-handler-backtrace", | 3664 DEFVAR_BOOL ("suppress-early-error-handler-backtrace", |
3628 &suppress_early_error_handler_backtrace /* | 3665 &suppress_early_error_handler_backtrace /* |
3648 The value is simply the value of environment variable PATH on startup | 3685 The value is simply the value of environment variable PATH on startup |
3649 if XEmacs was found there. | 3686 if XEmacs was found there. |
3650 */ ); | 3687 */ ); |
3651 | 3688 |
3652 #if 0 /* FSFmacs */ | 3689 #if 0 /* FSFmacs */ |
3653 xxDEFVAR_LISP ("installation-directory", &Vinstallation_directory, | 3690 xxDEFVAR_LISP ("installation-directory", &Vinstallation_directory /* |
3654 "A directory within which to look for the `lib-src' and `etc' directories.\n" | 3691 A directory within which to look for the `lib-src' and `etc' directories. |
3655 "This is non-nil when we can't find those directories in their standard\n" | 3692 This is non-nil when we can't find those directories in their standard |
3656 "installed locations, but we can find them\n" | 3693 installed locations, but we can find them ear where the XEmacs executable |
3657 "near where the XEmacs executable was found."); | 3694 was found. |
3695 */ ); | |
3658 #endif | 3696 #endif |
3659 | 3697 |
3660 DEFVAR_LISP ("system-type", &Vsystem_type /* | 3698 DEFVAR_LISP ("system-type", &Vsystem_type /* |
3661 Symbol indicating type of operating system you are using. | 3699 Symbol indicating type of operating system you are using. |
3662 */ ); | 3700 */ ); |
3752 */ | 3790 */ |
3753 DEFVAR_BOOL ("noninteractive", &noninteractive1 /* | 3791 DEFVAR_BOOL ("noninteractive", &noninteractive1 /* |
3754 Non-nil means XEmacs is running without interactive terminal. | 3792 Non-nil means XEmacs is running without interactive terminal. |
3755 */ ); | 3793 */ ); |
3756 | 3794 |
3795 DEFVAR_BOOL ("vanilla-inhibiting", &vanilla_inhibiting /* | |
3796 Set to non-nil when the user-init and site-start files should not be loaded. | |
3797 */ ); | |
3798 | |
3757 DEFVAR_BOOL ("inhibit-early-packages", &inhibit_early_packages /* | 3799 DEFVAR_BOOL ("inhibit-early-packages", &inhibit_early_packages /* |
3758 Set to non-nil when the early packages should not be respected at startup. | 3800 Set to non-nil when the early packages should not be respected at startup. |
3801 */ ); | |
3802 | |
3803 DEFVAR_BOOL ("inhibit-all-packages", &inhibit_all_packages /* | |
3804 Set to non-nil when the no packages should not be respected at startup. | |
3805 XEmacs will utterly ignore the packages -- not in load-path, not set up as | |
3806 autoloads, nothing. | |
3759 */ ); | 3807 */ ); |
3760 | 3808 |
3761 DEFVAR_BOOL ("inhibit-autoloads", &inhibit_autoloads /* | 3809 DEFVAR_BOOL ("inhibit-autoloads", &inhibit_autoloads /* |
3762 Set to non-nil when autoloads should not be loaded at startup. | 3810 Set to non-nil when autoloads should not be loaded at startup. |
3763 */ ); | 3811 */ ); |