From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Implement XDG Base Directory specification for user-emacs-directory Date: Sun, 28 Jul 2019 16:21:10 +0100 Message-ID: <87wog2jic9.fsf@tcd.ie> 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> <87pnlv2mx2.fsf@tcd.ie> <83ftmqkyq2.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="138019"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: eggert@cs.ucla.edu, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 28 17:21:36 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 1hrkzP-000ZnB-TY for ged-emacs-devel@m.gmane.org; Sun, 28 Jul 2019 17:21:36 +0200 Original-Received: from localhost ([::1]:45630 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hrkzO-0005im-6R for ged-emacs-devel@m.gmane.org; Sun, 28 Jul 2019 11:21:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53864) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hrkz5-0005ie-9v for emacs-devel@gnu.org; Sun, 28 Jul 2019 11:21:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hrkz4-0000qc-9L for emacs-devel@gnu.org; Sun, 28 Jul 2019 11:21:15 -0400 Original-Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]:41195) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hrkz3-0000oy-UJ for emacs-devel@gnu.org; Sun, 28 Jul 2019 11:21:14 -0400 Original-Received: by mail-wr1-x442.google.com with SMTP id c2so55925254wrm.8 for ; Sun, 28 Jul 2019 08:21:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=yPoFbxUJi8v+K0GN4etCpbqAdQvgCtoVAIn99hJ40QE=; b=Mo9+aOQHpAEB0yKDK9PhAmHTy7krv911rUaJ46SWgjZiWWQ7Fr90NPWLOb3Na4me1Y EA/6Psk4GgKgE60fI83ufuINOM/ezVwBIING/SkgBuhYuwxk+1p9B3+mERz1aLZtQ7UH 7jGARm7bG3ySk1xSM24OEFLZYSCe+x4bbmfiZ45gmpRfBSAUgVyvojDuDwzIvtYyLG/B MxHZlcTleEKpIP/FdS+/wCFWAApWkxIGMSRUlAm6J2DD0HIVHJ2xUAZwwRvwrc4/vlUR lSUjDBG7og6yy0nLJTkj3szso8pyBvoSzvBrQuC96Vg355HMEbFD1K8/H77pvNV26/dv Zl9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=yPoFbxUJi8v+K0GN4etCpbqAdQvgCtoVAIn99hJ40QE=; b=kasifLsSPn3jBSvgjV6GKvqOR3sjOP7E6hKKVRS0R0XXe1+ii7UAsrxGJh9tXg2nnj 4luR49X08aJoa+nSZKrrfOaJzU220f2p1Zi7nTfAmls1E8KBhYovUR3LFzUvCt5VJC3o ekYa7SKdgmZKbagkjX5ouR4WL6Lc2EVwwIDJro90Lrl5ZFxndOv7e/cDR6X52/N72JIk 11YmQLLMwXeP5fdDz5NzuCuLSK3z+iy9ySe3Pj73BLVfDM5kVr16F9/8uS0w83/jmonK oFJo6MEZVqDvtBqDWGenCTgjMraFkoEbV2+GPHd6PF3bKr1VDScjgxcbzste5Wc4JrW0 eQ9g== X-Gm-Message-State: APjAAAVVWIpbN3COMS7xcYMK1D4XLBwmBp/bFMaosqcM/Bt2U+Ov9rB8 UQd+oJcCJonv8sJxpzjWRNJ9Vg== X-Google-Smtp-Source: APXvYqxJe13BMddBJGvtH8pmK+4b5SR1DcmJb7ZuMt5qNDaUMSSiHQu8yOe3kd0EvNY0TZxkliN0Og== X-Received: by 2002:adf:f888:: with SMTP id u8mr23150410wrp.238.1564327272313; Sun, 28 Jul 2019 08:21:12 -0700 (PDT) Original-Received: from localhost ([2a02:8084:20e2:c380:1f68:7ff5:120d:64e]) by smtp.gmail.com with ESMTPSA id y24sm43193347wmi.10.2019.07.28.08.21.11 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 28 Jul 2019 08:21:11 -0700 (PDT) In-Reply-To: <83ftmqkyq2.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 28 Jul 2019 17:41:57 +0300") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::442 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:238969 Archived-At: Eli Zaretskii writes: >> From: "Basil L. Contovounesios" >> Date: Sat, 27 Jul 2019 22:22:01 +0100 >> Cc: emacs-devel@gnu.org >> >> My only question is whether any of the new logic can be shared with >> lisp/xdg.el or vice versa > > I'm not sure I see how. xdg.el includes a lot of stuff that is not > needed in every Emacs session, whereas the changes discussed here must > be in preloaded code. Right, and the new XDG-related code looks too startup-specific to be useful for xdg.el, really. > Is your suggestion to move some of the code in xdg.el to > startup.el/subr.el and leave the rest in xdg.el? If so, which part(s) > would you suggest to move? I was just thinking aloud that IWBNI definitions and/or environment lookup code could be shared, but on second look that would be overkill and not entirely applicable here. > In general, I feel that xdg.el is currently too Freedesktop-specific, > and "needs work" if we want to make it a portable mainstream package > useful on all the supported platforms. (There's also a strange > comment about Emacs "not having a notion of l10n/i18n", which is > simply wrong, so support for localestring could/should also be > improved.) Patches welcome. What kind of non-Freedesktop-specific portability do you envision? Thanks, -- Basil