From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?utf-8?B?7KGw7ISx67mI?= Newsgroups: gmane.emacs.devel Subject: Re: path, cwd in NS port Date: Fri, 29 May 2020 07:30:35 +0900 Message-ID: <61E178C7-5B8D-4EFE-AE0F-5936332B3496@icloud.com> References: <20200528204648.GB919@breton.holly.idiocy.org> Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="65899"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "Perry E. Metzger" , Eli Zaretskii , Emacs-devel@gnu.org To: Alan Third Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 29 00:38:20 2020 Return-path: Envelope-to: ged-emacs-devel@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 1jeRAJ-000H3H-SU for ged-emacs-devel@m.gmane-mx.org; Fri, 29 May 2020 00:38:19 +0200 Original-Received: from localhost ([::1]:59988 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jeRAI-0001oM-Hz for ged-emacs-devel@m.gmane-mx.org; Thu, 28 May 2020 18:38:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52308) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jeR33-0006R1-Jl for emacs-devel@gnu.org; Thu, 28 May 2020 18:30:49 -0400 Original-Received: from mr85p00im-ztdg06021101.me.com ([17.58.23.180]:49101) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jeR2z-0004FD-48 for emacs-devel@gnu.org; Thu, 28 May 2020 18:30:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1590705039; bh=F3NjAxibsT/5jQvWIAHOmr3JA0jOJIbrZFkjoi/Bh/U=; h=Content-Type:From:Subject:Date:Message-Id:To; b=POv4T28/cpIpXqNe3Au8e4a+w7S79skUl3Ng37SJJlLMi32tlSI37HZGXTPogHncR oIrAZqF7e1RMYy73TZO0rQvO05LJF81ikvvL7w18cptr1+oOLXLnC5S0ESYn+FFej1 ptet5BxWQWaQBvNND3V6s53lqjWg/iHDWdh/10ujPXko5A6FrH52eMbgz0ZJ0Z7eMe u6TW6idL7nfgdIsytfdvGeOUb0+zgpyghWGNjnitOejv+NrvcF/FMyG3TQdJiYdtum Ru/xce/tOV+9AHLwCtGFkgkn351YQoJJFkOTMxoIIcqoXy/E9UsZzb3ocTzA0YpmyO m6DFX2ROot02g== Original-Received: from [10.8.175.222] (unknown [223.62.188.169]) by mr85p00im-ztdg06021101.me.com (Postfix) with ESMTPSA id 7E5463406C7; Thu, 28 May 2020 22:30:38 +0000 (UTC) In-Reply-To: <20200528204648.GB919@breton.holly.idiocy.org> X-Mailer: iPhone Mail (17F75) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216, 18.0.687 definitions=2020-05-28_08:2020-05-28, 2020-05-28 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2002250000 definitions=main-2005280145 Received-SPF: pass client-ip=17.58.23.180; envelope-from=pcr910303@icloud.com; helo=mr85p00im-ztdg06021101.me.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/28 18:30:39 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, FROM_EXCESS_BASE64=0.979, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:251586 Archived-At: > On May 29, 2020, at 5:50 AM, Alan Third wrote: >=20 > =EF=BB=BFOn Thu, May 28, 2020 at 12:31:37PM -0400, Perry E. Metzger wrote:= >>> On Thu, 28 May 2020 19:10:43 +0300 Eli Zaretskii wrote: >>> Is this the same problem as discussed in bug#40924? (I don't use >>> macOS, so apologies if I;m confused about this issue.) >>=20 >> It's certainly a version of the same issue; something happened such >> that the default CWD is no longer set to ~/ recently. That should be >> fixed independently if anyone knows what changed. (I've noticed this >> issue myself and it is quite irritating.) >=20 > Does it definitely work in Emacs 26? For me, (as with other people) this was only a problem in Emacs 27 =E2=80=94= in Emacs 26 it worked in my machine. > I've had this >=20 > ((string-equal system-type "darwin") > (setq default-directory (concat (getenv "HOME") "/")) >=20 > in my init.el since 2015. >=20 >> One option that occurred to me was that it would be pretty easy to >> invoke an "echo $PATH" shell command in my .emacs and parse it into >> the exec-path, though I'd prefer only to do this if Emacs was invoked >> a certain way (from the dock, spotlight, etc.) where the PATH is >> known not to be set.=20 >=20 > A cheap and nasty method would be to look for environment variables > normally set by the shell. >=20 > Why not use exec-path-from-shell? > --=20 > Alan Third >=20