From: Juri Linkov Date: Mon, 9 Jun 2025 06:40:12 +0000 (+0300) Subject: * lisp/progmodes/c-ts-mode.el (c-ts-mode-menu): Add 'bound-and-true-p'. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=94a32d68f1383242ac83282df31575dfb3bff860;p=emacs.git * lisp/progmodes/c-ts-mode.el (c-ts-mode-menu): Add 'bound-and-true-p'. Use 'bound-and-true-p' for the case when 'subword-mode' is not loaded. (cherry picked from commit 3c04806b44843e2e07ff3344e2b3f68ffc62575a) --- diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el index 070984f4aac..f63b71f89a3 100644 --- a/lisp/progmodes/c-ts-mode.el +++ b/lisp/progmodes/c-ts-mode.el @@ -1618,7 +1618,7 @@ recommended to enable `electric-pair-mode' with this mode." "--" ("Toggle..." ["Subword Mode" subword-mode - :style toggle :selected subword-mode + :style toggle :selected (bound-and-true-p subword-mode) :help "Toggle subword movement and editing mode"]))) ;; We could alternatively use parsers, but if this works well, I don't