branch: externals/eglot
commit bd6304d899fcee3c85d4b0d7b59b206d605fb2a0
Author: João Távora <[email protected]>
Commit: João Távora <[email protected]>
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