Mercurial > emacs
comparison src/emacs.c @ 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 | 6132e8418cf3 |
comparison
equal
deleted
inserted
replaced
97286:fb10dad2c427 | 97287:f152a8f9c82f |
---|---|
1335 if (!strncmp(argv[skip_args], "-psn", 4)) | 1335 if (!strncmp(argv[skip_args], "-psn", 4)) |
1336 { | 1336 { |
1337 skip_args += 1; | 1337 skip_args += 1; |
1338 chdir (getenv ("HOME")); | 1338 chdir (getenv ("HOME")); |
1339 } | 1339 } |
1340 else | 1340 else if (skip_args+1 < argc && !strncmp(argv[skip_args+1], "-psn", 4)) |
1341 { | 1341 { |
1342 if (skip_args+1 < argc && !strncmp(argv[skip_args+1], "-psn", 4)) | 1342 skip_args += 2; |
1343 skip_args += 2; | |
1344 chdir (getenv ("HOME")); | 1343 chdir (getenv ("HOME")); |
1345 } | 1344 } |
1346 } | 1345 } |
1347 #endif | 1346 #endif |
1348 /* This used for remote operation.. not fully implemented yet. */ | 1347 /* This used for remote operation.. not fully implemented yet. */ |