emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] 1.2 0ef245f 051/101: Fix serious breakage introduced by #93


From: Christian Johansson
Subject: [elpa] 1.2 0ef245f 051/101: Fix serious breakage introduced by #93
Date: Thu, 29 Apr 2021 15:08:59 -0400 (EDT)

tag: 1.2
commit 0ef245fdab763b7ccee9d36a7292c16db953e66a
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]