]> git.eshelyaron.com Git - emacs.git/commitdiff
Further shrink eglot--{}
authorBasil L. Contovounesios <contovob@tcd.ie>
Fri, 19 Jan 2024 12:50:29 +0000 (13:50 +0100)
committerEshel Yaron <me@eshelyaron.com>
Wed, 24 Jan 2024 18:31:52 +0000 (19:31 +0100)
Up to and including Emacs 29, :size 0 was an alias for :size 1.
Emacs 30 gained support for :size 0 hash tables (bug#68244).

* lisp/progmodes/eglot.el (eglot--{}): Define as truly zero-sized.

(cherry picked from commit 87cf30fba37346a179c6307a29d5d39b39311cef)

lisp/progmodes/eglot.el

index c5cfdd3cedd983959fa675ebaa20ebbd146448d9..511000927cf9db8d3646a59636a5dda41a421d60 100644 (file)
@@ -575,7 +575,7 @@ It is nil if Eglot is not byte-complied.")
 
 (defvaralias 'eglot-{} 'eglot--{})
 
-(defconst eglot--{} (make-hash-table :size 1) "The empty JSON object.")
+(defconst eglot--{} (make-hash-table :size 0) "The empty JSON object.")
 
 (defun eglot--executable-find (command &optional remote)
   "Like Emacs 27's `executable-find', ignore REMOTE on Emacs 26."