From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Elias_M=C3=A5rtenson?= Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Implement XDG Base Directory specification for user-emacs-directory Date: Mon, 29 Jul 2019 09:00:12 +0800 Message-ID: References: <20190525172356.30070.65317@vcs0.savannah.gnu.org> <20190525172357.86D4F207F5@vcs0.savannah.gnu.org> <835zpnv1o4.fsf@gnu.org> <87lfybw8cd.fsf_-_@fencepost.gnu.org> <83d0jmbmcs.fsf@gnu.org> <8336khbeas.fsf@gnu.org> <83woh0cppu.fsf@gnu.org> <83r26gq0lt.fsf@gnu.org> <87blxg6v5c.fsf@fencepost.gnu.org> <837e83nc87.fsf@gnu.org> <49b51848-c390-eff6-b2e1-be75f67ba620@cs.ucla.edu> <83ef2akyf1.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000bdbca9058ec76a9b" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="264064"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Paul Eggert , emacs-devel To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 29 03:00:35 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hru1j-0016Yh-5E for ged-emacs-devel@m.gmane.org; Mon, 29 Jul 2019 03:00:35 +0200 Original-Received: from localhost ([::1]:47886 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hru1h-0000YX-H0 for ged-emacs-devel@m.gmane.org; Sun, 28 Jul 2019 21:00:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48861) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hru1c-0000YP-Jo for emacs-devel@gnu.org; Sun, 28 Jul 2019 21:00:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hru1b-0007NK-Fj for emacs-devel@gnu.org; Sun, 28 Jul 2019 21:00:28 -0400 Original-Received: from mail-io1-xd44.google.com ([2607:f8b0:4864:20::d44]:45179) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hru1Z-0007Kp-Tb; Sun, 28 Jul 2019 21:00:26 -0400 Original-Received: by mail-io1-xd44.google.com with SMTP id g20so116397672ioc.12; Sun, 28 Jul 2019 18:00:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8Q6vGV5HwV2hrGwNDnbIhDIA6BmZ1ia9fyFDzapvHLo=; b=e5oCFDePJFVZMzNfnhKZQmzCHMQlVqJqtoRlIrD0WYbtCIje4L5yC/QP95yylZGjsv q5oMkTETxiMk/eFa3JZZFa+n3c/RXj3QqXRTtv5l3Sl3FrKLMdQrt/658PwW1OWhfevw jXastmi+y/iFsl4bKKtcJ2W86HlMouvv4JB/x2YdeTy98hclPmO0E4u7KvoAZjBkkJGi PM2mB2QdubGUi84MwPKHJWPzsmgDrgHfrCJreK1g6+/oVrJatsDMCsgr4tPMaVGyYrlm i1FJDoCkYLd6ZH6wuX7Hpz+IKbVEqM67wDb75TeFJzyvKOnaxrndFwfH29aHOsxsE+r+ 4F0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8Q6vGV5HwV2hrGwNDnbIhDIA6BmZ1ia9fyFDzapvHLo=; b=N5lKCErNmUAkWRLGtkKf5fvS77c/ygt1JfqIRhHsueRmzErFVzb7WqA0vY5baZ15lc KB7no/ehov8RYYelVaKLrxxUk3WYg0wwhfECpcCjDHTzZ6gg7j22rWwCai37qW3ZwrKr rOQxM/+EVpEq/fYz7+Zih4louaKqIBCX5/86QX57YXXkg6KK/xsDgeJFD+/a1vAJKFK7 m8YSCk9rTBbvi+KAjAqajwuqpnVdj70Nc6xGwch2oq7kLGxjcg0L1HVNxxnv22lfUEHU ynLWoqi+J8J9ECUkEdGLqWXtZzBZltV2Y9TG0Rls8U0uYzzQ5SQomf03VFrp+vv35yXF Zs7A== X-Gm-Message-State: APjAAAW7ZBxHvzD0GU+8Q6VWxUSETME8OT4xVQ5KvfvEISHmGjBPNGxi ijbly8m6kcbTnFqnbPDi+qfnDuXnBp9ry8eX+Gv1H3t6 X-Google-Smtp-Source: APXvYqxJI6696bS4EWfTbBO/w9+ctNtvzdftNtTKAT9lcJLzVlgWL6g+u2EQPc2LMwO7dxhZXRmTXk+3vJJnfBkm1gk= X-Received: by 2002:a5e:a708:: with SMTP id b8mr33032145iod.25.1564362024007; Sun, 28 Jul 2019 18:00:24 -0700 (PDT) In-Reply-To: <83ef2akyf1.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::d44 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:238983 Archived-At: --000000000000bdbca9058ec76a9b Content-Type: text/plain; charset="UTF-8" On Sun, 28 Jul 2019, 22:49 Eli Zaretskii, wrote: > > From: Paul Eggert > > Date: Sat, 27 Jul 2019 11:46:31 -0700 > > > > I'll give it a whirl. Proposed patch attached. > > > When Emacs is started, it normally tries to load a Lisp program from > > an @dfn{initialization file}, or @dfn{init file} for short. This > > -file, if it exists, specifies how to initialize Emacs for you. Emacs > > -looks for your init file using the filenames > > -@file{~/.config/emacs},. @file{~/.emacs}, @file{~/.config/emacs.el}, > > -@file{~/.emacs.el}, @file{~/.config/emacs.d/init.el} or > > -@file{~/.emacs.d/init.el}; you can choose to use any one of these > > -names (@pxref{Find Init}). Here, @file{~/} stands for your home > > +file, if it exists, specifies how to initialize Emacs for you. > > +If the directory @file{@var{xdghome}/.config/emacs} exists, Emacs uses > > +@file{@var{xdghome}/.config/emacs/init.el} as the init file. Here, > > +@var{xdghome} stands for the value of the environment variable > > +@env{XDG_CONFIG_HOME}, or for @file{~/.config} if > > +@env{XDG_CONFIG_HOME} is unset; @file{~/} stands for your home > > directory. > The above quote explains the meaning of the ~ symbol twice. Is that necessary, or is it the result of an incorrect copy and paste? Regards, Elias > --000000000000bdbca9058ec76a9b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sun, 28 Jul 2019, 22:49 Eli Zaretskii, <eliz@gnu.org> wrote:
> From: Paul Eggert <eggert@cs.ucla.edu>
> Date: Sat, 27 Jul 2019 11:46:31 -0700
>
> I'll give it a whirl. Proposed patch attached.

>=C2=A0 =C2=A0 When Emacs is started, it normally tries to load a Lisp p= rogram from
>=C2=A0 an @dfn{initialization file}, or @dfn{init file} for short.=C2= =A0 This
> -file, if it exists, specifies how to initialize Emacs for you.=C2=A0 = Emacs
> -looks for your init file using the filenames
> -@file{~/.config/emacs},. @file{~/.emacs}, @file{~/.config/emacs.el},<= br> > -@file{~/.emacs.el}, @file{~/.config/emacs.d/init.el} or
> -@file{~/.emacs.d/init.el}; you can choose to use any one of these
> -names (@pxref{Find Init}).=C2=A0 Here, @file{~/} stands for your home=
> +file, if it exists, specifies how to initialize Emacs for you.
> +If the directory @file{@var{xdghome}/.config/emacs} exists, Emacs use= s
> +@file{@var{xdghome}/.config/emacs/init.el} as the init file.=C2=A0 He= re,
> +@var{xdghome} stands for the value of the environment variable
> +@env{XDG_CONFIG_HOME}, or for @file{~/.config} if
> +@env{XDG_CONFIG_HOME} is unset; @file{~/} stands for your home
>=C2=A0 directory.

The above quote explains the meaning of the ~ symbol t= wice. Is that necessary, or is it the result of an incorrect copy and paste= ?=C2=A0

Regards,=C2=A0
Elias=C2=A0
--000000000000bdbca9058ec76a9b--