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

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

[elpa] externals/eglot bd6304d 57/62: Fix serious breakage introduced by


From: Stefan Monnier
Subject: [elpa] externals/eglot bd6304d 57/62: Fix serious breakage introduced by #93
Date: Sat, 29 Sep 2018 17:13:37 -0400 (EDT)

branch: externals/eglot
commit bd6304d899fcee3c85d4b0d7b59b206d605fb2a0
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>

    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]