emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: woman doesn't work if current buffer's directory doesn't exist


From: Chris Moore
Subject: Re: woman doesn't work if current buffer's directory doesn't exist
Date: Sat, 27 Jan 2007 10:53:24 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

> At this late stage in the pretest, won't it be safer to bind
> default-directory only if the original value doesn't exist?

I don't think so, because it's possible for the original value to
exist and yet not be accessible to us.  For example, if the original
value exists but we don't have execute permission on it, then
call-process still fails like this:

    Debugger entered--Lisp error: (file-error "Setting current directory"
    "permission denied" "/tmp/444/")

On the other hand, if we can't cd to (file-name-directory infile) then
we won't be able to read infile anyway.




reply via email to

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