emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [PATCH v2] fix SETUPFILE pathname expansion with subdirectories


From: Richard Hansen
Subject: Re: [O] [PATCH v2] fix SETUPFILE pathname expansion with subdirectories
Date: Sat, 19 Sep 2015 19:14:03 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0

On 2015-09-19 18:43, Kyle Meyer wrote:
> Richard Hansen <address@hidden> writes:
> 
>>                           (with-temp-buffer
>> +                           (cd (file-name-directory file))
>>                             (org-mode)
>>                             (insert (org-file-contents file 'noerror))
> 
> Why not just set default-directory instead of calling cd?  Does it make
> sense to support CDPATH here?

I wasn't aware of CDPATH and its interaction with cd.  Should I use
cd-absolute instead of setting default-directory directly?  It does some
sanity checks (among other things) that seem worthwhile.

Thanks,
Richard



reply via email to

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