diff options
| author | Karoly Lorentey | 2005-12-03 14:25:50 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2005-12-03 14:25:50 +0000 |
| commit | 9ef706664e98e37e9633712126bae99869904677 (patch) | |
| tree | 193bce7424700e4c7d70f54b04f7f81d64525554 /src/emacs.c | |
| parent | 950bed4bb96d2a580818bdaab64a164c7c9a1c1e (diff) | |
| parent | 9f6efa0c78099f2f028c4db1db5a58567a1cfb4e (diff) | |
| download | emacs-9ef706664e98e37e9633712126bae99869904677.tar.gz emacs-9ef706664e98e37e9633712126bae99869904677.zip | |
Merged from miles@gnu.org--gnu-2005 (patch 659-663)
Patches applied:
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-659
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-660
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-661
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-662
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-663
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-445
Diffstat (limited to 'src/emacs.c')
| -rw-r--r-- | src/emacs.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/emacs.c b/src/emacs.c index 33941ae9227..ff1a40283fc 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -963,9 +963,15 @@ main (argc, argv | |||
| 963 | 963 | ||
| 964 | #ifdef MAC_OSX | 964 | #ifdef MAC_OSX |
| 965 | /* Skip process serial number passed in the form -psn_x_y as | 965 | /* Skip process serial number passed in the form -psn_x_y as |
| 966 | command-line argument. */ | 966 | command-line argument. The WindowServer adds this option when |
| 967 | Emacs is invoked from the Finder or by the `open' command. In | ||
| 968 | these cases, the working directory becomes `/', so we change it | ||
| 969 | to the user's home directory. */ | ||
| 967 | if (argc > skip_args + 1 && strncmp (argv[skip_args+1], "-psn_", 5) == 0) | 970 | if (argc > skip_args + 1 && strncmp (argv[skip_args+1], "-psn_", 5) == 0) |
| 968 | skip_args++; | 971 | { |
| 972 | chdir (getenv ("HOME")); | ||
| 973 | skip_args++; | ||
| 974 | } | ||
| 969 | #endif /* MAC_OSX */ | 975 | #endif /* MAC_OSX */ |
| 970 | 976 | ||
| 971 | #ifdef VMS | 977 | #ifdef VMS |