tag: 1.2 commit 0ef245fdab763b7ccee9d36a7292c16db953e66a Author: João Távora <joaotav...@gmail.com> Commit: João Távora <joaotav...@gmail.com>
Fix serious breakage introduced by #93 string-prefix-p doesn't work on symbols * eglot.el (eglot-handle-notification): Coerce method name to string. --- eglot.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eglot.el b/eglot.el index 2ef2259..14c32db 100644 --- a/eglot.el +++ b/eglot.el @@ -987,7 +987,7 @@ Uses THING, FACE, DEFS and PREPEND." (cl-defmethod eglot-handle-notification (_server method &key &allow-other-keys) "Handle unknown notification" - (unless (string-prefix-p "$" method) + (unless (string-prefix-p "$" (format "%s" method)) (eglot--warn "Server sent unknown notification method `%s'" method))) (cl-defmethod eglot-handle-request