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

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

[nongnu] elpa/symbol-overlay 4623bd1ab3 131/152: Fix format error while


From: ELPA Syncer
Subject: [nongnu] elpa/symbol-overlay 4623bd1ab3 131/152: Fix format error while marking a symbol contains "%"
Date: Thu, 7 Jul 2022 12:04:22 -0400 (EDT)

branch: elpa/symbol-overlay
commit 4623bd1ab38adc94e38ca7a1dc68c3cc9d403c81
Author: Zhu Zihao <all_but_last@163.com>
Commit: Zhu Zihao <all_but_last@163.com>

    Fix format error while marking a symbol contains "%"
    
    * symbol-overlay.el(symbol-overlay-maybe-count): Escape symbol in format 
string.
---
 symbol-overlay.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/symbol-overlay.el b/symbol-overlay.el
index da4841e099..0fea29900f 100644
--- a/symbol-overlay.el
+++ b/symbol-overlay.el
@@ -398,10 +398,10 @@ If SHOW-COLOR is non-nil, display the color used by 
current overlay."
            (count (length before))
            ;; Log to echo area but not *Messages*
            message-log-max)
-      (message (concat symbol
-                       ": %d/%d"
+      (message (concat "%s: %d/%d"
                        (and (cadr keyword) " in scope")
                        (and show-color (format " (%s)" (cddr keyword))))
+               symbol
                (+ count 1)
                (+ count (length after))))))
 



reply via email to

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