From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#65895: 29.1; Cannot assign keys to c++-ts-mode-map Date: Sun, 17 Sep 2023 12:59:25 +0300 Message-ID: <834jjtglxe.fsf@gnu.org> References: <83wmwvnsaz.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="756"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65895-done@debbugs.gnu.org To: mikael.springer@protonmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 17 12:00:21 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qhoZg-000Aav-AF for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 Sep 2023 12:00:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qhoZI-0004vI-03; Sun, 17 Sep 2023 05:59:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qhoZH-0004uY-32 for bug-gnu-emacs@gnu.org; Sun, 17 Sep 2023 05:59:55 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qhoZG-0002Ug-RW for bug-gnu-emacs@gnu.org; Sun, 17 Sep 2023 05:59:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qhoZO-0003C3-Ax for bug-gnu-emacs@gnu.org; Sun, 17 Sep 2023 06:00:02 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 Sep 2023 10:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 65895 X-GNU-PR-Package: emacs Mail-Followup-To: 65895@debbugs.gnu.org, eliz@gnu.org, mikael.springer@protonmail.com Original-Received: via spool by 65895-done@debbugs.gnu.org id=D65895.169494478212216 (code D ref 65895); Sun, 17 Sep 2023 10:00:02 +0000 Original-Received: (at 65895-done) by debbugs.gnu.org; 17 Sep 2023 09:59:42 +0000 Original-Received: from localhost ([127.0.0.1]:49073 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhoZ4-0003Ax-GC for submit@debbugs.gnu.org; Sun, 17 Sep 2023 05:59:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53452) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhoZ2-0003Al-UE for 65895-done@debbugs.gnu.org; Sun, 17 Sep 2023 05:59:41 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qhoYq-0002It-23; Sun, 17 Sep 2023 05:59:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=7n+GT0E95KhTfufWffC3cjRv5VyDsegyfXTwbkxfo64=; b=Rvodwav4ONUZ jxOvuu4w881OGHwkIN/cnO082pU70KmSUgvhL3nyi425b7YeVlV2+8WEjKpoPD3Thk/o2/zmaiLz2 8WE1YVibcNrOd5b5VEKxgcu7joPOwh5FmiHVDvIdIAEmdxp1Z4d24tEf/6ybjxkxG/HyKIbldq5Kn WIYET684/ZZgXKkH4zDw9qyEogTvQKtasv6qOaWjuyXEBrT4Zak3G/eZXxyaorhpFyicdNiVqPWoF PnwbcJRxIE8C9ib2KuwVIP4NDcrv8/CVvBjn++FnZJPRmD8N3sKq5jb/sSlijGfsc4gQbihsgdi8u r41BhNhPEW2h3/kPkVXH/w==; In-Reply-To: <83wmwvnsaz.fsf@gnu.org> (message from Eli Zaretskii on Tue, 12 Sep 2023 21:46:12 +0300) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:270683 Archived-At: > Cc: 65895@debbugs.gnu.org > Date: Tue, 12 Sep 2023 21:46:12 +0300 > From: Eli Zaretskii > > > Date: Tue, 12 Sep 2023 17:00:06 +0000 > > From: Mikael Springer via "Bug reports for GNU Emacs, > > the Swiss army knife of text editors" > > > > > > > > In my init file I try to assign keys to c++-ts-mode's keymap without > > success. I try two different ways, the first is using use-package and > > the second eval-after-load and define-key, neither of them work. I > > list them both below; > > > > (use-package c++-ts-mode > > :ensure nil > > :bind > > (:map c++-ts-mode-map > > ("M-" . treesit-beginning-of-defun) > > ("M-" . treesit-end-of-defun)) > > :hook (c++-ts-mode . ms-treesit-set-cpp-style)) > > > > (eval-after-load 'c++-ts-mode > > '(progn > > (define-key c++-ts-mode-map (kbd "M-") 'treesit-beginning-of-defun) > > (define-key c++-ts-mode-map (kbd "M-") 'treesit-end-of-defun))) > > > > I'm certain c++-ts-mode is loaded, I have verified this with > > (eval-expression major-mode). I notice when I look in the code in > > c-ts-mode.el that c++-ts-mode-map is never created with a defvar-keymap > > statement, only c-ts-base-mode-map is. > > Thanks, should be fixed now on the emacs-29 branch. No further comments, so I presume the bug was indeed fixed, and I'm closing it.