# HG changeset patch # User Adrian Robert # Date 1217953027 0 # Node ID fb10dad2c4275035ac2b489923f54c778ca1c6e9 # Parent 6c695773401dbe496300a8d7497aa1d7f441746b set working dir to /Users/arobert under NS when psn argument given diff -r 6c695773401d -r fb10dad2c427 src/ChangeLog --- a/src/ChangeLog Tue Aug 05 15:04:03 2008 +0000 +++ b/src/ChangeLog Tue Aug 05 16:17:07 2008 +0000 @@ -1,3 +1,8 @@ +2008-08-04 Adrian Robert + + * emacs.c (main): Under NS, set working dir to $HOME when get a "psn" + argument. + 2008-08-05 Juanma Barranquero * buffer.c (syms_of_buffer) : diff -r 6c695773401d -r fb10dad2c427 src/emacs.c --- a/src/emacs.c Tue Aug 05 15:04:03 2008 +0000 +++ b/src/emacs.c Tue Aug 05 16:17:07 2008 +0000 @@ -1335,11 +1335,13 @@ if (!strncmp(argv[skip_args], "-psn", 4)) { skip_args += 1; + chdir (getenv ("HOME")); } else { if (skip_args+1 < argc && !strncmp(argv[skip_args+1], "-psn", 4)) skip_args += 2; + chdir (getenv ("HOME")); } } #endif