bug#3785: 23.0.91; Strangeness involving regexp in directory-files command used on dir of links

Stephen Berman <[email protected]>
Newsgroups gmane.emacs.bugs,gmane.emacs.pretest.bugs
Message-ID <[email protected]>
On Wed, 08 Jul 2009 10:06:58 -0400 Loyd Fueston <[email protected]> wrote:

> I have files of todo items for various projects and a directory of
> links to those files.  A simple function to search those files was
> skipping over links named "misc" and "emacs".  The following function
> narrows the problem down.  It seems to be a true problem but maybe I'm
> doing something dumb?  I use emacs-snapshot, 23.0.91.1 but checked
> using emacs 22.2.1 from Debian Lenny and same problem occurs.  Also
> checked with emacs-snapshot started with emacs -Q.  Problem is same.
>
>
> ;;; ============================================================
>
> (defun test-links ()
>   "This narrows down a problem showing in a more complex program."
>   (interactive)
>   (setq links (directory-files "~/programming/emacs/debug/links" t "[:word:]" t))
                                                                      ^^^^^^^^
The regexp should be "[[:word:]]"

Steve Berman
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.