]> git.eshelyaron.com Git - emacs.git/commitdiff
set working dir to /Users/arobert under NS when psn argument given
authorAdrian Robert <Adrian.B.Robert@gmail.com>
Tue, 5 Aug 2008 16:17:07 +0000 (16:17 +0000)
committerAdrian Robert <Adrian.B.Robert@gmail.com>
Tue, 5 Aug 2008 16:17:07 +0000 (16:17 +0000)
src/ChangeLog
src/emacs.c

index cf158e2cdfbdb51a21c0d4aea26e6a89f32c816f..ce5e7a3a04ab78154fea1a475023f66f8be73071 100644 (file)
@@ -1,3 +1,8 @@
+2008-08-04  Adrian Robert  <Adrian.B.Robert@gmail.com>
+
+       * emacs.c (main): Under NS, set working dir to $HOME when get a "psn"
+       argument.
+
 2008-08-05  Juanma Barranquero  <lekktu@gmail.com>
 
        * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
index 1174f18f449376669190e4bcc56af67fbc86fc03..0f9d3fd555482857958bbe10ed5e92d28c37b8a1 100644 (file)
@@ -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