emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] scratch/editorconfig-cc 3a7bb0d820 185/351: Clear translate cac


From: Stefan Monnier
Subject: [nongnu] scratch/editorconfig-cc 3a7bb0d820 185/351: Clear translate cache on file reload
Date: Thu, 13 Jun 2024 18:38:52 -0400 (EDT)

branch: scratch/editorconfig-cc
commit 3a7bb0d8209dbd4fd8cb5ab8825ae5278337adda
Author: 10sr <8.slashes@gmail.com>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>

    Clear translate cache on file reload
---
 editorconfig-fnmatch.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/editorconfig-fnmatch.el b/editorconfig-fnmatch.el
index 8126060ef6..69a0c766dc 100644
--- a/editorconfig-fnmatch.el
+++ b/editorconfig-fnmatch.el
@@ -55,8 +55,11 @@
 (require 'cl-lib)
 
 (defvar editorconfig-fnmatch--cache-hashtable
-  (make-hash-table :test 'equal)
+  nil
   "Cache of shell pattern and its translation.")
+;; Clear cache on file reload
+(setq editorconfig-fnmatch--cache-hashtable
+      (make-hash-table :test 'equal))
 
 
 (defconst editorconfig-fnmatch--left-brace-regexp



reply via email to

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