Chong Yidong <cyd <at> stupidchicken.com>
to control <at> emacsbugs.donarmstrong.com.
Full text available.
Received: (at unknown) by unknown; unknown
X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02
(2007-08-08) on rzlab.ucr.edu
X-Spam-Level:
X-Spam-Status: No, score=-0.4 required=4.0 tests=BAYES_20,FOURLA,HTML_MESSAGE,
RCVD_IN_DNSWL_LOW autolearn=no version=3.2.3-bugs.debian.org_2005_01_02
Received: (at submit) by emacsbugs.donarmstrong.com; 21 Jul 2008 06:59:46 +0000
Received: from lists.gnu.org (lists.gnu.org [199.232.76.165])
by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m6L6xaM4001882
for <submit <at> emacsbugs.donarmstrong.com>; Sun, 20 Jul 2008 23:59:37 -0700
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
id 1KKpMu-0003vR-DT
for bug-gnu-emacs <at> gnu.org; Mon, 21 Jul 2008 02:59:36 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
id 1KKpMs-0003vF-Vf
for bug-gnu-emacs <at> gnu.org; Mon, 21 Jul 2008 02:59:35 -0400
Received: from [199.232.76.173] (port=60768 helo=monty-python.gnu.org)
by lists.gnu.org with esmtp (Exim 4.43)
id 1KKpMs-0003vC-Pz
for bug-gnu-emacs <at> gnu.org; Mon, 21 Jul 2008 02:59:34 -0400
Received: from mx20.gnu.org ([199.232.41.8]:60022)
by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32)
(Exim 4.60)
(envelope-from <ferkiwi <at> gmail.com>)
id 1KKpMs-0006pD-5s
for bug-gnu-emacs <at> gnu.org; Mon, 21 Jul 2008 02:59:34 -0400
Received: from rv-out-0708.google.com ([209.85.198.248])
by mx20.gnu.org with esmtp (Exim 4.60)
(envelope-from <ferkiwi <at> gmail.com>)
id 1KKpMq-0000Ei-4m
for bug-gnu-emacs <at> gnu.org; Mon, 21 Jul 2008 02:59:32 -0400
Received: by rv-out-0708.google.com with SMTP id k29so1171026rvb.6
for <bug-gnu-emacs <at> gnu.org>; Sun, 20 Jul 2008 23:59:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=gamma;
h=domainkey-signature:received:received:message-id:date:from:reply-to
:to:subject:mime-version:content-type;
bh=+RaPdjSa+CE4H6KMs3JSMRXMlD7EbFSi96a5Y7LE+2U=;
b=vgC+lkaZDlMndSWPQ9oM+W4FAzv3OQ/WdHhdHU8V+A+8c0AlZGwb48OXHJswMkheBB
R03uYbdLHiShLqK7hr6UfR7rgCU+5gnsAiuKzTtAZ86Xu7xt//9sVSa/nCGzKJZtrcXC
njTIHmKCLcXQWAHBATC/ZngqzsxEXBLu9x9Kk=
DomainKey-Signature: a=rsa-sha1; c=nofws;
d=gmail.com; s=gamma;
h=message-id:date:from:reply-to:to:subject:mime-version:content-type;
b=PLNVK6jWxYuSBh+NvbdTf33Dqif18h7q9LDdK3V1Pf78SWU/c9ELNCPMjDQmOqdkSk
BjJ24mz0jzOrvbX/UV4rOemwKdA9xtcjblBrpKBgUy6xXhA99aDwIO1LBszN3j+MDPb9
us9DDoAyBf6xQf92mP+sA/aRZWz/9QDK/AHhM=
Received: by 10.141.132.8 with SMTP id j8mr1647031rvn.297.1216623570358;
Sun, 20 Jul 2008 23:59:30 -0700 (PDT)
Received: by 10.141.204.12 with HTTP; Sun, 20 Jul 2008 23:59:30 -0700 (PDT)
Message-ID: <bff91cf40807202359t6e83d0e4qc1216b77f23d2333 <at> mail.gmail.com>
Date: Mon, 21 Jul 2008 08:59:30 +0200
From: Fernando <ferkiwi <at> gmail.com>
Reply-To: ferkiwi+a <at> gmail.com
To: bug-gnu-emacs <at> gnu.org
Subject: Use XDG basedir spec for configuration files?
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_Part_66254_24778329.1216623570281"
X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 2)
X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4)
------=_Part_66254_24778329.1216623570281
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
The XDG Base Directory
Specification<http://standards.freedesktop.org/basedir-spec/>provides
some common paths in user's home to store personal application
configurations, or, using their own words "*defines where these files should
be looked for by defining one or more base directories relative to which
files should be located*".
XDG Base Directory Specification allows efficient backup, in which you can
easily choose to backup your data and/or your configuration files for
instance. An application could easily propose such backup for the whole
system if all applications were matching these specification.
Therefore, although I think that this bug/enhancement is not vital, it would
be great for Emacs to be "FreeDesktop XDG Base Directory Specification"
compliant.
Currently Emacs is using "$HOME/.emacs.d/". This is what XDG basedir spec
defines:
- $XDG_DATA_HOME (usually $HOME/.local/share/) as "*the base directory
relative to which user specific data files should be stored*"
- $XDG_CONFIG_HOME (usually $HOME/.config/) as "*the base directory
relative to which user specific configuration files should be stored*"
- $XDG_CACHE_HOME (usually $HOME/.cache/) as "*the base directory
relative to which user specific non-essential data files should be stored
*"
(http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html)
In order to make Emacs XDG basedir compliant, I think that it would be nice
to use:
- $XDG_CONFIG_HOME/emacs ;;for "init.el" and storing customize
configuration
- $XDG_DATA_HOME/emacs ;;for sessions and backups
- $XDG_CACHE_HOME/emacs ;;for cache files
Or maybe some other distribution. What do you think about it?
There's a small C library that may be useful check it out, written for the
sole purpose of xdg basedir spec compliance:
https://n.ethz.ch/student/nevillm/download/libxdg-basedir/
------=_Part_66254_24778329.1216623570281
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
<div dir="ltr"><p>
<font size="2"><span style="font-family: arial,sans-serif;">The </span><a style="font-family: arial,sans-serif;" href="http://standards.freedesktop.org/basedir-spec/" target="_blank"><span>XDG Base Directory Specification</span></a><span style="font-family: arial,sans-serif;"> provides some common paths in user's home to store personal application configurations, or, using their own words "</span><i style="font-family: arial,sans-serif;">defines
where these files should be looked for by defining one or more base
directories relative to which files should be located</i><span style="font-family: arial,sans-serif;">". </span><br style="font-family: arial,sans-serif;"></font></p><p style="font-family: arial,sans-serif;"><font size="2">
XDG Base Directory Specification allows efficient backup, in which you
can easily choose to backup your data and/or your configuration files
for instance. An application could easily propose such backup for the whole system if all applications were matching these specification.
</font></p>
<p style="font-family: arial,sans-serif;"><font size="2">
Therefore, although I think that this bug/enhancement is not vital, it
would be great for Emacs to be "FreeDesktop XDG Base Directory
Specification" compliant. </font></p>
<p style="font-family: arial,sans-serif;"><font size="2">Currently Emacs is using "$HOME/.emacs.d/". This is what XDG basedir spec defines:
</font></p>
<ul style="font-family: arial,sans-serif;"><li><font size="2">$XDG_DATA_HOME (usually $HOME/.local/share/) as "<i>the base directory relative to which user specific data files should be stored</i>"
</font></li><li><font size="2">$XDG_CONFIG_HOME (usually $HOME/.config/) as "<i>the base directory relative to which user specific configuration files should be stored</i>"
</font></li><li><font size="2">$XDG_CACHE_HOME (usually $HOME/.cache/) as "<i>the base directory relative to which user specific non-essential data files should be stored</i>"</font></li></ul><p style="font-family: arial,sans-serif;">
<font size="2">(<a href="http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html">http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html</a>)<br></font></p><p style="font-family: arial,sans-serif;">
<font size="2">
In order to make Emacs XDG basedir compliant, I think that it would
be nice to use:</font></p><ul><li><font size="2">$XDG_CONFIG_HOME/emacs ;;for "init.el" and storing customize configuration</font></li></ul><ul><li><font size="2">$XDG_DATA_HOME/emacs ;;for sessions and backups<br>
</font></li></ul><ul><li><font size="2">$XDG_CACHE_HOME/emacs ;;for cache files <br></font></li></ul><p style="font-family: arial,sans-serif;">Or maybe some other distribution. What do you think about it?<br></p><font size="2"><br>
</font><font size="2">There's a small C library that may be useful check it out, written for the sole purpose of xdg basedir spec compliance: <a href="https://n.ethz.ch/student/nevillm/download/libxdg-basedir/" target="_blank">https://n.ethz.ch/student/nevillm/download/libxdg-basedir/</a><br>
</font></div>
------=_Part_66254_24778329.1216623570281--
ferkiwi+a <at> gmail.com:Emacs Bugs <bug-gnu-emacs <at> gnu.org>.
Full text available.bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:bug#583; Package emacs.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.