aboutsummaryrefslogtreecommitdiffstats
path: root/src/emacs.c
diff options
context:
space:
mode:
authorGlenn Morris <[email protected]>2008-03-14 02:40:21 +0000
committerGlenn Morris <[email protected]>2008-03-14 02:40:21 +0000
commit21a4ff8e39ce8721d561584a118029536a573993 (patch)
treeca3886a6476cf0ed42dd08ca75152bb1f3ed9914 /src/emacs.c
parent1d1100d7ace478057cc529f7e35aa3f2396c024a (diff)
(main): Revert previous change.
(standard_args): Revert -internal-script back to -scriptload, and remove the long-option form.
Diffstat (limited to 'src/emacs.c')
-rw-r--r--src/emacs.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/emacs.c b/src/emacs.c
index d6ce9b1625..cafc64601d 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -1133,10 +1133,10 @@ main (argc, argv
if (argmatch (argv, argc, "-script", "--script", 3, &junk, &skip_args))
{
noninteractive = 1; /* Set batch mode. */
- /* Convert --script to -internal-script, un-skip it, and sort again
+ /* Convert --script to -scriptload, un-skip it, and sort again
so that it will be handled in proper sequence. */
/* FIXME broken for --script=FILE - is that supposed to work? */
- argv[skip_args - 1] = "-internal-script";
+ argv[skip_args - 1] = "-scriptload";
skip_args -= 2;
sort_args (argc, argv);
}
@@ -1872,11 +1872,11 @@ struct standard_args standard_args[] =
{ "-directory", 0, 0, 1 },
{ "-l", "--load", 0, 1 },
{ "-load", 0, 0, 1 },
- /* This was --scriptload, but that confuses sort_args, because then
- the --script long option seems to match twice; ie you can't have
- a long option which is a prefix of another long option.
- In any case, this is entirely an internal option. */
- { "-internal-script", "--internal-script", 0, 1 },
+ /* This has no longname, because using --scriptload confuses sort_args,
+ because then the --script long option seems to match twice; ie
+ you can't have a long option which is a prefix of another long
+ option. In any case, this is entirely an internal option. */
+ { "-scriptload", NULL, 0, 1 },
{ "-f", "--funcall", 0, 1 },
{ "-funcall", 0, 0, 1 },
{ "-eval", "--eval", 0, 1 },