From: João Távora Date: Fri, 7 Sep 2018 11:22:14 +0000 (+0100) Subject: Fix serious breakage introduced by X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~432 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ef5e1235f657f224468ea9ba32cfff2d46475fc0;p=emacs.git 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 --- 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