aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ChangeLog3
-rw-r--r--src/emacs.c9
2 files changed, 9 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 48d681fed67..3ef9c636f0a 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
12013-10-20 Jan Djärv <jan.h.d@swipnet.se> 12013-10-20 Jan Djärv <jan.h.d@swipnet.se>
2 2
3 * emacs.c (main): On Cocoa, if GUI session and 0 is not a tty,
4 chdir to HOME (bug#15607).
5
3 * nsterm.m (Qcocoa, Qgnustep): New variables. 6 * nsterm.m (Qcocoa, Qgnustep): New variables.
4 (syms_of_nsterm): Defsym Qcocoa, Qgnustep. Fprovide appropriate one. 7 (syms_of_nsterm): Defsym Qcocoa, Qgnustep. Fprovide appropriate one.
5 (ns_get_color): Make selection color work for GNUStep also. 8 (ns_get_color): Make selection color work for GNUStep also.
diff --git a/src/emacs.c b/src/emacs.c
index 06b8d290cae..540084abc44 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -1187,10 +1187,13 @@ Using an Emacs configured with --with-x-toolkit=lucid does not have this problem
1187 if (!noninteractive) 1187 if (!noninteractive)
1188 { 1188 {
1189#ifdef NS_IMPL_COCOA 1189#ifdef NS_IMPL_COCOA
1190 if (skip_args < argc) 1190 /* Started from GUI? */
1191 /* FIXME: Do the right thing if getenv returns NULL, or if
1192 chdir fails. */
1193 if (! inhibit_window_system && ! isatty (0))
1194 chdir (getenv ("HOME"));
1195 else if (skip_args < argc)
1191 { 1196 {
1192 /* FIXME: Do the right thing if getenv returns NULL, or if
1193 chdir fails. */
1194 if (!strncmp (argv[skip_args], "-psn", 4)) 1197 if (!strncmp (argv[skip_args], "-psn", 4))
1195 { 1198 {
1196 skip_args += 1; 1199 skip_args += 1;