[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/eglot ba618d2cee: Fix #948: Use format string instead o
From: |
ELPA Syncer |
Subject: |
[elpa] externals/eglot ba618d2cee: Fix #948: Use format string instead of concat |
Date: |
Mon, 9 May 2022 15:57:31 -0400 (EDT) |
branch: externals/eglot
commit ba618d2cee55c8c339d46621b7e721957cc30a72
Author: Theodor Thornhill <theo@thornhill.no>
Commit: GitHub <noreply@github.com>
Fix #948: Use format string instead of concat
* eglot.el (eglot-handle-notification): Because diagnostics code can
be integer or string, and integer fails the sequencep test, use format
to create this string.
---
eglot.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eglot.el b/eglot.el
index 3e3eb3c543..e8f060cd64 100644
--- a/eglot.el
+++ b/eglot.el
@@ -1959,7 +1959,7 @@ COMMAND is a symbol naming the command."
((= sev 2) 'eglot-warning)
(t 'eglot-note)))
(mess (source code message)
- (concat source (and code (concat " [" code "]")) ": " message)))
+ (concat source (and code (format " [%s]" code)) ": " message)))
(if-let ((buffer (find-buffer-visiting (eglot--uri-to-path uri))))
(with-current-buffer buffer
(cl-loop
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/eglot ba618d2cee: Fix #948: Use format string instead of concat,
ELPA Syncer <=