[comp.emacs] Help needed on suspend-emacs/directories/putenv

jgy@hropus.UUCP (John Young) (03/31/88)

I'm not a lisp person so I'm looking for some suggestions on
solutions to the following problem;
I'm on a System V machine which does not have job contorl, therefore
^Z (suspend-emacs) causes a "new" interactive shell to be started
with the current directory being that indicated by the default-directory
variable of whichever buffer I was in when I hit ^Z.
Often what happens is I do some work, cd around, maybe looking for
files or something (please, no questions like
 "why not do it from emacs" please),  I then ^D or exit back to my
emacs session, wanting to edit a file in my now current directory.
Emacs, however, has no knowledge of that directory.  It's
easy enough for me to create a file containing a setq command which
I have a "new-suspend-emacs" lisp function load after suspend-emacs
returns.  So, I've gotten so far as getting the directory path into
a lisp variable.  But, I'd really like it in a shell environment variable
so if I do a ^X^F (find-file) I can access my last directory as "$PWD"
or something compact.

Anyone know how I can do this???

I using GNU Emacs 18.57 on a VAX 8650, SVR2 (usg-unix-v)

Thanks in advance.

John Young
AT&T-BL
Red Hill Rd.,
Middletown, NJ 07748
201-615-4412