From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: About `current-directory-list' Date: Sat, 22 Dec 2012 18:25:58 -0800 Message-ID: <8DF10C189E6142EAB9E23A0FD6222D13@us.oracle.com> References: <20121223095822.cb9d088ef9fbf18833def4b1@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1356229588 24700 80.91.229.3 (23 Dec 2012 02:26:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Dec 2012 02:26:28 +0000 (UTC) To: "'Xue Fuqiao'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 23 03:26:43 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TmbH1-0006fI-5Y for geh-help-gnu-emacs@m.gmane.org; Sun, 23 Dec 2012 03:26:43 +0100 Original-Received: from localhost ([::1]:41148 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TmbGm-0007te-SX for geh-help-gnu-emacs@m.gmane.org; Sat, 22 Dec 2012 21:26:28 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36867) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TmbGd-0007rg-Eb for help-gnu-emacs@gnu.org; Sat, 22 Dec 2012 21:26:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TmbGU-0004nm-Ba for help-gnu-emacs@gnu.org; Sat, 22 Dec 2012 21:26:19 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:43143) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TmbGT-0004na-Tz for help-gnu-emacs@gnu.org; Sat, 22 Dec 2012 21:26:10 -0500 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by aserp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id qBN2Q7SG008027 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 23 Dec 2012 02:26:08 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id qBN2Q7tS011133 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 23 Dec 2012 02:26:07 GMT Original-Received: from abhmt116.oracle.com (abhmt116.oracle.com [141.146.116.68]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id qBN2Q6i4021872; Sat, 22 Dec 2012 20:26:06 -0600 Original-Received: from dradamslap1 (/71.202.147.44) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 22 Dec 2012 18:26:06 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <20121223095822.cb9d088ef9fbf18833def4b1@gmail.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Thread-Index: Ac3gsyzcU8u35CTqTwirpz1yEWHXQQAAQiLg X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88295 Archived-At: > The varlist of the `let' special form is: > (el-files-list > (current-directory-list > (directory-files-and-attributes directory t))) > > I don't know what does `current-directory-list' means, in my > Emacs(24.2), there isn't a function named > `current-directory-list'. Can anybody help? It is a local variable bound in that `let'. You show two bindings: 1. `el-files-list' is bound to nil (implicitly). 2. `current-directory-list' is bound to (directory-files-and...). I, for one, prefer to write any implicit bindings last, after the explicit ones: (let ((current-directory-list (directory-files-...)) el-files-list) I think that is more readable. And if I want to draw attention to an initial value of nil then I use an explicit binding. And if it is a list variable then I use (); if a Boolean or other I use nil. E.g.: (let ((el-files-list ()) (found nil))