all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Xue Fuqiao'" <xfq.free@gmail.com>, <help-gnu-emacs@gnu.org>
Subject: RE: About `current-directory-list'
Date: Sat, 22 Dec 2012 18:25:58 -0800	[thread overview]
Message-ID: <8DF10C189E6142EAB9E23A0FD6222D13@us.oracle.com> (raw)
In-Reply-To: <20121223095822.cb9d088ef9fbf18833def4b1@gmail.com>

> 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))




  reply	other threads:[~2012-12-23  2:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-23  1:58 About `current-directory-list' Xue Fuqiao
2012-12-23  2:25 ` Drew Adams [this message]
2012-12-23  2:42   ` Xue Fuqiao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8DF10C189E6142EAB9E23A0FD6222D13@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=xfq.free@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.