[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Add XDG utility library

From: Philipp Stephani
Subject: Re: [PATCH] Add XDG utility library
Date: Wed, 01 Feb 2017 11:19:59 +0000

Mark Oteiza <address@hidden> 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? 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]