emacs-diffs
[Top][All Lists]
Advanced

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

emacs-29 a72a55e3e49: Fix c/c++-ts-mode's mode lighter


From: Eli Zaretskii
Subject: emacs-29 a72a55e3e49: Fix c/c++-ts-mode's mode lighter
Date: Thu, 2 Mar 2023 14:35:24 -0500 (EST)

branch: emacs-29
commit a72a55e3e497f7451000fdcf76000eb76946d827
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    Fix c/c++-ts-mode's mode lighter
    
    * lisp/progmodes/c-ts-mode.el (c-ts-mode-set-modeline): Remove
    trailing blank from comment-start when indicating the comment
    style on the mode line.
---
 lisp/progmodes/c-ts-mode.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el
index a29bf4f3480..3afd7a4a913 100644
--- a/lisp/progmodes/c-ts-mode.el
+++ b/lisp/progmodes/c-ts-mode.el
@@ -109,7 +109,8 @@ just toggles it when zero or left out."
 
 (defun c-ts-mode-set-modeline ()
   (setq mode-name
-        (concat (if (eq major-mode 'c-ts-mode) "C" "C++") comment-start))
+        (concat (if (eq major-mode 'c-ts-mode) "C" "C++")
+                (string-trim-right comment-start)))
   (force-mode-line-update))
 
 (defun c-ts-mode--indent-style-setter (sym val)



reply via email to

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