From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: stefan-husmann@t-online.de Newsgroups: gmane.emacs.help Subject: Re: PWD is not seen by my emacs installation Date: Tue, 08 Aug 2023 21:07:09 +0200 Message-ID: <87wmy52v3f.fsf@frege.mail-host-address-is-not-set> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40354"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.11.13; emacs 30.0.50 Cc: help-gnu-emacs@gnu.org To: Patrick Mahan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 08 21:28:07 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qTSND-000AI3-5n for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 08 Aug 2023 21:28:07 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qTSMc-0007Io-Gx; Tue, 08 Aug 2023 15:27:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qTSMa-0007If-Po for help-gnu-emacs@gnu.org; Tue, 08 Aug 2023 15:27:28 -0400 Original-Received: from mailout04.t-online.de ([194.25.134.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qTSMZ-0003eR-0R for help-gnu-emacs@gnu.org; Tue, 08 Aug 2023 15:27:28 -0400 Original-Received: from fwd78.aul.t-online.de (fwd78.aul.t-online.de [10.223.144.104]) by mailout04.t-online.de (Postfix) with SMTP id 7FA04FD03; Tue, 8 Aug 2023 21:27:20 +0200 (CEST) Original-Received: from frege ([217.82.113.79]) by fwd78.t-online.de with (TLSv1.3:TLS_AES_256_GCM_SHA384 encrypted) esmtp id 1qTSMR-0o4H7B0; Tue, 8 Aug 2023 21:27:19 +0200 In-reply-to: X-TOI-EXPURGATEID: 150726::1691522839-1DFF316C-BD2BA436/0/0 CLEAN NORMAL X-TOI-MSGID: 407b4b3b-e623-4e39-a4ba-6715bfbab845 Received-SPF: none client-ip=194.25.134.18; envelope-from=stefan-husmann@t-online.de; helo=mailout04.t-online.de X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_BL_SPAMCOP_NET=1.347, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:144694 Archived-At: Patrick Mahan 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 =3D '%s'" workingdir) There is missing a ( at beginning of line? You should get an "unbalanced parantheses" message. > > Which results in - > > PWD =3D =E2=80=99nil=E2=80=99 > > 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 c= d into /Users/mahan/src/PPP/ppp-master/pppd in a shell and start emacs from the command line from there? Best Regards Stefan