From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add XDG utility library Date: Wed, 01 Feb 2017 11:19:59 +0000 Message-ID: References: <20170201002606.GA4224@holos.localdomain> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113d822c48f28c0547763bc5 X-Trace: blaine.gmane.org 1485948052 15272 195.159.176.226 (1 Feb 2017 11:20:52 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 1 Feb 2017 11:20:52 +0000 (UTC) To: Mark Oteiza , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 01 12:20:49 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 1cYsxz-0003lP-UW for ged-emacs-devel@m.gmane.org; Wed, 01 Feb 2017 12:20:48 +0100 Original-Received: from localhost ([::1]:49968 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYsy5-0002z8-E5 for ged-emacs-devel@m.gmane.org; Wed, 01 Feb 2017 06:20:53 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41099) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYsxR-0002tX-08 for emacs-devel@gnu.org; Wed, 01 Feb 2017 06:20:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cYsxO-00070d-MH for emacs-devel@gnu.org; Wed, 01 Feb 2017 06:20:11 -0500 Original-Received: from mail-oi0-x232.google.com ([2607:f8b0:4003:c06::232]:35226) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cYsxO-00070E-HX for emacs-devel@gnu.org; Wed, 01 Feb 2017 06:20:10 -0500 Original-Received: by mail-oi0-x232.google.com with SMTP id j15so231943902oih.2 for ; Wed, 01 Feb 2017 03:20:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=O/mLARlvvQ5WA4HV0RjO4kL3UXE4NSHIYlxkoCDAAzY=; b=hL4MkPWCVtWdLw2KpjvCycYyZjYABNgoviNivYD/xo/TxGYsKrcJx0sOdj8Lq3ZojR FLcI6JS0D0/PPZ0/Z8VYkAY6/0lRAtpSw+fw7C4nVdZJE549GCZ5ux+Qyl8wbPg2rgcC sjFIYyYOks1KyjAzBa7Qfl9TqHBtiW6VHRLb1Va1drhzxz3+1NgTf+raGLAUpqjsWKR4 Wq9qfiK2LEs3KQXQAiOtvwzSJqB88GwtD0HNUCwf0WgnTjFaP47NDs9hLVc2G3UJb1+p rCLHp8jPRSNkK7XlXoXHWzucUg0BRobzuJDX1sLgcgctOte0zJ7s/99VawoTKLQfV5vX jgdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=O/mLARlvvQ5WA4HV0RjO4kL3UXE4NSHIYlxkoCDAAzY=; b=rHUZY3KmoSWpkPaX93qoxNdNvVz6dG7cRKhkgTa6Z5JL11Bzx77DKo7U0TwM58yTGY cD5VSyGMaH2LaWOrFXQd5/aVeYIN8XV5oMM566yxm349w0IQx7oF3l281N0A180eiQkH uONaGBMXwrZ2BVBQlrZVvla2R7DcJ/EY2Z/B25Bj8bhBcxAh/zYypTtkL0BAeVAxfaBL mzg+N3HS3t3wk9ogvC3BIuJnEDA+IH0/m3XCQEOydJewJBn00Rx2qqo0FloRJkFVxdAy dCmSJ1koC1CKVCXUcBGBHW0UctkP7VVyCUGGwsvSEUq/sLduwgfM9VzI5NQ4j9ZEzcCL eIOQ== X-Gm-Message-State: AIkVDXIaqD3dCNCQ7AyzPdAERzYuOsL3IlqPDP7bR3zTWMhsJ9oHCvMlmkL1OT69YNtHvzeDiiBSOPOvtn/ToQ== X-Received: by 10.202.81.66 with SMTP id f63mr944061oib.184.1485948009901; Wed, 01 Feb 2017 03:20:09 -0800 (PST) In-Reply-To: <20170201002606.GA4224@holos.localdomain> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c06::232 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:211835 Archived-At: --001a113d822c48f28c0547763bc5 Content-Type: text/plain; charset=UTF-8 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? --001a113d822c48f28c0547763bc5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


Mark O= teiza <mvoteiza@udel.edu> sc= hrieb am Mi., 1. Feb. 2017 um 01:28=C2=A0Uhr:

+(defmacro xdg--dir-home (environ default-path)
+=C2=A0 (declare (debug (stringp stringp)))
+=C2=A0 (let ((env (make-symbol "env")))
+=C2=A0 =C2=A0 `(let ((,env (getenv ,environ)))
+=C2=A0 =C2=A0 =C2=A0 =C2=A0(if (or (null ,env) (not (file-name-absolute-p = ,env)))
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(expand-file-name ,default-path)<= br class=3D"gmail_msg"> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0,env))))

Maybe I'm missing something, but why i= s this a macro and not a normal function?=C2=A0
--001a113d822c48f28c0547763bc5--