From: Stefan Kangas <stefan@marxist.se>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: master f8fed41 2/3: image-dired: Improve XDG compliance
Date: Tue, 26 Oct 2021 18:13:41 +0200 [thread overview]
Message-ID: <CADwFkmmWr-53xL111wUVimGvg1HwCOhgY+sV8_rxh23n-gh2og@mail.gmail.com> (raw)
In-Reply-To: <83pmrrydw0.fsf@gnu.org>
Eli Zaretskii <eliz@gnu.org> writes:
> No. What will happen is we will see the proliferation of the likes of
> this:
>
> (cond
> ((eq system-type 'windows-nt
> (or (w32-read-registry
> 'HKCU
> "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders" "Personal")
> "~/../My Documents"
> "~/../../Documents"))
> ((eq system-type 'darwin "~/Documents"))
> (t (xdg-documents-directory)))
>
> and similarly for other standard directories, in our application code.
That looks like a nightmare, yes.
> I really hope this is not what we want to see there. My idea was to
> hide all this platform-specific ugliness under a standard API, such as
> (user-std-directory 'DOCUMENTS) or maybe a set of APIs like
> (user-documents-directory), (user-music-directory), etc.
I'm not seeing any other volunteers, so let me have a crack at it.
next prev parent reply other threads:[~2021-10-26 16:13 UTC|newest]
Thread overview: 63+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-25 13:14 master f8fed41 2/3: image-dired: Improve XDG compliance Eli Zaretskii
2021-10-25 16:14 ` Philip Kaludercic
2021-10-25 16:39 ` Eli Zaretskii
2021-10-25 17:52 ` Philip Kaludercic
2021-10-25 18:30 ` Eli Zaretskii
2021-10-26 10:24 ` Stefan Kangas
2021-10-26 13:09 ` Eli Zaretskii
2021-10-26 13:28 ` Stefan Kangas
2021-10-26 14:11 ` Eli Zaretskii
2021-10-26 14:35 ` Stefan Kangas
2021-10-27 4:37 ` Po Lu
2021-10-26 16:47 ` Philip Kaludercic
2021-10-26 2:07 ` Po Lu
2021-10-25 17:48 ` Stefan Monnier
2021-10-25 17:55 ` Philip Kaludercic
2021-10-25 17:58 ` Gregory Heytings
2021-10-25 18:04 ` Stefan Monnier
2021-10-26 10:25 ` Default for image-dired-main-image-directory Stefan Kangas
2021-10-26 13:12 ` Eli Zaretskii
2021-10-26 13:42 ` Ihor Radchenko
2021-10-26 14:15 ` Eli Zaretskii
2021-10-26 14:22 ` Stefan Kangas
2021-10-26 14:58 ` Ihor Radchenko
2021-10-26 16:15 ` Eli Zaretskii
2021-10-27 13:04 ` Ihor Radchenko
2021-10-27 13:26 ` Eli Zaretskii
2021-10-27 13:42 ` Ihor Radchenko
2021-10-27 16:53 ` XDG config dir [Was: Re: Default for image-dired-main-image-directory] Alexandre Garreau
2021-10-28 3:45 ` Ihor Radchenko
2021-10-28 3:48 ` Phil Sainty
2021-10-28 5:57 ` Alexandre Garreau
2021-10-28 6:46 ` Stefan Kangas
2021-10-26 14:14 ` Default for image-dired-main-image-directory Stefan Kangas
2021-10-26 15:37 ` Eli Zaretskii
2021-10-26 14:01 ` master f8fed41 2/3: image-dired: Improve XDG compliance Stefan Kangas
2021-10-26 14:19 ` Eli Zaretskii
2021-10-26 14:24 ` Stefan Kangas
2021-10-26 16:00 ` Eli Zaretskii
2021-10-26 16:13 ` Stefan Kangas [this message]
2021-10-26 16:21 ` Eli Zaretskii
2021-10-26 14:28 ` Eli Zaretskii
2021-10-26 14:45 ` Stefan Kangas
2021-10-26 16:12 ` Eli Zaretskii
2021-10-26 16:31 ` Eli Zaretskii
2021-10-26 19:17 ` Stefan Monnier
2021-10-26 19:28 ` Eli Zaretskii
2021-11-06 1:38 ` user-directory: New library to find user {conf,data,state,...} files Stefan Kangas
2021-11-06 1:52 ` Lars Ingebrigtsen
2021-11-06 2:56 ` user-directory: New library to find user {conf, data, state, ...} files Stefan Kangas
2021-11-06 3:11 ` Stefan Kangas
2021-11-07 19:31 ` Stefan Kangas
2021-11-07 19:52 ` Eli Zaretskii
2021-11-08 3:04 ` Stefan Kangas
2021-11-08 12:19 ` Eric S Fraga
2021-11-08 13:55 ` Eli Zaretskii
2021-11-08 15:26 ` Stefan Kangas
2021-11-08 18:31 ` Eli Zaretskii
2021-11-09 7:05 ` Stefan Kangas
2021-11-09 18:23 ` Eli Zaretskii
2021-11-09 20:38 ` Stefan Kangas
2021-11-11 10:34 ` Eli Zaretskii
2021-11-08 3:35 ` Stefan Kangas
2021-11-08 15:40 ` Stefan Kangas
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=CADwFkmmWr-53xL111wUVimGvg1HwCOhgY+sV8_rxh23n-gh2og@mail.gmail.com \
--to=stefan@marxist.se \
--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).