help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PWD is not seen by my emacs installation


From: tpeplt
Subject: Re: PWD is not seen by my emacs installation
Date: Tue, 08 Aug 2023 08:44:13 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)

Patrick Mahan <plmahan@gmail.com> writes:

>
> But inside my .emacs I have -
>
> (setq workingdir (getenv "PWD"))
> message "PWD = '%s'" workingdir)
>
> Which results in -
>
> PWD = ’nil’
>
> Unless I open using a Full pathname, it will not open the file correctly.
>
> Suggestions?
>

1. View your *Messages* (type C-h e) to see if there are any error
   messages during Emacs’s start-up that might be related to this.

2. Read the Emacs manual on the environment (although there does not
   appear to be any problem with your expressions other than a missing
   leading parenthesis before ‘message’).  Type

      M-: (info "(emacs) Environment")

--



reply via email to

[Prev in Thread] Current Thread [Next in Thread]