all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Mark Oteiza <mvoteiza@udel.edu>
Cc: cpitclaudel@gmail.com, emacs-devel@gnu.org
Subject: Re: [PATCH] checking eww download directory
Date: Sat, 28 Jan 2017 09:53:50 +0200	[thread overview]
Message-ID: <83r33nzkkx.fsf@gnu.org> (raw)
In-Reply-To: <87mvecntq1.fsf@udel.edu> (message from Mark Oteiza on Fri, 27 Jan 2017 15:17:10 -0500)

> From: Mark Oteiza <mvoteiza@udel.edu>
> Date: Fri, 27 Jan 2017 15:17:10 -0500
> Cc: emacs-devel@gnu.org
> 
> > How hard would it be to integrate with the xdg-user-dirs standard
> > instead? On many GNU/Linux systems, running "xdg-user-dir DOWNLOAD" is
> > enough (http://stackoverflow.com/questions/13161226/).  This would
> > make eww consistent with Firefox, too (they take the slightly more
> > painful route of parsing ~/.config/user-dirs.dirs:
> > https://dxr.mozilla.org/mozilla-release/source/xpcom/io/SpecialSystemDirectory.cpp#256)
> 
> An xdg.el would be nice to have for elisp that interfaces
> with XDG-following things.  mpc.el and image-dired.el are two files that
> come to mind: mpd follows [0], image-dired
> supports [1].  Actually, it looks like those are the only two files with
> XDG bits, and I put them there.  How about that.
> 
> Anyways, these aren't difficult to implement.  If it would be a welcome
> addition I'd have a go at writing it.
> 
> [0] https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
> [1] https://specifications.freedesktop.org/thumbnail-spec/thumbnail-spec-latest.html

This has come up before.  I think this would be welcome, but one issue
that didn't get resolved is how much of that should be automatic
(i.e. should Emacs automatically search certain directories for
certain kinds of files), and if so, how to split the imaginary xdg.el
into two parts, with the automatic part living in some preloaded file
(probably files.el).  There's also the issue of whether users and/or
Lisp programs should be able to disable this search (e.g., by binding
some variable).

Also, IMO supporting this on Windows will need a new primitive written
in C, but that's an aside, and can be omitted in the initial
implementation.

Thanks.



  parent reply	other threads:[~2017-01-28  7:53 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-27 19:10 [PATCH] checking eww download directory Mark Oteiza
2017-01-27 19:21 ` Lars Ingebrigtsen
2017-01-27 19:48   ` Mark Oteiza
2017-01-27 20:10     ` Eli Zaretskii
2017-01-28  8:01       ` Yuri Khan
2017-01-28  8:54         ` Eli Zaretskii
2017-01-28 14:14     ` Lars Ingebrigtsen
2017-01-28 21:04       ` Mark Oteiza
2017-01-27 19:27 ` Lars Ingebrigtsen
2017-01-27 19:38 ` Clément Pit-Claudel
2017-01-27 20:17   ` Mark Oteiza
2017-01-27 22:21     ` Clément Pit-Claudel
2017-01-28  7:53     ` Eli Zaretskii [this message]
2017-01-29  1:01       ` Library for XDG things (was Re: [PATCH] checking eww download directory) Mark Oteiza
2017-01-30 14:40         ` Ted Zlatanov

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=83r33nzkkx.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=cpitclaudel@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=mvoteiza@udel.edu \
    /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.