projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67befc1
)
Fix c/c++-ts-mode's mode lighter
author
Eli Zaretskii
<eliz@gnu.org>
Thu, 2 Mar 2023 19:34:22 +0000
(21:34 +0200)
committer
Eli Zaretskii
<eliz@gnu.org>
Thu, 2 Mar 2023 19:34:22 +0000
(21:34 +0200)
* 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
patch
|
blob
|
history
diff --git
a/lisp/progmodes/c-ts-mode.el
b/lisp/progmodes/c-ts-mode.el
index a29bf4f3480e8944a433f31321326cd64f1d03f3..3afd7a4a9134dbc161209c2d50bb9e70d6b6935a 100644
(file)
--- 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)