[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PWD is not seen by my emacs installation
From: |
stefan-husmann |
Subject: |
Re: PWD is not seen by my emacs installation |
Date: |
Tue, 08 Aug 2023 21:07:09 +0200 |
User-agent: |
mu4e 1.11.13; emacs 30.0.50 |
Patrick Mahan <plmahan@gmail.com> writes:
> Hardware -
>
> Macbook Pro 14" (Apple M1 Pro)
> Mac OS 13.1 (Ventura)
>
> Emacs -
>
> Emacs 28.2 (build 1, aarch64-apple-darwin21.1.0, NS appkit-2113.00
> Version 12.0.1 (Build 21A559)) of 2022-09-12)
>
> My emacs does not see the current directory, but instead is expecting
> everything to be under ~/. I thought emacs grokked the PWD environment
> variable.
>
> From my shell -
>
> % echo $PWD
> /Users/mahan/src/PPP/ppp-master/pppd
>
> But inside my .emacs I have -
>
> (setq workingdir (getenv "PWD"))
> message "PWD = '%s'" workingdir)
There is missing a ( at beginning of line? You should get an
"unbalanced parantheses" message.
>
> Which results in -
>
> PWD = ’nil’
>
> Unless I open using a Full pathname, it will not open the file
> correctly.
What file?
>
> Suggestions?
>
> Thanks,
>
> Patrick
How did you invoke emacs? If you start it from some graphical MacOS
environment, may PWD _is_ undefined (I know nothing about MacOS)? Did you cd
into
/Users/mahan/src/PPP/ppp-master/pppd in a shell and start emacs from
the command line from there?
Best Regards
Stefan
Re: PWD is not seen by my emacs installation, Rudolf Adamkovič, 2023/08/30