unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* [patch] 21.3 filecache.el -- Do not include directories to cache
@ 2004-01-24  8:18 Jari Aalto+mail.emacs
  0 siblings, 0 replies; only message in thread
From: Jari Aalto+mail.emacs @ 2004-01-24  8:18 UTC (permalink / raw)



2004-01-24 Sat  Jari Aalto  <jari.aalto@poboxes.com>

        * filecache.el (file-cache-add-directory): Added check for
        directories; not added.


RCS file: /cygdrive/h/data/version-control/cvsroot/emacs/gnu-emacs/lisp213/filecache.el,v
retrieving revision 1.1.1.1
diff -u -IId: -b -w -u -r1.1.1.1 filecache.el
--- filecache.el        26 Jun 2003 18:06:09 -0000      1.1.1.1
+++ filecache.el        24 Jan 2004 08:04:56 -0000
@@ -260,16 +260,18 @@
   (if (not (file-accessible-directory-p directory))
       (message "Directory %s does not exist" directory)
     (let* ((dir       (expand-file-name directory))
-          (dir-files (directory-files dir t regexp))
+           (dir-files (directory-files dir 'full-path regexp))
           )
       ;; Filter out files we don't want to see
       (mapcar
        '(lambda (file)
+          (if (file-directory-p file)
+              (setq dir-files (delq file dir-files))
        (mapcar
         '(lambda (regexp)
            (if (string-match regexp file)
                (setq dir-files (delq file dir-files))))
-        file-cache-filter-regexps))
+             file-cache-filter-regexps)))
        dir-files)
       (file-cache-add-file-list dir-files))))

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-01-24  8:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-24  8:18 [patch] 21.3 filecache.el -- Do not include directories to cache Jari Aalto+mail.emacs

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).