Richard Hansen <rhan...@bbn.com> writes: > Should I use cd-absolute instead of setting default-directory > directly? It does some sanity checks (among other things) that seem > worthwhile.
Looking at these checks, I don't think they are useful in this context, and some change the intended behavior. * One check makes sure the directory ends in a slash, but this will already be the case because your changes call file-name-directory. * Another calls expand-file-name, but all these functions already expand the original file name upstream. * Another signals an error if the directory doesn't exist, is not a directory, or isn't accessible. All but one of these functions call org-file-contents with a non-nil NOERROR, so the intent is to message rather than raise an error when a file doesn't exist. (org--setup-collect-keywords is the one function that doesn't use org-file-contents, but it does check that the file is readable before calling insert-file-contents.) -- Kyle