From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: read-file-name-predicate Date: Tue, 6 Mar 2007 22:00:13 -0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1173247309 1579 80.91.229.12 (7 Mar 2007 06:01:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 7 Mar 2007 06:01:49 +0000 (UTC) To: "Emacs-Devel" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 07 07:01:42 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HOpDZ-0001Db-IH for ged-emacs-devel@m.gmane.org; Wed, 07 Mar 2007 07:01:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HOpDc-0007vM-8t for ged-emacs-devel@m.gmane.org; Wed, 07 Mar 2007 01:01:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HOpDM-0007tV-I7 for emacs-devel@gnu.org; Wed, 07 Mar 2007 01:01:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HOpDK-0007qN-H3 for emacs-devel@gnu.org; Wed, 07 Mar 2007 01:01:27 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HOpDK-0007qC-2t for emacs-devel@gnu.org; Wed, 07 Mar 2007 01:01:26 -0500 Original-Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HOpDE-0007sY-Sk for emacs-devel@gnu.org; Wed, 07 Mar 2007 01:01:22 -0500 Original-Received: from rgmgw1.us.oracle.com (rgmgw1.us.oracle.com [138.1.186.110]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id l2761BxP027583 for ; Tue, 6 Mar 2007 23:01:12 -0700 Original-Received: from rcsmt250.oracle.com (rcsmt250.oracle.com [148.87.90.195]) by rgmgw1.us.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l275IUfZ008813 for ; Tue, 6 Mar 2007 23:01:11 -0700 Original-Received: from dhcp-amer-whq-csvpn-gw3-141-144-82-57.vpn.oracle.com by rcsmt251.oracle.com with ESMTP id 2502422721173247216; Tue, 06 Mar 2007 23:00:16 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Importance: Normal X-Whitelist: TRUE X-Whitelist: TRUE X-Brightmail-Tracker: AAAAAQAAAAI= X-detected-kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:67484 Archived-At: `read-file-name-predicate' is a Lisp variable. It's doc says only that it is the current predicate used by built-in function `read-file-name-internal'. This is the only doc about it, and it gives the impression that it is only an internal variable for a built-in function. If that were true, then why would it be a Lisp variable instead of a C variable? The C code shows that `read-file-name-predicate' is in fact set to the value of the PREDICATE arg to `read-file-name', but that is not documented anywhere - shouldn't it be? `read-file-name-predicate' has an external, Lisp behavior: During completion, Lisp code can check what the predicate is or even change the predicate. Shouldn't that be documented? IOW, it seems like this variable is currently half way between being internal and external. The doc suggests that it is internal, but the code shows that you can examine it and change it from Lisp.