diff options
| author | Eli Zaretskii | 2004-02-21 17:45:10 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2004-02-21 17:45:10 +0000 |
| commit | f8125c39dd43cc91abbbc3f584e2125136ce5f3e (patch) | |
| tree | dc109b97834d13a38e8d2d2e0f6a8cf6fa9f5f4c | |
| parent | 9c5609e8cccc9eec6ec9444f91e5ed2c554f6b50 (diff) | |
| download | emacs-f8125c39dd43cc91abbbc3f584e2125136ce5f3e.tar.gz emacs-f8125c39dd43cc91abbbc3f584e2125136ce5f3e.zip | |
(USAGE1): Split into two halves.
(USAGE2): Second half of the old USAGE1.
(USAGE3): Renamed from USAGE2.
(USAGE4): Renamed from USAGE3.
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/emacs.c | 16 |
2 files changed, 17 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index b3cae7c7296..24dff3e8d25 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2004-02-21 Eli Zaretskii <eliz@elta.co.il> | ||
| 2 | |||
| 3 | * emacs.c (USAGE1): Split into two halves. | ||
| 4 | (USAGE2): Second half of the old USAGE1. | ||
| 5 | (USAGE3): Renamed from USAGE2. | ||
| 6 | (USAGE4): Renamed from USAGE3. | ||
| 7 | |||
| 1 | 2004-02-21 Juri Linkov <juri@jurta.org> | 8 | 2004-02-21 Juri Linkov <juri@jurta.org> |
| 2 | 9 | ||
| 3 | * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2. | 10 | * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2. |
diff --git a/src/emacs.c b/src/emacs.c index 54c2b1dbf76..283f7949bfd 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -220,6 +220,8 @@ int initial_argc; | |||
| 220 | static void sort_args (); | 220 | static void sort_args (); |
| 221 | void syms_of_emacs (); | 221 | void syms_of_emacs (); |
| 222 | 222 | ||
| 223 | /* MSVC needs each string be shorter than 2048 bytes, so the usage | ||
| 224 | strings below are split to not overflow this limit. */ | ||
| 223 | #define USAGE1 "\ | 225 | #define USAGE1 "\ |
| 224 | Usage: %s [OPTION-OR-FILENAME]...\n\ | 226 | Usage: %s [OPTION-OR-FILENAME]...\n\ |
| 225 | \n\ | 227 | \n\ |
| @@ -246,7 +248,9 @@ Initialization options:\n\ | |||
| 246 | --terminal, -t DEVICE use DEVICE for terminal I/O\n\ | 248 | --terminal, -t DEVICE use DEVICE for terminal I/O\n\ |
| 247 | --unibyte, --no-multibyte run Emacs in unibyte mode\n\ | 249 | --unibyte, --no-multibyte run Emacs in unibyte mode\n\ |
| 248 | --user, -u USER load ~USER/.emacs instead of your own\n\ | 250 | --user, -u USER load ~USER/.emacs instead of your own\n\ |
| 249 | \n\ | 251 | \n%s" |
| 252 | |||
| 253 | #define USAGE2 "\ | ||
| 250 | Action options:\n\ | 254 | Action options:\n\ |
| 251 | \n\ | 255 | \n\ |
| 252 | FILE visit FILE using find-file\n\ | 256 | FILE visit FILE using find-file\n\ |
| @@ -265,7 +269,7 @@ FILE visit FILE using find-file\n\ | |||
| 265 | --visit FILE visit FILE using find-file\n\ | 269 | --visit FILE visit FILE using find-file\n\ |
| 266 | \n" | 270 | \n" |
| 267 | 271 | ||
| 268 | #define USAGE2 "\ | 272 | #define USAGE3 "\ |
| 269 | Display options:\n\ | 273 | Display options:\n\ |
| 270 | \n\ | 274 | \n\ |
| 271 | --background-color, -bg COLOR window background color\n\ | 275 | --background-color, -bg COLOR window background color\n\ |
| @@ -304,7 +308,7 @@ Various environment variables and window system resources also affect\n\ | |||
| 304 | Emacs' operation. See the main documentation.\n\ | 308 | Emacs' operation. See the main documentation.\n\ |
| 305 | \n" | 309 | \n" |
| 306 | 310 | ||
| 307 | #define USAGE3 "\ | 311 | #define USAGE4 "\ |
| 308 | Report bugs to %s. First, please see the Bugs\n\ | 312 | Report bugs to %s. First, please see the Bugs\n\ |
| 309 | section of the Emacs manual or the file BUGS.\n" | 313 | section of the Emacs manual or the file BUGS.\n" |
| 310 | 314 | ||
| @@ -1064,9 +1068,9 @@ main (argc, argv | |||
| 1064 | /* Handle the --help option, which gives a usage message. */ | 1068 | /* Handle the --help option, which gives a usage message. */ |
| 1065 | if (argmatch (argv, argc, "-help", "--help", 3, NULL, &skip_args)) | 1069 | if (argmatch (argv, argc, "-help", "--help", 3, NULL, &skip_args)) |
| 1066 | { | 1070 | { |
| 1067 | printf (USAGE1, argv[0]); | 1071 | printf (USAGE1, argv[0], USAGE2); |
| 1068 | printf (USAGE2); | 1072 | printf (USAGE3); |
| 1069 | printf (USAGE3, bug_reporting_address ()); | 1073 | printf (USAGE4, bug_reporting_address ()); |
| 1070 | exit (0); | 1074 | exit (0); |
| 1071 | } | 1075 | } |
| 1072 | 1076 | ||