unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "francisco.colaco@gmail.com" <francisco.colaco@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: xdg-directories.el
Date: Wed, 7 Sep 2016 17:13:43 +0100	[thread overview]
Message-ID: <CACwYkzyzH12wrvT32NDJy9Qg-SJyHnCU8eRwE5jraV-hfRUQRg@mail.gmail.com> (raw)
In-Reply-To: <83inu7aeo5.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1422 bytes --]

Eli,

I can implement the functions for Windows and OSX.  I believe all Unices
have implemented the XDG Base Directory Specification.

But we do have a problem: once this is implemented for all operating
systems, XDG will become a meaningless package name and prefix.  Maybe we
should not have a prefix at all and find sensible names not used by Emacs
at the moment.

I propose that xdg-config-dir becomes instead user-emacs-config-directory
and gets to be initialised according to the operating system's best
practices.  Defaulting to ~/.emacs.d/config.  user-emacs-cache-directory
defaults to ~/.emacs.d/cache and user-emacs-data-directory to
~/.emacs.d/data.  The defaults would only be used iff the operating system
determination functions return nil.

user-emacs-directory could either be an alias of user-emacs-data-directory
or default to it.

locate-user-emacs-<domain>-file would then make sense, and no names should
be changed.  I think I should make these functions with the same interface
of locate-user-emacs-file, and give it analog behaviour.

In my opinion, the chain of user-init-file should be (in order of
precedence):

  1. (locate-user-emacs-config-file "init.el")
  2. (locate-user-emacs-file "init.el")
  3. ~/.emacs.d/init.el
  4. ~/.emacs (and the rest of the present order, like terminal specific
files).

Would that seem sensible to you?

  Francisco Colaço

[-- Attachment #2: Type: text/html, Size: 1912 bytes --]

  reply	other threads:[~2016-09-07 16:13 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-06 15:24 xdg-directories.el francisco.colaco
2016-09-06 21:49 ` xdg-directories.el Noam Postavsky
2016-09-06 22:37   ` xdg-directories.el francisco.colaco
2016-09-07  0:35     ` xdg-directories.el Stefan Monnier
2016-09-07 14:18 ` xdg-directories.el Eli Zaretskii
2016-09-07 14:59   ` xdg-directories.el francisco.colaco
2016-09-07 15:21     ` xdg-directories.el Stefan Monnier
2016-09-07 15:31     ` xdg-directories.el francisco.colaco
2016-09-07 15:54       ` xdg-directories.el Eli Zaretskii
2016-09-07 16:13         ` francisco.colaco [this message]
2016-09-07 16:28           ` xdg-directories.el francisco.colaco
2016-09-07 17:32           ` xdg-directories.el Eli Zaretskii
     [not found]             ` <CACwYkzyjV2jsTX3Cb0Us4tz1WsUP=avurw04Kgq8k52oBZRg_Q@mail.gmail.com>
2016-09-07 18:21               ` xdg-directories.el Eli Zaretskii
2016-09-07 16:46         ` xdg-directories.el Stefan Monnier
2016-09-07 17:24           ` xdg-directories.el 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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=CACwYkzyzH12wrvT32NDJy9Qg-SJyHnCU8eRwE5jraV-hfRUQRg@mail.gmail.com \
    --to=francisco.colaco@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).