+(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))))