Skip to content

Commit 77d6ac2

Browse files
committed
fix(eglot): compatibility with the built-in version of Eglot in Emacs 29
1 parent 9cc5b8f commit 77d6ac2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/me-builtin.el

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,10 @@ or file path may exist now."
591591

592592
;; PERF: Optimization, inspired by: https://reddit.com/r/emacs/comments/1gv556t/comment/lxzbfw8
593593
(unless minemacs-debug-p
594-
(cl-callf plist-put eglot-events-buffer-config :size 0) ; Disable logs in `eglot-events-buffer' (def. 2000000)
594+
(cond ((boundp 'eglot-events-buffer-config)
595+
(cl-callf plist-put eglot-events-buffer-config :size 0)) ; Disable logs in `eglot-events-buffer' (def. 2000000)
596+
((boundp 'eglot-events-buffer-size) ; Emacs 29
597+
(setq eglot-events-buffer-size 0)))
595598
(with-eval-after-load 'jsonrpc ; Disable logging in `jsonrpc'
596599
(fset 'jsonrpc--log-event #'ignore)
597600
(remove-hook 'jsonrpc-event-hook 'jsonrpc--log-event)))

0 commit comments

Comments
 (0)