From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mark Oteiza Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add XDG utility library Date: Wed, 1 Feb 2017 07:14:13 -0500 Message-ID: <20170201121413.GA997@holos.localdomain> References: <20170201002606.GA4224@holos.localdomain> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1485952129 10563 195.159.176.226 (1 Feb 2017 12:28:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 1 Feb 2017 12:28:49 +0000 (UTC) User-Agent: Mutt/1.7.2+27 (e4ad1dc9bfbd) (2016-11-26) Cc: emacs-devel@gnu.org To: Philipp Stephani Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 01 13:28:44 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYu1h-0002QJ-Bs for ged-emacs-devel@m.gmane.org; Wed, 01 Feb 2017 13:28:41 +0100 Original-Received: from localhost ([::1]:50280 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYu1m-0007Em-C1 for ged-emacs-devel@m.gmane.org; Wed, 01 Feb 2017 07:28:46 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52395) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYtno-0000qq-80 for emacs-devel@gnu.org; Wed, 01 Feb 2017 07:14:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cYtnj-0004fF-QM for emacs-devel@gnu.org; Wed, 01 Feb 2017 07:14:20 -0500 Original-Received: from mail-qk0-x241.google.com ([2607:f8b0:400d:c09::241]:36628) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cYtnj-0004fA-JO for emacs-devel@gnu.org; Wed, 01 Feb 2017 07:14:15 -0500 Original-Received: by mail-qk0-x241.google.com with SMTP id i34so25485244qkh.3 for ; Wed, 01 Feb 2017 04:14:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=udel-edu.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=htBrwGdYGDWoeAwZH9AiCpb2cHu1Xl0RR21AMipGyQI=; b=nVEJ3HwItaJQDry+NbP/3nBmxvcQlFjZS6OrN7i8g1SFCZuxLftODEOE0WyjIm4aNd WkyjAJw384YpiRwiWAbtQFyxqx+KJ2yj4FgXRomT0PYAgwBMHXvT3wiw2dwPP/yIepYa tBMugowx8vfNyYTSFDkZXILBY1LZ1F8LtcpzplvYW28SXKwzBAMpg4pQlLaNQY4iCH51 1PeUBPXSnyssU7aGqm9gi0w0zl8Q9bzBY1g4obl8nFnp4VSEy2vxYdsQ7VQYtMFB9qwH YKZHoooVtYzLd8g0cr1wGBvbUypRudn7wHTqNp15v7Oi8UIu1YaBT615Lrwbj1sUnVXz J6dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=htBrwGdYGDWoeAwZH9AiCpb2cHu1Xl0RR21AMipGyQI=; b=g1F0zlGLDz2jYu+oXY9pu/Yt/Fa26QsEFi8cY1CtQ7XGi+9zf7W8W0G+CWqLrupgY4 wY6IrPXrs1bNHcLfbdEwYPEuAc3E50Sq9fX4Pajp+MmBguTcZOM51SgHlZHyggupet+r h8tk5Allx2OCZt4y1kt6YxXLGbXxlyJSdrcCavWSfIHA4y6o0q9FF1cQFL7XCuPOFNEI p8/9hQr2j5hIla4tRAqarvg82nSyFxKseqDMDDQiYYbPmCjCujnABjJp6FLp/Dret37N rqf2mJq3ogbCnLG+UkTr7PnI4zD2PkK0lf2Qt88nKFBqZXwZztQmQec4ayPZIaqeBxNY ddow== X-Gm-Message-State: AMke39lcxSl2B/cpSuIlG2jYC6TqxYXs7+/wJbqJgDXUvLYm6CHLJ6dCe45EW5FTCNracJ5q X-Received: by 10.55.197.148 with SMTP id k20mr2239587qkl.34.1485951255017; Wed, 01 Feb 2017 04:14:15 -0800 (PST) Original-Received: from holos.localdomain (pool-173-67-40-97.bltmmd.fios.verizon.net. [173.67.40.97]) by smtp.gmail.com with ESMTPSA id k8sm18414573qke.29.2017.02.01.04.14.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Feb 2017 04:14:14 -0800 (PST) Original-Received: by holos.localdomain (Postfix, from userid 1000) id B8B5060D6A; Wed, 1 Feb 2017 07:14:13 -0500 (EST) Content-Disposition: inline In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c09::241 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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:211837 Archived-At: On 01/02/17 at 11:19am, Philipp Stephani wrote: > Mark Oteiza schrieb am Mi., 1. Feb. 2017 um 01:28 Uhr: > > > > > +(defmacro xdg--dir-home (environ default-path) > > + (declare (debug (stringp stringp))) > > + (let ((env (make-symbol "env"))) > > + `(let ((,env (getenv ,environ))) > > + (if (or (null ,env) (not (file-name-absolute-p ,env))) > > + (expand-file-name ,default-path) > > + ,env)))) > > > > Maybe I'm missing something, but why is this a macro and not a normal > function? Because its only use is the write the body of a few functions.