diff options
| author | Glenn Morris | 2008-03-13 03:04:04 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-03-13 03:04:04 +0000 |
| commit | a09a5b5bf7a958d5617b6e79fdc361eb2d35335c (patch) | |
| tree | 186b871b65ddf05f3c799b7fbec5138a91891205 /src | |
| parent | 0343a908fa13f0e56a364465601fa86a90036e82 (diff) | |
| download | emacs-a09a5b5bf7a958d5617b6e79fdc361eb2d35335c.tar.gz emacs-a09a5b5bf7a958d5617b6e79fdc361eb2d35335c.zip | |
(main, standard_args): Rename -scriptload to -internal-script.
Remove option -enable-font-backend.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/emacs.c | 23 |
2 files changed, 18 insertions, 10 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 72724275fbf..f747e726530 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-03-13 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * emacs.c (main, standard_args): Rename -scriptload to -internal-script. | ||
| 4 | Remove option -enable-font-backend. | ||
| 5 | |||
| 1 | 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer. | 8 | * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer. |
diff --git a/src/emacs.c b/src/emacs.c index 6c589ce1050..d6ce9b1625a 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -1133,9 +1133,10 @@ main (argc, argv | |||
| 1133 | if (argmatch (argv, argc, "-script", "--script", 3, &junk, &skip_args)) | 1133 | if (argmatch (argv, argc, "-script", "--script", 3, &junk, &skip_args)) |
| 1134 | { | 1134 | { |
| 1135 | noninteractive = 1; /* Set batch mode. */ | 1135 | noninteractive = 1; /* Set batch mode. */ |
| 1136 | /* Convert --script to --scriptload, un-skip it, and sort again | 1136 | /* Convert --script to -internal-script, un-skip it, and sort again |
| 1137 | so that it will be handled in proper sequence. */ | 1137 | so that it will be handled in proper sequence. */ |
| 1138 | argv[skip_args - 1] = "-scriptload"; | 1138 | /* FIXME broken for --script=FILE - is that supposed to work? */ |
| 1139 | argv[skip_args - 1] = "-internal-script"; | ||
| 1139 | skip_args -= 2; | 1140 | skip_args -= 2; |
| 1140 | sort_args (argc, argv); | 1141 | sort_args (argc, argv); |
| 1141 | } | 1142 | } |
| @@ -1427,12 +1428,8 @@ main (argc, argv | |||
| 1427 | 1428 | ||
| 1428 | #ifdef USE_FONT_BACKEND | 1429 | #ifdef USE_FONT_BACKEND |
| 1429 | enable_font_backend = 1; | 1430 | enable_font_backend = 1; |
| 1430 | if (argmatch (argv, argc, "-enable-font-backend", "--enable-font-backend", | 1431 | if (argmatch (argv, argc, "-disable-font-backend", "--disable-font-backend", |
| 1431 | 4, NULL, &skip_args)) | 1432 | 4, NULL, &skip_args)) |
| 1432 | enable_font_backend = 1; | ||
| 1433 | else if (argmatch (argv, argc, | ||
| 1434 | "-disable-font-backend", "--disable-font-backend", | ||
| 1435 | 4, NULL, &skip_args)) | ||
| 1436 | enable_font_backend = 0; | 1433 | enable_font_backend = 0; |
| 1437 | #endif /* USE_FONT_BACKEND */ | 1434 | #endif /* USE_FONT_BACKEND */ |
| 1438 | 1435 | ||
| @@ -1822,7 +1819,6 @@ struct standard_args standard_args[] = | |||
| 1822 | { "-unibyte", "--unibyte", 81, 0 }, | 1819 | { "-unibyte", "--unibyte", 81, 0 }, |
| 1823 | { "-no-multibyte", "--no-multibyte", 80, 0 }, | 1820 | { "-no-multibyte", "--no-multibyte", 80, 0 }, |
| 1824 | { "-nl", "--no-loadup", 70, 0 }, | 1821 | { "-nl", "--no-loadup", 70, 0 }, |
| 1825 | { "-enable-font-backend", "--enable-font-backend", 65, 0 }, | ||
| 1826 | { "-disable-font-backend", "--disable-font-backend", 65, 0 }, | 1822 | { "-disable-font-backend", "--disable-font-backend", 65, 0 }, |
| 1827 | /* -d must come last before the options handled in startup.el. */ | 1823 | /* -d must come last before the options handled in startup.el. */ |
| 1828 | { "-d", "--display", 60, 1 }, | 1824 | { "-d", "--display", 60, 1 }, |
| @@ -1876,7 +1872,11 @@ struct standard_args standard_args[] = | |||
| 1876 | { "-directory", 0, 0, 1 }, | 1872 | { "-directory", 0, 0, 1 }, |
| 1877 | { "-l", "--load", 0, 1 }, | 1873 | { "-l", "--load", 0, 1 }, |
| 1878 | { "-load", 0, 0, 1 }, | 1874 | { "-load", 0, 0, 1 }, |
| 1879 | { "-scriptload", "--scriptload", 0, 1 }, | 1875 | /* This was --scriptload, but that confuses sort_args, because then |
| 1876 | the --script long option seems to match twice; ie you can't have | ||
| 1877 | a long option which is a prefix of another long option. | ||
| 1878 | In any case, this is entirely an internal option. */ | ||
| 1879 | { "-internal-script", "--internal-script", 0, 1 }, | ||
| 1880 | { "-f", "--funcall", 0, 1 }, | 1880 | { "-f", "--funcall", 0, 1 }, |
| 1881 | { "-funcall", 0, 0, 1 }, | 1881 | { "-funcall", 0, 0, 1 }, |
| 1882 | { "-eval", "--eval", 0, 1 }, | 1882 | { "-eval", "--eval", 0, 1 }, |
| @@ -1987,6 +1987,9 @@ sort_args (argc, argv) | |||
| 1987 | fatal ("Option `%s' requires an argument\n", argv[from]); | 1987 | fatal ("Option `%s' requires an argument\n", argv[from]); |
| 1988 | from += options[from]; | 1988 | from += options[from]; |
| 1989 | } | 1989 | } |
| 1990 | /* FIXME When match < 0, shouldn't there be some error, | ||
| 1991 | or at least indication to the user that there was a | ||
| 1992 | problem? */ | ||
| 1990 | } | 1993 | } |
| 1991 | done: ; | 1994 | done: ; |
| 1992 | } | 1995 | } |