]> git.eshelyaron.com Git - emacs.git/commitdiff
Eglot: eglot--servers-by-xrefed-file doesn't need to be value-weak
authorJoão Távora <joaotavora@gmail.com>
Thu, 22 Dec 2022 15:44:11 +0000 (15:44 +0000)
committerJoão Távora <joaotavora@gmail.com>
Thu, 22 Dec 2022 15:44:11 +0000 (15:44 +0000)
* lisp/progmodes/eglot.el (eglot--servers-by-xrefed-file): Doesn't
need to be weak.

lisp/progmodes/eglot.el

index e7782ea811287af397aabd012b6028e71f7f27b1..15cb1b6fad01db9a1c51e010f3cea7d5d0229e1c 100644 (file)
@@ -908,8 +908,7 @@ PRESERVE-BUFFERS as in `eglot-shutdown', which see."
            do (with-demoted-errors "[eglot] shutdown all: %s"
                 (cl-loop for s in ss do (eglot-shutdown s nil nil preserve-buffers)))))
 
-(defvar eglot--servers-by-xrefed-file
-  (make-hash-table :test 'equal :weakness 'value))
+(defvar eglot--servers-by-xrefed-file (make-hash-table :test 'equal))
 
 (defun eglot--on-shutdown (server)
   "Called by jsonrpc.el when SERVER is already dead."