unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: jari.aalto@poboxes.com (Jari Aalto+mail.emacs)
Subject: [patch] 21.3 filecache.el -- Do not include directories to cache
Date: Sat, 24 Jan 2004 10:18:39 +0200	[thread overview]
Message-ID: <hdylhi8w.fsf@blue.sea.net> (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))))

                 reply	other threads:[~2004-01-24  8:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=hdylhi8w.fsf@blue.sea.net \
    --to=jari.aalto@poboxes.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 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).