From 3d0a4431c9db5bcaf115e48c3b1968a834533304 Mon Sep 17 00:00:00 2001 From: Adrian Robert Date: Tue, 5 Aug 2008 16:17:07 +0000 Subject: [PATCH] set working dir to /Users/arobert under NS when psn argument given --- src/ChangeLog | 5 +++++ src/emacs.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index cf158e2cdfb..ce5e7a3a04a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -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 --git a/src/emacs.c b/src/emacs.c index 1174f18f449..0f9d3fd5554 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -1335,11 +1335,13 @@ main (int argc, char **argv) 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 -- 2.39.2