[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#3785: 23.0.91; Strangeness involving regexp in directory-files comma
From: |
Stephen Berman |
Subject: |
bug#3785: 23.0.91; Strangeness involving regexp in directory-files command used on dir of links |
Date: |
Thu, 09 Jul 2009 00:39:51 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
On Wed, 08 Jul 2009 10:06:58 -0400 Loyd Fueston <loydf@charter.net> 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