From ef5e1235f657f224468ea9ba32cfff2d46475fc0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Fri, 7 Sep 2018 12:22:14 +0100 Subject: [PATCH] Fix serious breakage introduced by string-prefix-p doesn't work on symbols * eglot.el (eglot-handle-notification): Coerce method name to string. GitHub-reference: https://github.com/joaotavora/eglot/issues/93 --- lisp/progmodes/eglot.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 2ef22593e06..14c32db9eef 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/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 -- 2.39.2