]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix serious breakage introduced by
authorJoão Távora <joaotavora@gmail.com>
Fri, 7 Sep 2018 11:22:14 +0000 (12:22 +0100)
committerJoão Távora <joaotavora@gmail.com>
Fri, 7 Sep 2018 11:22:14 +0000 (12:22 +0100)
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

index 2ef22593e06fe82c1b7d73985896d24589b6f5df..14c32db9eefc8d85a4e0bd443d78229b3d2679ac 100644 (file)
@@ -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