[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/slime 321ec0c032 02/43: Don't allow duplicate entries in t
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/slime 321ec0c032 02/43: Don't allow duplicate entries in the source file cache. |
Date: |
Thu, 28 Dec 2023 22:00:28 -0500 (EST) |
branch: elpa/slime
commit 321ec0c032cf5cecb4f715719aae29ddcfd243e6
Author: Gabor Melis <(none)>
Commit: Stas Boukarev <stassats@gmail.com>
Don't allow duplicate entries in the source file cache.
It's an EQUAL hash table, so make sure NAMESTRINGs are converted to
PATHNAMEs. This assumes that the filename is never NIL.
---
swank/source-file-cache.lisp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/swank/source-file-cache.lisp b/swank/source-file-cache.lisp
index e639ea114e..a6869609f8 100644
--- a/swank/source-file-cache.lisp
+++ b/swank/source-file-cache.lisp
@@ -71,7 +71,8 @@ If the exact version cannot be found then return the current
one from disk."
"Return the source code for FILENAME as written on DATE in a string.
Return NIL if the right version cannot be found."
(when *cache-sourcecode*
- (let ((entry (gethash filename *source-file-cache*)))
+ (let* ((filename (pathname filename))
+ (entry (gethash filename *source-file-cache*)))
(cond ((and entry (equal date (source-cache-entry.date entry)))
;; Cache hit.
(source-cache-entry.text entry))
@@ -88,7 +89,7 @@ Return NIL if the right version cannot be found."
(defun source-cached-p (filename)
"Is any version of FILENAME in the source cache?"
- (if (gethash filename *source-file-cache*) t))
+ (if (gethash (pathname filename) *source-file-cache*) t))
(defun read-file (filename)
"Return the entire contents of FILENAME as a string."
- [nongnu] elpa/slime 78ad57b745 27/43: Handle a lot of output more responsively., (continued)
- [nongnu] elpa/slime 78ad57b745 27/43: Handle a lot of output more responsively., ELPA Syncer, 2023/12/28
- [nongnu] elpa/slime ffdf3dc58d 21/43: sbcl.lisp: remove SPEED declarations., ELPA Syncer, 2023/12/28
- [nongnu] elpa/slime 3ee2864f52 28/43: Remove sentinel thread., ELPA Syncer, 2023/12/28
- [nongnu] elpa/slime 8a85af1f77 39/43: find-definitions-for-emacs: remove duplicate definitions., ELPA Syncer, 2023/12/28
- [nongnu] elpa/slime f41e5590e2 26/43: Disable SIGIO support for SBCL on Haiku, ELPA Syncer, 2023/12/28
- [nongnu] elpa/slime 618f8de186 22/43: swank-asdf: ignore style-warnings., ELPA Syncer, 2023/12/28
- [nongnu] elpa/slime d925e3ddb7 37/43: slime-cl-indent: indent DEFINE-COMPILER-MACRO the same way as DEFUN, ELPA Syncer, 2023/12/28
- [nongnu] elpa/slime 829310b84f 35/43: Use normal let* instead of deprecated lexical-let*, ELPA Syncer, 2023/12/28
- [nongnu] elpa/slime ba29269074 36/43: Simplify message timestamp formatting, ELPA Syncer, 2023/12/28
- [nongnu] elpa/slime 33d9f46a48 06/43: abcl: Fix openjdk16+ inspection of Java objects fields, ELPA Syncer, 2023/12/28
- [nongnu] elpa/slime 321ec0c032 02/43: Don't allow duplicate entries in the source file cache.,
ELPA Syncer <=
- [nongnu] elpa/slime 805c29672c 25/43: clasp: Replace TMP host with EXT:TEMPORARY-DIRECTORY when available, ELPA Syncer, 2023/12/28
- [nongnu] elpa/slime 8bdcc23f9b 10/43: abcl: implement frame-catch-tags, ELPA Syncer, 2023/12/28
- [nongnu] elpa/slime 771ac73104 34/43: Convert slime-asdf.el to lexical binding, ELPA Syncer, 2023/12/28
- [nongnu] elpa/slime 180dea856b 07/43: read-source-form: add :sb-xc to *features* on SBCL., ELPA Syncer, 2023/12/28
- [nongnu] elpa/slime ac69b31b1c 32/43: tests: increase timeouts., ELPA Syncer, 2023/12/28
- [nongnu] elpa/slime 0c6bc6bd26 33/43: Inspector: differentiate inactive array elements, ELPA Syncer, 2023/12/28
- [nongnu] elpa/slime a02742211e 41/43: Fix apropos-mode., ELPA Syncer, 2023/12/28
- [nongnu] elpa/slime 28adf1dca0 43/43: Merge commit 'a4f3471487db48f7289dc0ea019611d093e5ee7f' into elpa--merge/slime, ELPA Syncer, 2023/12/28
- [nongnu] elpa/slime 3b9713f207 05/43: swank.asd: Do not reload SWANK., ELPA Syncer, 2023/12/28
- [nongnu] elpa/slime 65b781d9c7 19/43: swank-arglists: Silence the SBCL inlining warning., ELPA Syncer, 2023/12/28