From: Eli Zaretskii Date: Mon, 30 Jan 2023 13:42:06 +0000 (+0200) Subject: Fix keymap inheritance in descendants of 'c-ts-base-mode' X-Git-Tag: emacs-29.0.90~557 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e866490a077;p=emacs.git Fix keymap inheritance in descendants of 'c-ts-base-mode' * lisp/progmodes/c-ts-mode.el (c-ts-base-mode-map): Rename from 'c-ts-mode-map'. (c-ts-base-mode): Adjust accordingly. (Bug#60983) --- diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el index 612c41bf073..195c23d28c9 100644 --- a/lisp/progmodes/c-ts-mode.el +++ b/lisp/progmodes/c-ts-mode.el @@ -697,8 +697,8 @@ the semicolon. This function skips the semicolon." ;;; Modes -(defvar-keymap c-ts-mode-map - :doc "Keymap for the C language with tree-sitter" +(defvar-keymap c-ts-base-mode-map + :doc "Keymap for C and C-like languages with tree-sitter" :parent prog-mode-map "C-c C-q" #'c-ts-mode-indent-defun "C-c ." #'c-ts-mode-set-style) @@ -707,7 +707,7 @@ the semicolon. This function skips the semicolon." (define-derived-mode c-ts-base-mode prog-mode "C" "Major mode for editing C, powered by tree-sitter. -\\{c-ts-mode-map}" +\\{c-ts-base-mode-map}" :syntax-table c-ts-mode--syntax-table ;; Navigation.