Mercurial > emacs
comparison lisp/files.el @ 45149:f821fa45b822
(locate-file): Deprecate integer values for predicate.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Mon, 06 May 2002 21:11:51 +0000 |
parents | 2e2beba30184 |
children | dcc56f49b739 |
comparison
equal
deleted
inserted
replaced
45148:af3fa518b224 | 45149:f821fa45b822 |
---|---|
550 "Search for FILENAME through PATH. | 550 "Search for FILENAME through PATH. |
551 If SUFFIXES is non-nil, it should be a list of suffixes to append to | 551 If SUFFIXES is non-nil, it should be a list of suffixes to append to |
552 file name when searching. If SUFFIXES is nil, it is equivalent to '(\"\"). | 552 file name when searching. If SUFFIXES is nil, it is equivalent to '(\"\"). |
553 If non-nil, PREDICATE is used instead of `file-readable-p'. | 553 If non-nil, PREDICATE is used instead of `file-readable-p'. |
554 PREDICATE can also be an integer to pass to the access(2) function, | 554 PREDICATE can also be an integer to pass to the access(2) function, |
555 in which case file-name-handlers are ignored. | 555 in which case file-name-handlers are ignored (this use is deprecated). |
556 For compatibility with XEmacs, PREDICATE can also be a symbol among | 556 For compatibility with XEmacs, PREDICATE can also be a symbol among |
557 `executable', `readable', `writable', or `exists' or a list of one | 557 `executable', `readable', `writable', or `exists' or a list of one |
558 of those symbols." | 558 of those symbols." |
559 (if (and predicate (symbolp predicate) (not (functionp predicate))) | 559 (if (and predicate (symbolp predicate) (not (functionp predicate))) |
560 (setq predicate (list predicate))) | 560 (setq predicate (list predicate))) |