diff options
| author | Pavel Janík | 2001-10-31 15:11:35 +0000 |
|---|---|---|
| committer | Pavel Janík | 2001-10-31 15:11:35 +0000 |
| commit | 400d6fa9d2021f33a80dcbd6fe02422f90013074 (patch) | |
| tree | 73f4a76f2899d72bbd7e77548ad8eef38499ed43 /src | |
| parent | 9dbc908170e8df01173b4a6dad51b7d6d9d4a0d4 (diff) | |
| download | emacs-400d6fa9d2021f33a80dcbd6fe02422f90013074.tar.gz emacs-400d6fa9d2021f33a80dcbd6fe02422f90013074.zip | |
(USAGE1): Show command line option --no-window-system instead of
--no-windows in usage.
(standard_args): Rename --no-windows to --no-window-system.
(bug_reporting_address): Follow Emacs coding conventions.
Diffstat (limited to 'src')
| -rw-r--r-- | src/emacs.c | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/src/emacs.c b/src/emacs.c index c531dfc5071..8ba9470f437 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -234,7 +234,7 @@ Initialization options:\n\ | |||
| 234 | --no-init-file, -q load neither ~/.emacs nor default.el\n\ | 234 | --no-init-file, -q load neither ~/.emacs nor default.el\n\ |
| 235 | --no-shared-memory, -nl do not use shared memory\n\ | 235 | --no-shared-memory, -nl do not use shared memory\n\ |
| 236 | --no-site-file do not load site-start.el\n\ | 236 | --no-site-file do not load site-start.el\n\ |
| 237 | --no-windows, -nw don't communicate with X, ignoring $DISPLAY\n\ | 237 | --no-window-system, -nw don't communicate with X, ignoring $DISPLAY\n\ |
| 238 | --terminal, -t DEVICE use DEVICE for terminal I/O\n\ | 238 | --terminal, -t DEVICE use DEVICE for terminal I/O\n\ |
| 239 | --unibyte, --no-multibyte run Emacs in unibyte mode\n\ | 239 | --unibyte, --no-multibyte run Emacs in unibyte mode\n\ |
| 240 | --user, -u USER load ~USER/.emacs instead of your own\n\ | 240 | --user, -u USER load ~USER/.emacs instead of your own\n\ |
| @@ -722,9 +722,10 @@ void (*__malloc_initialize_hook) () = malloc_initialize_hook; | |||
| 722 | /* This function is used to determine an address to which bug report should | 722 | /* This function is used to determine an address to which bug report should |
| 723 | be sent. */ | 723 | be sent. */ |
| 724 | 724 | ||
| 725 | char *bug_reporting_address () | 725 | char * |
| 726 | bug_reporting_address () | ||
| 726 | { | 727 | { |
| 727 | int count=0; | 728 | int count = 0; |
| 728 | Lisp_Object temp; | 729 | Lisp_Object temp; |
| 729 | char *string; | 730 | char *string; |
| 730 | 731 | ||
| @@ -736,14 +737,17 @@ char *bug_reporting_address () | |||
| 736 | 737 | ||
| 737 | string = XSTRING (temp)->data; | 738 | string = XSTRING (temp)->data; |
| 738 | 739 | ||
| 739 | do { | 740 | /* Count dots in `emacs-version'. */ |
| 740 | if (*string=='.') | 741 | while (*string) |
| 741 | count++; | 742 | { |
| 742 | } while (string++,*string); | 743 | if (*string == '.') |
| 744 | count++; | ||
| 745 | string++; | ||
| 746 | } | ||
| 743 | 747 | ||
| 744 | /* When `emacs-version' has at least three dots, it is development or | 748 | /* When `emacs-version' has at least three dots, it is development or |
| 745 | pretest version of Emacs. */ | 749 | pretest version of Emacs. */ |
| 746 | return (count>=3) ? REPORT_EMACS_BUG_PRETEST_ADDRESS : REPORT_EMACS_BUG_ADDRESS; | 750 | return count >= 3 ? REPORT_EMACS_BUG_PRETEST_ADDRESS : REPORT_EMACS_BUG_ADDRESS; |
| 747 | } | 751 | } |
| 748 | 752 | ||
| 749 | 753 | ||
| @@ -999,7 +1003,10 @@ main (argc, argv, envp) | |||
| 999 | break; | 1003 | break; |
| 1000 | } | 1004 | } |
| 1001 | 1005 | ||
| 1002 | if (argmatch (argv, argc, "-nw", "--no-windows", 6, NULL, &skip_args)) | 1006 | /* Command line option --no-windows is deprecated and thus not mentioned |
| 1007 | in the manual and usage informations. */ | ||
| 1008 | if (argmatch (argv, argc, "-nw", "--no-window-system", 6, NULL, &skip_args) | ||
| 1009 | || argmatch (argv, argc, "-nw", "--no-windows", 6, NULL, &skip_args)) | ||
| 1003 | inhibit_window_system = 1; | 1010 | inhibit_window_system = 1; |
| 1004 | 1011 | ||
| 1005 | /* Handle the -batch switch, which means don't do interactive display. */ | 1012 | /* Handle the -batch switch, which means don't do interactive display. */ |
| @@ -1012,7 +1019,7 @@ main (argc, argv, envp) | |||
| 1012 | { | 1019 | { |
| 1013 | printf (USAGE1, argv[0]); | 1020 | printf (USAGE1, argv[0]); |
| 1014 | printf (USAGE2); | 1021 | printf (USAGE2); |
| 1015 | printf (USAGE3, bug_reporting_address()); | 1022 | printf (USAGE3, bug_reporting_address ()); |
| 1016 | exit (0); | 1023 | exit (0); |
| 1017 | } | 1024 | } |
| 1018 | 1025 | ||
| @@ -1620,6 +1627,7 @@ struct standard_args standard_args[] = | |||
| 1620 | { "-map", "--map-data", 130, 0 }, | 1627 | { "-map", "--map-data", 130, 0 }, |
| 1621 | #endif | 1628 | #endif |
| 1622 | { "-t", "--terminal", 120, 1 }, | 1629 | { "-t", "--terminal", 120, 1 }, |
| 1630 | { "-nw", "--no-window-system", 110, 0 }, | ||
| 1623 | { "-nw", "--no-windows", 110, 0 }, | 1631 | { "-nw", "--no-windows", 110, 0 }, |
| 1624 | { "-batch", "--batch", 100, 0 }, | 1632 | { "-batch", "--batch", 100, 0 }, |
| 1625 | { "-help", "--help", 90, 0 }, | 1633 | { "-help", "--help", 90, 0 }, |