[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

filecache not working anymore

From: Frederik Fouvry
Subject: filecache not working anymore
Date: Tue, 7 Dec 2004 17:03:47 +0100 (CET)


Some weeks ago, I reported a bug in filecache (caused by the adapation
for cygwin systems): nothing was being placed in the cache anymore.
This is a patch to fix the problem.

`file-cache-find-command-posix-flag' is only used in case of
'windows-nt or 'cygwin.  Otherwise the old behaviour is restored (an
unquoted/unescaped wild card).  (Note: some cygwin systems report
'windows-nt as their system-type.)

Index: lisp/filecache.el
RCS file: /cvsroot/emacs/emacs/lisp/filecache.el,v
retrieving revision 1.21
diff -u -r1.21 filecache.el
--- lisp/filecache.el   16 Feb 2004 13:36:12 -0000      1.21
+++ lisp/filecache.el   7 Dec 2004 15:53:12 -0000
@@ -345,13 +345,11 @@
     (call-process file-cache-find-command nil
                  (get-buffer file-cache-buffer) nil
                  dir "-name"
-                  (cond
-                   (file-cache-find-command-posix-flag
-                    "\\*")
-                   ((eq system-type 'windows-nt)
-                    "'*'")
-                   (t
-                    "*"))
+                 (if (memq system-type '(windows-nt cygwin))
+                     (if file-cache-find-command-posix-flag
+                         "\\*"
+                       "'*'")
+                   "*")

In GNU Emacs (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2004-12-07 on cc.at.coli.uni-sb.de
Distributor `The XFree86 Project, Inc', version 11.0.40201000
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: POSIX
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: address@hidden
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_GB
  locale-coding-system: iso-latin-1
  default-enable-multibyte-characters: t

Major mode: LaTeX

Minor modes in effect:
  reftex-mode: t
  auto-image-file-mode: t
  desktop-save-mode: t
  global-auto-revert-mode: t
  iswitchb-mode: t
  which-function-mode: t
  show-paren-mode: t
  recentf-mode: t
  display-time-mode: t
  auto-insert-mode: t
  auto-compression-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t

Recent input:
e s <return> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <up> C-x 1 s <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <escape> = C-x 1 <down> 
<down> <down> <down> <down> <help-echo> g <help-echo> 
<down> <return> <help-echo> <up> <up> ! d u SPC - s 
k C-g C-g ! d u SPC C-g <up> <up> <up> <return> u <up> 
<down> <return> ! d u SPC - s k <return> <help-echo> 
<down> <down> <down> C-x k <return> g C-x k <return> 
q <help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <menu-bar> <help-menu> 

Recent messages:
Loading easy-mmode...done
Loading diff-mode...done
1 of 1 deletions
1 deletion done
1 of 1 deletions
1 deletion done
dired-get-filename: Cannot operate on `.' or `..'
Quit [3 times]
412     older
Loading emacsbug...done

reply via email to

[Prev in Thread] Current Thread [Next in Thread]