changeset 97287:f152a8f9c82f

emacs.c (main): Under NS, set working dir to HOME when get a 'psn' argument.
author Adrian Robert <Adrian.B.Robert@gmail.com>
date Tue, 05 Aug 2008 17:33:05 +0000
parents fb10dad2c427
children b0e0f868bbd7
files src/ChangeLog src/emacs.c
diffstat 2 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Tue Aug 05 16:17:07 2008 +0000
+++ b/src/ChangeLog	Tue Aug 05 17:33:05 2008 +0000
@@ -1,6 +1,6 @@
 2008-08-04  Adrian Robert  <Adrian.B.Robert@gmail.com>
 
-	* emacs.c (main): Under NS, set working dir to $HOME when get a "psn"
+	* emacs.c (main): Under NS, set working dir to HOME when get a "psn"
 	argument.
 
 2008-08-05  Juanma Barranquero  <lekktu@gmail.com>
--- a/src/emacs.c	Tue Aug 05 16:17:07 2008 +0000
+++ b/src/emacs.c	Tue Aug 05 17:33:05 2008 +0000
@@ -1337,10 +1337,9 @@
               skip_args += 1;
               chdir (getenv ("HOME"));
             }
-          else
+          else if (skip_args+1 < argc && !strncmp(argv[skip_args+1], "-psn", 4))
             {
-              if (skip_args+1 < argc && !strncmp(argv[skip_args+1], "-psn", 4))
-                  skip_args += 2;
+              skip_args += 2;
               chdir (getenv ("HOME"));
             }
         }