From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Hrvoje Niksic Newsgroups: gmane.emacs.devel Subject: Re: locate-file in Emacs Date: Mon, 06 May 2002 21:53:16 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: References: <200204170928.g3H9SVb27019@rum.cs.yale.edu> <200204171001.g3HA1hh27230@rum.cs.yale.edu> <200204181408.g3IE83b02114@rum.cs.yale.edu> <200204181527.g3IFRFC02843@rum.cs.yale.edu> <200204181859.g3IIxEY04890@rum.cs.yale.edu> <200204252252.g3PMqYL25578@rum.cs.yale.edu> <200205061655.g46Gt3K01382@rum.cs.yale.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1020736356 2679 127.0.0.1 (7 May 2002 01:52:36 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 7 May 2002 01:52:36 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 174u9c-0000h6-00 for ; Tue, 07 May 2002 03:52:36 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 174uH2-0007AL-00 for ; Tue, 07 May 2002 04:00:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 174so5-0008WN-00; Mon, 06 May 2002 20:26:17 -0400 Original-Received: from 212-84-246-077.trmd.net ([212.84.246.77] helo=florida.munich.redhat.com) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 174oY0-00039G-00 for ; Mon, 06 May 2002 15:53:24 -0400 Original-Received: from hniksic by florida.munich.redhat.com with local (Exim 3.35 #1 (Debian)) id 174oXs-0006LH-00; Mon, 06 May 2002 21:53:16 +0200 Original-To: "Stefan Monnier" X-Attribution: Hrvoje X-Face: &{dT~)Pu6V<0y?>3p$;@vh\`C7xB~A0T-J%Og)J,@-1%q6Q+, gs<-9M#&`I8cJp2b1{vPE|~+JE+gx;a7%BG{}nY^ehK1"q#rG O,Rn1A_Cy%t]V=Brv7h ("Stefan Monnier"'s message of "Mon, 06 May 2002 12:55:02 -0400") Original-Lines: 21 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) XEmacs/21.4 (Common Lisp, i686-pc-linux) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:3649 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:3649 "Stefan Monnier" writes: > Search for FILENAME through PATH. > If SUFFIXES is non-nil, it should be a list of suffixes to append to > file name when searching. If SUFFIXES is nil, it is equivalent to '(""). > If non-nil, PREDICATE is used instead of `file-readable-p'. > PREDICATE can also be an integer to pass to the access(2) function, > in which case file-name-handlers are ignored. > For compatibility with XEmacs, PREDICATE can also be a symbol among > `executable', `readable', `writable', or `exists' or a list of one > of those symbols. Why have you reverted to the old integer-based interface for PREDICATE? These days even "access(2)" uses preprocessor constants for its second argument. The user really shouldn't learn obscure integer combinations when more readable symbols are available. Besides, both the numbers and the symbols are compatible with XEmacs. XEmacs supports (but does not document) the numbers and will do so in the foreseeable future. In fact, it will do so forever if it has to be done for compatibility with your code, which reintroduces them.