From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.bugs Subject: bug#60888: 29.0.60; Lost c-or-c++-ts-mode Date: Thu, 19 Jan 2023 13:57:17 -0800 Message-ID: <36C3AE10-1F2E-428D-AE5B-2ADF1732433C@gmail.com> References: <868ri18ms5.fsf@mail.linkov.net> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.300.101.1.3\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4363"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60888@debbugs.gnu.org, Juri Linkov To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 19 22:58:20 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 1pIcvL-0000l3-55 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 Jan 2023 22:58:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pIcv9-0007wE-Kq; Thu, 19 Jan 2023 16:58:07 -0500 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 1pIcv4-0007up-EY for bug-gnu-emacs@gnu.org; Thu, 19 Jan 2023 16:58:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pIcv4-0005af-6s for bug-gnu-emacs@gnu.org; Thu, 19 Jan 2023 16:58:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pIcv3-0001w3-LH for bug-gnu-emacs@gnu.org; Thu, 19 Jan 2023 16:58:01 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <868ri18ms5.fsf@mail.linkov.net> Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Jan 2023 21:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60888 X-GNU-PR-Package: emacs Original-Received: via spool by 60888-submit@debbugs.gnu.org id=B60888.16741654597405 (code B ref 60888); Thu, 19 Jan 2023 21:58:01 +0000 Original-Received: (at 60888) by debbugs.gnu.org; 19 Jan 2023 21:57:39 +0000 Original-Received: from localhost ([127.0.0.1]:44903 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pIcug-0001vN-VL for submit@debbugs.gnu.org; Thu, 19 Jan 2023 16:57:39 -0500 Original-Received: from mail-pf1-f179.google.com ([209.85.210.179]:39462) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pIcud-0001v2-Pa for 60888@debbugs.gnu.org; Thu, 19 Jan 2023 16:57:37 -0500 Original-Received: by mail-pf1-f179.google.com with SMTP id g205so2585413pfb.6 for <60888@debbugs.gnu.org>; Thu, 19 Jan 2023 13:57:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=A3u6Ky00zrd6K4OXl3CT7zNgqFmkUYyarmeJ8awsMXw=; b=SvM+yq0opazQmWgh3G1xY9JOQMqthhEUEN46xzcc8964sGa/aIMrEhzzOi4s6n+Hyu zHRA2rO1xV5eeQG0HNZ2YgufbAH5xL9Az+FiCbhxss7GExdVyUXVLLYevJC7b0ZGTr0e hrvdqCC/a4vSac9ao0Q4mjJqlbp7PE9kiEiXTy1vw/dHWRV1uJTxaWlEo0M3U0BobIQW ZEzbAUzziKgtY/7g3w6ey1TXDU000YA9epcd7iDHhQws+dtaAEHaLXeRnUzvvZA/wy1/ 5BLzgWCVc81HyeH8hh79X3788quH1WbrR/tA1baoTOaMJGYf1J5QNThU333TOCqEJH7z fFjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=A3u6Ky00zrd6K4OXl3CT7zNgqFmkUYyarmeJ8awsMXw=; b=MhuowBwiUQnnZMt39lLDolCtkvIp4E6alqGFPMyBGqDUfI0ABNgZoPWNpqtZRO0g9d hI8H9yefuLjQr1YTvOq/CmG4gw8z5B/A+WH/8o+5HUwCLwQdi3c/H5crqb48x5VGgpv4 mRDSYxGGr9Yegujgh0mMhRic/p6g2JsVj9GyxZE6ZjxziY/fDw9zT1lc4muUwADTQYcs IQAQExDDIbTCC8jmtgXY1tCBkqxPeIyEJdIqaP8sgwIpYfPeDHVfXnCnroDKDwpr7c0d BlMQNS1b76Zzk7KhthepbCQRLLmAq7bbxo5EzzBts6eAy247SjsY3iZALjLwpyqcPHpY tJ6w== X-Gm-Message-State: AFqh2kq5sPpsR1CL6g3ztUSzsQKzyUZBOYo9wSHEfn5Dfd8jFuUSe9V5 QcwdVNVeYoUoStUMMfdU2s0= X-Google-Smtp-Source: AMrXdXsyzUzFBqX/Q47MZiI1w/V119kUWCnXyxLNcbNbMCJHElEaCthpw6wLq3/JtuwTeeuW9mX6Kw== X-Received: by 2002:a05:6a00:24d4:b0:57e:866d:c095 with SMTP id d20-20020a056a0024d400b0057e866dc095mr17063110pfv.25.1674165449940; Thu, 19 Jan 2023 13:57:29 -0800 (PST) Original-Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id i5-20020a626d05000000b0058bca3b8f76sm10212581pfc.78.2023.01.19.13.57.29 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jan 2023 13:57:29 -0800 (PST) X-Mailer: Apple Mail (2.3731.300.101.1.3) 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:253734 Archived-At: Dmitry Gutov writes: > On 17/01/2023 19:20, Juri Linkov wrote: >> I started to rely on c-or-c++-ts-mode because there is no other = replacement >> to use for such mappings in init files: >> (when (and (treesit-ready-p 'c t) (treesit-ready-p 'cpp t)) >> (add-to-list 'major-mode-remap-alist '(c-or-c++-mode . = c-or-c++-ts-mode))) >> c-or-c++-mode is activated for all .h files, so there should be the >> corresponding >> c-or-c++-ts-mode, but it's lost somewhere in emacs-29. > > Apparently it was decided that it's a new feature, and thus too late > for emacs-29. I added it back. It really is a bug preventing one to use c(++)-ts-mode on header files. So this should be fine to add. Plus I mostly just copy-pasted from cc-mode. Sorry for the back-and-forth. Yuan