all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Robin Tarsiger <rtt@dasyatidae.com>
To: Eli Zaretskii <eliz@gnu.org>,
	Yilkal Argaw <yilkalargawworkneh@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: missing "/" in value of user-emacs-directory when using --init-directory flag
Date: Fri, 2 Dec 2022 07:20:09 -0600	[thread overview]
Message-ID: <47dca941-bf75-455b-f8b2-07b6574cbc79@dasyatidae.com> (raw)
In-Reply-To: <83sfi1lj1h.fsf@gnu.org>

Eli Zaretskii wrote:
>> From: Yilkal Argaw <yilkalargawworkneh@gmail.com>
>>
>> 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




  parent reply	other threads:[~2022-12-02 13:20 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-29 17:55 missing "/" in value of user-emacs-directory when using --init-directory flag Yilkal Argaw
2022-11-29 18:11 ` Yilkal Argaw
2022-11-29 18:20 ` Eli Zaretskii
2022-11-29 18:56   ` [External] : " Drew Adams
2022-11-29 19:01     ` Greg Farough
2022-11-29 20:08       ` Stefan Monnier
2022-11-29 20:58         ` Greg Farough
2022-11-29 21:54         ` Juanma Barranquero
2022-11-29 23:04           ` Drew Adams
2022-11-29 23:02         ` Drew Adams
2022-12-02 22:47           ` Richard Stallman
2022-12-03  6:47             ` Yuri Khan
2022-12-02 13:20   ` Robin Tarsiger [this message]
2022-12-12  3:41     ` Yilkal Argaw
2022-12-12 12:23       ` Eli Zaretskii
2022-12-12 18:04         ` Yilkal Argaw
2022-12-12 18:13           ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47dca941-bf75-455b-f8b2-07b6574cbc79@dasyatidae.com \
    --to=rtt@dasyatidae.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=yilkalargawworkneh@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.