From 652bc3dab1ddf4b9c4e37640dbf8a2ec9dc521b9 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sun, 31 Jan 2016 20:21:24 +0000 Subject: [PATCH] Solve annoying "Icon" file rendering issue with ECB ...by simply not displaying that file. --- modules/siren-ecb.el | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/siren-ecb.el b/modules/siren-ecb.el index 9458b03..d6830d5 100644 --- a/modules/siren-ecb.el +++ b/modules/siren-ecb.el @@ -30,6 +30,16 @@ ("~" "~") ("/" "/")))) +;; Add "^Icon$" as a exclude to the default sources. Dropbox uses "Icon" files +;; with some weird unprintable character at the end of the filename to customize +;; the folder icon. ECB however errors out when trying to render this file, +;; hence we're no longer displaying it at all. +(setq ecb-source-file-regexps + (quote + ((".*" + ("\\(^\\(\\.\\|#\\)\\|\\(~$\\|\\.\\(elc\\|obj\\|o\\|class\\|lib\\|dll\\|a\\|so\\|cache\\)$\\)\\)" "^Icon$") + ("^\\.\\(emacs\\|gnus\\)$"))))) + (if window-system (ecb-activate)) (provide 'siren-ecb)