Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
947f5e01
Commit
947f5e01
authored
Oct 24, 2010
by
Jim Meyering
Committed by
Chong Yidong
Oct 24, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* emacs.c (argmatch): Don't treat "--" as "--chdir".
parent
43207249
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
src/ChangeLog
src/ChangeLog
+4
-0
src/emacs.c
src/emacs.c
+8
-7
No files found.
src/ChangeLog
View file @
947f5e01
2010-10-24 Jim Meyering <jim@meyering.net>
* emacs.c (argmatch): Don't treat "--" as "--chdir".
2010-10-24 Glenn Morris <rgm@gnu.org>
* w16select.c (syms_of_win16select) <selection-coding-system>:
...
...
src/emacs.c
View file @
947f5e01
...
...
@@ -829,13 +829,14 @@ main (int argc, char **argv)
printf
(
"see the file named COPYING.
\n
"
);
exit
(
0
);
}
if
(
argmatch
(
argv
,
argc
,
"-chdir"
,
"--chdir"
,
2
,
&
ch_to_dir
,
&
skip_args
))
if
(
chdir
(
ch_to_dir
)
==
-
1
)
{
fprintf
(
stderr
,
"%s: Can't chdir to %s: %s
\n
"
,
argv
[
0
],
ch_to_dir
,
strerror
(
errno
));
exit
(
1
);
}
if
(
argmatch
(
argv
,
argc
,
"-chdir"
,
"--chdir"
,
4
,
&
ch_to_dir
,
&
skip_args
))
if
(
chdir
(
ch_to_dir
)
==
-
1
)
{
fprintf
(
stderr
,
"%s: Can't chdir to %s: %s
\n
"
,
argv
[
0
],
ch_to_dir
,
strerror
(
errno
));
exit
(
1
);
}
#ifdef HAVE_PERSONALITY_LINUX32
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment