From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Patrick Mahan Newsgroups: gmane.emacs.help Subject: Re: PWD is not seen by my emacs installation Date: Mon, 21 Aug 2023 21:24:12 -0700 Message-ID: References: <87wmy52v3f.fsf@frege.mail-host-address-is-not-set> 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="23701"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Rudolf Schlatte , help-gnu-emacs@gnu.org To: David Masterson Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 22 06:25:14 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 1qYIx8-00060O-29 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 22 Aug 2023 06:25:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qYIwO-0005y8-Mo; Tue, 22 Aug 2023 00:24:28 -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 1qYIwN-0005y0-Nc for help-gnu-emacs@gnu.org; Tue, 22 Aug 2023 00:24:27 -0400 Original-Received: from mail-oo1-xc30.google.com ([2607:f8b0:4864:20::c30]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qYIwL-0007Ga-BB for help-gnu-emacs@gnu.org; Tue, 22 Aug 2023 00:24:27 -0400 Original-Received: by mail-oo1-xc30.google.com with SMTP id 006d021491bc7-570c5d0fac6so1359361eaf.3 for ; Mon, 21 Aug 2023 21:24:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692678263; x=1693283063; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=1ZVpIQ8cwh4ty8H4btKX2U+0Ojm1blN+eGU0PsWkFtY=; b=ovWC3qh9RTFIs5fMZryhdkLECwMXBjiUBjUXvYXluEFACm/1Knvi8eEqGPfgmeUcSi uEEaSvRrBXWxEbMHtMhSjp5g8oRZkOSYNeQGhhWmHh9CfzjR9wr0C0y+sqNm5uV41wdF +3ePcroBbrLGeRJmAZcUTE5U45hcZDBAw9/0/2OF3E09EuHuIW6PIZsAY5FhoFHTr0KG DTHVyPRiLrjBE3CIsGWiqGNlTi1s++3B4ahc8JpOkqN3oH3kz7Q3YQxC8n72LVkUoIA4 HpZRjaGSlRATm8HcQpZ+OJ+NxPk49rjNypK1fPjNvliNi+czcSAYaaLyooxu9AkkVTPQ U4Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692678263; x=1693283063; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1ZVpIQ8cwh4ty8H4btKX2U+0Ojm1blN+eGU0PsWkFtY=; b=Gqql+xhsxPsabFPtQwklvzVq61EnbIpB7gRONlvuQBzQEz3OP+4EMBpeVyXz2HIx07 gf1RKiaOH/FP46djZ6mAcPkFQpcN0tqWveQW8vqfHKCVHL5skmc2jxeApXWqZffjIbY6 riwQywoVhsALaJ28ETVSh8Sb0fXcmYgD2+PKdZH+vIAMYaBpPs31i0H1235cgt/fQZQX zx/Bcoy8Xz75ujgjtjTecGbK4DN5q1RtMr/JrdlwaatDxXRRwh1rOpoEHxE1i9uQL2Al CwauLlXoVS+WCcC5Yj8MbderLP08+L7GA2JNXxrju5O+QHiKdTFG7IftWu7ZNZV9xmkO m00g== X-Gm-Message-State: AOJu0YzDHzFxnsqz6eJuLtvkfIKG9cVVW1tnP7xN9ES6xGUSg94vOxCQ FGsg2w+jWZ9CQc2U6LDxANwblz4TQ+FaIjQzfr61Z4BF X-Google-Smtp-Source: AGHT+IE0FmmNoH1nXnZ3V0FFp6vaMDCt43ekiMrGbh6Culu6jbvttcllmW7n8gp5x7FBYHUBoFDw0HtHmgvvJ16c9Yg= X-Received: by 2002:a4a:275b:0:b0:56c:e856:8b2c with SMTP id w27-20020a4a275b000000b0056ce8568b2cmr7601117oow.9.1692678263517; Mon, 21 Aug 2023 21:24:23 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::c30; envelope-from=plmahan@gmail.com; helo=mail-oo1-xc30.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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:144894 Archived-At: Thanks, I'll check it out. On Mon, Aug 21, 2023 at 6:14=E2=80=AFPM David Masterson wrote: > Patrick Mahan writes: > > > Yes, that is what occurs, but my issue is the need to give the full pat= h > > (or even a relative path off of '~'). I just want to edit the file in > the > > local directory. I do not want to have to say "open -a Emacs.app > > $PWD/file.txt" just to open a local file. > > > > I also tried using the --env option to the open command but it does not > > seem to work. > > > > Invoking it directly works correctly. > > This sounds like the same problem of starting Emacs from an icon in many > window managers. The standard icons often don't load your "profile", > but rather uses a default "slimmed down" profile. Try this: > > 1. Start Emacs from the icon > 2. Check your environment by either of these ways: > 2a, 'M-x shell' and then 'env' > 2b. 'C-h v process-environment' > 3. Compare that environment with your "directly" environment > 4. If $HOME is correct in #2 & #3, you can fix other key environment > variables using early-init.el (see 'Init File' in the Emacs infodocs). > 5. Use 'setenv' in early-init.el to adjust your environment as needed. > > -- > David Masterson >