From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robin Tarsiger Newsgroups: gmane.emacs.devel Subject: Re: missing "/" in value of user-emacs-directory when using --init-directory flag Date: Fri, 2 Dec 2022 07:20:09 -0600 Message-ID: <47dca941-bf75-455b-f8b2-07b6574cbc79@dasyatidae.com> References: <83sfi1lj1h.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37843"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Cc: emacs-devel@gnu.org To: Eli Zaretskii , Yilkal Argaw Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 02 14:21:24 2022 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 1p15yk-0009bW-4F for ged-emacs-devel@m.gmane-mx.org; Fri, 02 Dec 2022 14:21:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p15xr-0003jF-Rv; Fri, 02 Dec 2022 08:20:28 -0500 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 1p15xj-0003iy-0V for emacs-devel@gnu.org; Fri, 02 Dec 2022 08:20:19 -0500 Original-Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p15xg-0002ZN-WD; Fri, 02 Dec 2022 08:20:18 -0500 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id F18FF3200926; Fri, 2 Dec 2022 08:20:11 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 02 Dec 2022 08:20:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dasyatidae.com; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1669987211; x= 1670073611; bh=bHoNsASnnFiKS1lWKCEY/USkqp4BZ+UN6b5j9f4eFns=; b=h ebQx0ipXtPN02tQuQrkjzaxpesH4eetj91tHDKZoEHMuIOmdDHEK5eAI99mFIN6G wuQ0cF4ny7f33oA/wnOA4yaX3ahRQAPxEOanh5tkS7e2ixkvsnfSO1K2n6IK/aKl bbBMx1X2zdqFtP7JnM6jhb/GYTSH16pZHmsYTF4aq4zFEB9iF9uaMqN1SuXj6bpQ O+ubSl9gCKdEy+EkLuJzbBs6zIlJe/43/ESXlwyl3yFnWsPTItBaesOloBoyX5fE gsTgDtJ/kALrE3aMHxuS2s63WDg2DIYN7DghfjDj5rHrD790/neJvqjohAWZuuka J+X3lHPsS6FBAV0682HhQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1669987211; x= 1670073611; bh=bHoNsASnnFiKS1lWKCEY/USkqp4BZ+UN6b5j9f4eFns=; b=u V9JsL7zK5eAoMMv0yhJFlTBNLNRX1TVfisVy7+WH4haKPxyE4YCvXSfA27PYqqKW hg+pyX+hsqoZ87EF6u3Wibuws0JYtvclO0zK2aIvs7cjdB7M1Vv85/g6ypmWZu5G KRLBTqUh6gDNx8utcA6pnP6l59XXAnerAf9mgtUTs6g4zOYzqZrHLN3PagTh/OQ3 /O8wb54TQMXaoII1uP+vOvYEtM6L9tfIeXePR1xMWx4tza/dtoJjPLdqff9SckqP uRpaidCm/P66zfLPRSAytlM8gi+JHdI4gY+P2s6d8XbMUbi8S5kWPfPIJM5zRb+W L4wjauo9/h2/jIEReu41g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrtdekgddviecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomheptfhosghi nhcuvfgrrhhsihhgvghruceorhhtthesuggrshihrghtihgurggvrdgtohhmqeenucggtf frrghtthgvrhhnpeehgeejudekudeufeevkeeghfevteeuudduteffveehieduheetgeeh ieelgeejueenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehrthhtsegurghshigrthhiuggrvgdrtghomh X-ME-Proxy: Feedback-ID: if65945fd:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 2 Dec 2022 08:20:10 -0500 (EST) Content-Language: en-US-large In-Reply-To: <83sfi1lj1h.fsf@gnu.org> Received-SPF: pass client-ip=64.147.123.21; envelope-from=rtt@dasyatidae.com; helo=wout5-smtp.messagingengine.com X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.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, NICE_REPLY_A=-0.258, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:300833 Archived-At: Eli Zaretskii wrote: >> From: Yilkal Argaw >> >> In my configs I use (concat user-emacs-directory "somedirectory or >> file") to refer to files with respect to emacs. When loading emacs >> with the option --init-directory this >> this string is not separated by a backslash since the value >> user-emacs-directory does not have a backslash on the end of it. This >> might break previous configs so it should be standardized to contain >> the same string value in both cases. > > Don't use 'concat' for file names; use expand-file-name instead. While that's as may be in general, the docstring for user-emacs-directory (in my Emacs 28.2) states "Note that this should end with a directory separator." specifically, which I take to be part of the variable contract. Doesn't that imply that it is Emacs's responsibility to handle that aspect if setting user-emacs-directory based on a file name that may not satisfy that predicate? -RTT