Mercurial > emacs
changeset 97286:fb10dad2c427
set working dir to /Users/arobert under NS when psn argument given
author | Adrian Robert <Adrian.B.Robert@gmail.com> |
---|---|
date | Tue, 05 Aug 2008 16:17:07 +0000 |
parents | 6c695773401d |
children | f152a8f9c82f |
files | src/ChangeLog src/emacs.c |
diffstat | 2 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 <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>:
--- 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