unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* Documentation of file-exists-p in the elisp manual could be better...
@ 2003-06-05 18:05 Dan Katz
  0 siblings, 0 replies; 3+ messages in thread
From: Dan Katz @ 2003-06-05 18:05 UTC (permalink / raw)


In GNU Emacs 21.3.2 (i386-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2003-04-24 on raven, modified by Debian



Hi.

I went looking for a way to find out if a directory existed, and ended
up using file-exists-p.  Looking at the elisp manual, however, did not
make it clear whether this was the correct approach or whether it was
"working by accident."  In particular, the elisp manual description of
file-exists-p was not really clear whether (or how) this function
would (or should) work for directories, sym-links, etc.  While it
seems to basically "do the right thing", I suggest that the
documentation needs to be a bit more explicit about notions of
"generalized" files and how the file-handling functions apply.

The docstring for file-exists-p was not much use in this regard,
although it's link to file-attributes is what led me to suspect that
file-exists-p might be the correct approach for directories as well.
That's a rather indirect hint, however.

I hope this documentation commentary is useful.

Dan

^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <mailman.7395.1054840871.21513.bug-gnu-emacs@gnu.org>]

end of thread, other threads:[~2003-06-05 23:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-05 18:05 Documentation of file-exists-p in the elisp manual could be better Dan Katz
     [not found] <mailman.7395.1054840871.21513.bug-gnu-emacs@gnu.org>
2003-06-05 21:05 ` Kevin Rodgers
     [not found] ` <mailman.7406.1054847503.21513.bug-gnu-emacs@gnu.org>
2003-06-05 23:05   ` Dan Katz

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).