From unknown Sat Sep 20 09:42:14 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#64917 <64917@debbugs.gnu.org> To: bug#64917 <64917@debbugs.gnu.org> Subject: Status: 30.0.50; c-ts-mode throws warnings about missing cpp support Reply-To: bug#64917 <64917@debbugs.gnu.org> Date: Sat, 20 Sep 2025 16:42:14 +0000 retitle 64917 30.0.50; c-ts-mode throws warnings about missing cpp support reassign 64917 emacs submitter 64917 Robert Pluim severity 64917 normal tag 64917 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 28 05:15:57 2023 Received: (at submit) by debbugs.gnu.org; 28 Jul 2023 09:15:57 +0000 Received: from localhost ([127.0.0.1]:43696 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPJZk-0005SF-NJ for submit@debbugs.gnu.org; Fri, 28 Jul 2023 05:15:57 -0400 Received: from lists.gnu.org ([2001:470:142::17]:44696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPJZi-0005Rw-Cw for submit@debbugs.gnu.org; Fri, 28 Jul 2023 05:15:55 -0400 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 1qPJZP-0004im-9q for bug-gnu-emacs@gnu.org; Fri, 28 Jul 2023 05:15:36 -0400 Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qPJZL-00066I-5b for bug-gnu-emacs@gnu.org; Fri, 28 Jul 2023 05:15:35 -0400 Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2b9d3dacb33so2184521fa.1 for ; Fri, 28 Jul 2023 02:15:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690535729; x=1691140529; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=dhPyJPJ3Ig5eC6Aj13jO9mHqRs+HH4cPGd6D4cduZfY=; b=X5NfDyL3fVklzqMf3ZQAhW1634RQl3ujgPCOfOx9Ji6ujC4QVOKrXGY4+AzVZFRlv6 65lh8wHmZzOQss+1TZiV9rKWG+0zTABqscVd9ZoIQAdbe8byTeRChc/4MwR1iSTy+Rvu F2kVx5JQ4U9h0BBXIV0JrXV/uBnWWS8+hPhrAo9LXOoJGXkHIIbtFp19GSb7Rg6y7Fj6 L7XEpT5MMjNdT1C6rfnf8Lgi1NwDLFLPkzZz0sX7AVPXu/kni6Yk98wHjfqh2k4TKU2u w171juVW3pBjT5w1TfxyuSbgIx1WJ6ZH0m26fi76aDuTlxq/9x+S2D2v/TuOU0Fpoxly ml6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690535729; x=1691140529; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=dhPyJPJ3Ig5eC6Aj13jO9mHqRs+HH4cPGd6D4cduZfY=; b=IjaJ7sD7M5dz4uNiXIr/Ul2vUGWePdRW1WPJXflh+clq1ybbClyZsIoIG8kgiM1nfX lVl2n9x1hTlr+OUF/+RZuPsU73I3Da5+HhcQRV36xulAy6A5/VAO9qcfFg9fOjEgXlWf +lSvbYen8X42ivbqhvBG+kqacnPMSAfVy94fLjxmloRwMjRZMNGQbVufWZpXzqmt9ljX udYIuFoJ6zfEyW14EV4UPMRyXfE69Gs4RbdcLqg9Fjd2zM3q3sgh79xeX2JTwOWcGMps iDEa6QsuNzZa4HbcXbXN8xXDXteS83N2FpTol195gZBaIk4Q4KuidDNJ/wfX1d61DLEQ YRHw== X-Gm-Message-State: ABy/qLZn4xr0KukFdJspB86i7+TWvz8EfgM1uuXji3lgyq+sMG1NHFTt wJIZ+kgqL4huXKeNtxkfMukBPaT6vzk= X-Google-Smtp-Source: APBJJlGVkd/enx5PmQxlj30FlxHhlOAGwJrP6QNwgYTWySgTeLdC2Ra3weLeKgGSueIh/yQI0GhWZA== X-Received: by 2002:a05:651c:14e:b0:2b6:ee99:fffc with SMTP id c14-20020a05651c014e00b002b6ee99fffcmr1157869ljd.36.1690535728392; Fri, 28 Jul 2023 02:15:28 -0700 (PDT) Received: from rltb ([2a01:e0a:3f3:fb50:a6d7:14f2:532d:fa9d]) by smtp.gmail.com with ESMTPSA id 19-20020a05600c229300b003fa95890484sm3744091wmf.20.2023.07.28.02.15.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jul 2023 02:15:27 -0700 (PDT) From: Robert Pluim To: bug-gnu-emacs@gnu.org Subject: 30.0.50; c-ts-mode throws warnings about missing cpp support Date: Fri, 28 Jul 2023 11:14:15 +0200 Message-ID: <87zg3gxus8.fsf@gmail.com> X-Debbugs-No-Ack: yes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::22d; envelope-from=rpluim@gmail.com; helo=mail-lj1-x22d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) I built master with tree-sitter support, and installed the c-language grammar using M-x treesit-install-language-grammar. I have libtree-sitter-c.so in ~/.emacs.d/tree-sitter I restarted emacs, visited src/xdisp.c, and did M-x c-ts-mode, which popped up a *Warnings* buffer containing: =E2=9B=94 Warning (treesit): Cannot activate tree-sitter, because language = grammar for cpp is unavailable (not-found): (libtree-sitter-cpp libtree-sit= ter-cpp.0 libtree-sitter-cpp.0.0 libtree-sitter-cpp.so libtree-sitter-cpp.s= o.0 libtree-sitter-cpp.so.0.0) No such file or directory =E2=9B=94 Warning (treesit): Cannot activate tree-sitter, because language = grammar for cpp is unavailable (not-found): (libtree-sitter-cpp libtree-sit= ter-cpp.0 libtree-sitter-cpp.0.0 libtree-sitter-cpp.so libtree-sitter-cpp.s= o.0 libtree-sitter-cpp.so.0.0) No such file or directory which is less than desirable (althoug `major-mode' is c-ts-mode, so I guess things worked) Robert In GNU Emacs 30.0.50 (build 24, x86_64-pc-linux-gnu, GTK+ Version 3.24.37, cairo version 1.16.0) of 2023-07-28 built on rltb Repository revision: a5dda9614a01ca753f25c904ccf7781176245b3c Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12009000 System Description: Debian GNU/Linux 12 (bookworm) Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 28 08:10:50 2023 Received: (at 64917) by debbugs.gnu.org; 28 Jul 2023 12:10:50 +0000 Received: from localhost ([127.0.0.1]:43967 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPMIz-0004NQ-Rw for submit@debbugs.gnu.org; Fri, 28 Jul 2023 08:10:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57596) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPMIv-0004N8-Gg; Fri, 28 Jul 2023 08:10:49 -0400 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 1qPMIq-0006JZ-44; Fri, 28 Jul 2023 08:10:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=qC35MhDCmgaPz8pbzu8Up23sOjdniiLF1RqmmMvF+iE=; b=asHi+evOVzhqtEEnUX0a 6thsTQKMvZwLXqtQQhLaUL8V8PcudpREOLG9PlK3cAGJC0l+U2oxR8POevDrCO+XTiv7TXwTyufa4 deD+yUyjVMzRUYEFB3q/rHcxa7qfrs+Ru0w0UD9SHcptaxG9wZaWDA/RGQFPJBUipElJqXQy2ctEk aCbkS7pzOE0IyOZzvnrk5iibZGsACh7cNeHFIykomGASzbvlvjbj+V5tuEcitBdcMcPCg5cjju2Z1 vcmd4OWQSIerw4RI4kdc4SXrNOWKxuUvQRpA2NSF7IDsmATQwgHCQQ9whIaN/YLoi7q6BXaY/xDBa eY8GmqiRNZ56+g==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qPMIp-0001uy-Jh; Fri, 28 Jul 2023 08:10:39 -0400 Date: Fri, 28 Jul 2023 15:11:33 +0300 Message-Id: <83edksjkwa.fsf@gnu.org> From: Eli Zaretskii To: Robert Pluim In-Reply-To: <87zg3gxus8.fsf@gmail.com> (message from Robert Pluim on Fri, 28 Jul 2023 11:14:15 +0200) Subject: Re: bug#64917: 30.0.50; c-ts-mode throws warnings about missing cpp support References: <87zg3gxus8.fsf@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64917 Cc: 64917@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 64917 notabug thanks > From: Robert Pluim > Date: Fri, 28 Jul 2023 11:14:15 +0200 > > I built master with tree-sitter support, and installed the c-language > grammar using M-x treesit-install-language-grammar. I have > libtree-sitter-c.so in ~/.emacs.d/tree-sitter > > I restarted emacs, visited src/xdisp.c, and did M-x c-ts-mode, which > popped up a *Warnings* buffer containing: > > ⛔ Warning (treesit): Cannot activate tree-sitter, because language grammar for cpp is unavailable (not-found): (libtree-sitter-cpp libtree-sitter-cpp.0 libtree-sitter-cpp.0.0 libtree-sitter-cpp.so libtree-sitter-cpp.so.0 libtree-sitter-cpp.so.0.0) No such file or directory > ⛔ Warning (treesit): Cannot activate tree-sitter, because language grammar for cpp is unavailable (not-found): (libtree-sitter-cpp libtree-sitter-cpp.0 libtree-sitter-cpp.0.0 libtree-sitter-cpp.so libtree-sitter-cpp.so.0 libtree-sitter-cpp.so.0.0) No such file or directory > > which is less than desirable (althoug `major-mode' is c-ts-mode, so I > guess things worked) Please install the C++ grammar as well. Those two go together because some *.h files could be C or C++, and we can only test that at run time. From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 28 09:31:25 2023 Received: (at 64917) by debbugs.gnu.org; 28 Jul 2023 13:31:25 +0000 Received: from localhost ([127.0.0.1]:44124 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPNYy-0000iy-Jc for submit@debbugs.gnu.org; Fri, 28 Jul 2023 09:31:25 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]:49213) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPNYw-0000ik-Cf for 64917@debbugs.gnu.org; Fri, 28 Jul 2023 09:31:23 -0400 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-3fe12baec61so1638685e9.2 for <64917@debbugs.gnu.org>; Fri, 28 Jul 2023 06:31:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690551076; x=1691155876; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=Mo6UoC9s8dRFy9jjxdYwnQhcBZYjWrXL8SG0DlY+pII=; b=sUQhRaIoboJRfZR+8NfVHX2auFZRiDJYUPJIwCsEnO5le6b3+BIm6zsnPR2uWQAjBx tRGj4A70rKlzN0KG9NDvnT9z9llARIQMOr7GcGCYg9tda+QTR1f1AK3817seO+7TR2yu Yqng3aJNm9LtvcY25GOey18/pr7vfHQ7WDyE4x8+5gsOd+bxvHFEGZNbPEAHBup7pp6y Vh3vKBld6miocF9liiHWl73MvB4umYDI8fwWu06SSgITiUTkjSSslbpvvh9LFATS9VmC RMVrvpC8a79IeoJSUayvYmGElg7vVAeoLv8bl7L7OPJudHuniBu6HNWf+jYRh1AujyXp v68A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690551076; x=1691155876; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Mo6UoC9s8dRFy9jjxdYwnQhcBZYjWrXL8SG0DlY+pII=; b=EX5nM6nXwr+g2jtExp5kIEpuYNJeOCZvg6nALy5D8sULlQNu0Q6Zk7cvb1Pug2Q8xE vP7I0u/QnPcLU3DSI4vIA9lQvFmir143OjgrsWw9nYyk5uTpud/NVJhXC7TKJxF3P5TJ a5SDGT5ImVol+UOaWNqLC5fXV+0Pj1Jjt/ruJJR1Yl2P96BAQQuy+sOCCbyREsIPa56G Ce3x/Cc539YGGpnbU+I33zVaDbgfR75S9pjE1BUi8njXYBBD2URizybqFaDz4kd7A+7h x9T5o6SGAwQaibmccAch2M9V75d2WXdBo2arUQHyXW+wP1xzOXgEZALUEQF0HaxK6l1p cifw== X-Gm-Message-State: ABy/qLaMTGSHlWxs7k6chhEsP/hzjeIgvbzqR4oHu6gHZhIXT26DRijf Ul9JJ9uBAJ3lLKfx2nAzGcIbPiOJhBw= X-Google-Smtp-Source: APBJJlFUApqFciPS79xoq9ICi8n6NUJsB2F3FVA6w0+VUs+myfYDE5CRs401Mbg1G2vSs7m4j+BuSg== X-Received: by 2002:a7b:cd1a:0:b0:3fc:b86:d3fa with SMTP id f26-20020a7bcd1a000000b003fc0b86d3famr1678250wmj.1.1690551075947; Fri, 28 Jul 2023 06:31:15 -0700 (PDT) Received: from rltb ([2a01:e0a:3f3:fb50:a6d7:14f2:532d:fa9d]) by smtp.gmail.com with ESMTPSA id l5-20020a05600c1d0500b003fbb1ce274fsm21393398wms.0.2023.07.28.06.31.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jul 2023 06:31:15 -0700 (PDT) From: Robert Pluim To: Eli Zaretskii Subject: Re: bug#64917: 30.0.50; c-ts-mode throws warnings about missing cpp support In-Reply-To: <83edksjkwa.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 28 Jul 2023 15:11:33 +0300") References: <87zg3gxus8.fsf@gmail.com> <83edksjkwa.fsf@gnu.org> Date: Fri, 28 Jul 2023 15:31:14 +0200 Message-ID: <87tttoqi1p.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 64917 Cc: 64917@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Fri, 28 Jul 2023 15:11:33 +0300, Eli Zaretskii said: Eli> tags 64917 notabug Eli> thanks Eli> Please install the C++ grammar as well. Those two go together because Eli> some *.h files could be C or C++, and we can only test that at run Eli> time. I had no intention of installing the C++ grammar, but I guess I have no choice. Some indication of that requirement at install time would help (as well as an indication when installing that the grammar to install is called 'cpp', not 'c++') Robert -- From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 29 13:46:39 2023 Received: (at 64917) by debbugs.gnu.org; 29 Jul 2023 17:46:39 +0000 Received: from localhost ([127.0.0.1]:48978 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPo1X-0006d7-CF for submit@debbugs.gnu.org; Sat, 29 Jul 2023 13:46:39 -0400 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]:57586) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPo1V-0006ct-CP for 64917@debbugs.gnu.org; Sat, 29 Jul 2023 13:46:38 -0400 Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-1bbf8cb61aeso4780345ad.2 for <64917@debbugs.gnu.org>; Sat, 29 Jul 2023 10:46:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690652791; x=1691257591; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=1e6X9aY3gQWkn4eOwMndCS2aQePr7mcc6ucTlvnRNYc=; b=F7p0W1fea3m9xIyZG7muvZVxKBJ9TDZEayYX1OS6Z2btLH0YkEz4WvIqybiLcMTmY9 iHB6KIQ0bYY4ZY3WbUsL6UMjFpDJpd+h3eOLdVJrk9mEFNu9AvpgNzvFTRN+I5k0qvdv fWh/wsLam+YH5BqhnLxRSFsvQzh5sjRXGtVEQvyFcFhB33hi3/jtNC48ivG8TtjoiQvU citzeE5mdsebHvg6Dl+fcdpxP46BKseUcfHgs8aWiC8gniCT95+IHAlCwR5cox7MW/K3 JxMTXShLrvErfvo23LpTydlYGUwwO3QnifgAqAOyKT3vIS9XViZ1sG/Y+E6ILlF7g10P 09ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690652791; x=1691257591; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1e6X9aY3gQWkn4eOwMndCS2aQePr7mcc6ucTlvnRNYc=; b=Vx3N0RTFIUnoMJWEf+jn7hLsT7BIF2kx18pCcTkfV1ZUXAcKAR/0O46TNTfZjljm+p nD3qvIkw1Ys4ycDiGk5rtEu+tG/j2MwRdH47woNYBbxyYh/Lf3rW2gyiQr/iW+gfOdwi NTRKkDxQfbkCDaiSzjNLhTplli6DUIIozw9E9L1riYpnwSDzfHbHhuVo8Re2DjcAscD7 2nHwLuwpvYW+QkNmtrfHm7neohyPU1cg9nTtt80Kscz3GeJdVvz57/GsMMWjKUuUo9La pWKBSJGa/+SwwgPI8zgeuOBtA0y/Yyca9cFh3Wmge+Ac7IypUN3Nak33jkbCVdKV+7ag eJ2g== X-Gm-Message-State: ABy/qLYQh7rBkNeilIiyFmb3QST6nPHIJkhUf1irGx8OI0ZGVPfk91vb D64VS/DvwCh6W8AQ7IHmz9s= X-Google-Smtp-Source: APBJJlEYbs/6wAJ/TGnhL0idNW/lniG+rxQeLahngIqGGKnjL5WDrnXSLa9Cn4I88oXbAVjH3KbG/w== X-Received: by 2002:a17:902:988e:b0:1b6:72af:623d with SMTP id s14-20020a170902988e00b001b672af623dmr5052116plp.55.1690652791192; Sat, 29 Jul 2023 10:46:31 -0700 (PDT) Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id v4-20020a170902b7c400b001bb3beb2bc6sm5590260plz.65.2023.07.29.10.46.30 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Jul 2023 10:46:30 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) Subject: Re: bug#64917: 30.0.50; c-ts-mode throws warnings about missing cpp support From: Yuan Fu In-Reply-To: <83edksjkwa.fsf@gnu.org> Date: Sat, 29 Jul 2023 10:46:18 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <5214C555-78D9-4669-B951-82FC25D98756@gmail.com> References: <87zg3gxus8.fsf@gmail.com> <83edksjkwa.fsf@gnu.org> To: Eli Zaretskii X-Mailer: Apple Mail (2.3731.600.7) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 64917 Cc: 64917@debbugs.gnu.org, Robert Pluim X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > On Jul 28, 2023, at 5:11 AM, Eli Zaretskii wrote: >=20 > tags 64917 notabug > thanks >=20 >> From: Robert Pluim >> Date: Fri, 28 Jul 2023 11:14:15 +0200 >>=20 >> I built master with tree-sitter support, and installed the c-language >> grammar using M-x treesit-install-language-grammar. I have >> libtree-sitter-c.so in ~/.emacs.d/tree-sitter >>=20 >> I restarted emacs, visited src/xdisp.c, and did M-x c-ts-mode, which >> popped up a *Warnings* buffer containing: >>=20 >> =E2=9B=94 Warning (treesit): Cannot activate tree-sitter, because = language grammar for cpp is unavailable (not-found): (libtree-sitter-cpp = libtree-sitter-cpp.0 libtree-sitter-cpp.0.0 libtree-sitter-cpp.so = libtree-sitter-cpp.so.0 libtree-sitter-cpp.so.0.0) No such file or = directory >> =E2=9B=94 Warning (treesit): Cannot activate tree-sitter, because = language grammar for cpp is unavailable (not-found): (libtree-sitter-cpp = libtree-sitter-cpp.0 libtree-sitter-cpp.0.0 libtree-sitter-cpp.so = libtree-sitter-cpp.so.0 libtree-sitter-cpp.so.0.0) No such file or = directory >>=20 >> which is less than desirable (althoug `major-mode' is c-ts-mode, so I >> guess things worked) >=20 > Please install the C++ grammar as well. Those two go together because > some *.h files could be C or C++, and we can only test that at run > time. For future reference, that=E2=80=99s true but not the whole picture. The = warning is caused by the call to (treesit-ready-p =E2=80=98cpp) at the = end of c-ts-mode.el: (if (treesit-ready-p 'cpp) (add-to-list 'auto-mode-alist = '("\\(\\.ii\\|\\.\\(CC?\\|HH?\\)\\|\\.[ch]\\(pp\\|xx\\|\\+\\+\\)\\|\\.\\(c= c\\|hh\\)\\)\\'" . c++-ts-mode))) There was a discussion on whether we want to use (treesit-ready-p =E2=80=98= cpp t) which tests for the availability of cpp grammar but doesn=E2=80=99t= raise a warning. And your decision was to keep the warning, IIRC. And my understanding is that these code that modifies auto-mode-alist = whenever c-ts-mode.el is loaded are temporary for Emacs 29, and in the = future might be removed. If they are removed, the warning will be gone. Yuan= From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 30 21:43:28 2023 Received: (at 64917) by debbugs.gnu.org; 31 Jul 2023 01:43:28 +0000 Received: from localhost ([127.0.0.1]:51463 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qQHwW-0001XJ-7r for submit@debbugs.gnu.org; Sun, 30 Jul 2023 21:43:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60356) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qQHwU-0001X3-1Y for 64917@debbugs.gnu.org; Sun, 30 Jul 2023 21:43:26 -0400 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 1qQHwO-0004ka-Bj; Sun, 30 Jul 2023 21:43:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=gKggm9RpR2ZZZbLJoBNbIEcC8aie0W+CErKqEDeqIQs=; b=or6L6mpGVfM9 YH4j5Ra/gjAHS/Cpc+5qzFqYPpBFq8KojuHQQE9memxkEz3sc/TBJyc0a0fDm6Fui99ufU4H7mkc4 FoegIhTTNAn+b8jUxzvvEhWRSEsPin3TORqRDxEDlIztz0N9VMVeHD9ldjYt4pYIguMgxwXHyFM7Y +dKguJs3Ex+ISKQYQ8NIbxBdJ+zCEn+GcaoCfKnWLZlZqQddM7zmlhVMyS5TK3RsgWECqBrEEKlfb tW4+rbUJWb0WIVtLlJF8J2UzghRmzuSA1BSEdSv5LdRJNW/Wolp3dLJz4TF7V16sOidsUMzM0RgFK m1V6VH1Ohi0GWhNU5EtJXA==; Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1qQHwM-0002vN-N7; Sun, 30 Jul 2023 21:43:18 -0400 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman To: Robert Pluim In-Reply-To: <87tttoqi1p.fsf@gmail.com> (message from Robert Pluim on Fri, 28 Jul 2023 15:31:14 +0200) Subject: Re: bug#64917: 30.0.50; c-ts-mode throws warnings about missing cpp support References: <87zg3gxus8.fsf@gmail.com> <83edksjkwa.fsf@gnu.org> <87tttoqi1p.fsf@gmail.com> Message-Id: Date: Sun, 30 Jul 2023 21:43:18 -0400 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64917 Cc: 64917@debbugs.gnu.org, eliz@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: rms@gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > Eli> Please install the C++ grammar as well. Those two go together because > Eli> some *.h files could be C or C++, and we can only test that at run > Eli> time. I suggest we ought to make a way for a user who never operates on C++ programs to deactivate C++, deactivate this test, and not load anything for C++. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org) From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 30 22:28:27 2023 Received: (at 64917) by debbugs.gnu.org; 31 Jul 2023 02:28:27 +0000 Received: from localhost ([127.0.0.1]:51506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qQIe3-0002eG-95 for submit@debbugs.gnu.org; Sun, 30 Jul 2023 22:28:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49522) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qQIe0-0002e2-QE for 64917@debbugs.gnu.org; Sun, 30 Jul 2023 22:28:25 -0400 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 1qQIdv-0004jG-Gt; Sun, 30 Jul 2023 22:28:19 -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=N7wLcTvnI7oyauWQ974oxBN91QqKEeS/z42OXPHQMlY=; b=haRJ+NX8LEuf yMhkx0DdqQ89ybKJT1n+CNXcSU4ov26JhgcaYtxbetFA43wGIzh6S/g2/ASHhdVRR2xtSVQ1Jndux BzElbuqtXxFf6XSQYn7/eYEJgg29Hc5ixACKHHduhWRy6oV+7ZWRoMLLL3kcBzG3CfZQLwscW7xws lpouayaV3Slw7+Gz3pts9oQrDKV8hvQekEaEE96unu7G7NrMUEUx9wV07QonxhHYQ6lew1RY0/lTv ifXYleJh31Te0FIfBOgvStH9r33XrbKQW2hBOFgPLj7tSx4d0l8aNiSY6+dTiNQNNBnH9NSC4Wblf 0fU3iwiGYtOi9/gxE24E+g==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qQIdh-0007c0-FD; Sun, 30 Jul 2023 22:28:05 -0400 Date: Mon, 31 Jul 2023 05:28:07 +0300 Message-Id: <83fs543jd4.fsf@gnu.org> From: Eli Zaretskii To: rms@gnu.org In-Reply-To: (message from Richard Stallman on Sun, 30 Jul 2023 21:43:18 -0400) Subject: Re: bug#64917: 30.0.50; c-ts-mode throws warnings about missing cpp support References: <87zg3gxus8.fsf@gmail.com> <83edksjkwa.fsf@gnu.org> <87tttoqi1p.fsf@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64917 Cc: 64917@debbugs.gnu.org, rpluim@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Richard Stallman > Cc: eliz@gnu.org, 64917@debbugs.gnu.org > Date: Sun, 30 Jul 2023 21:43:18 -0400 > > > Eli> Please install the C++ grammar as well. Those two go together because > > Eli> some *.h files could be C or C++, and we can only test that at run > > Eli> time. > > I suggest we ought to make a way for a user who never operates on C++ > programs to deactivate C++, deactivate this test, and not load > anything for C++. If someone finds a way of doing that without any significant downsides, I won't object. It's just that we haven't found such a way yet. Btw, the Emacs tree already includes a few files in C++, so having this grammar available is necessary for work on Emacs. From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 03 04:13:37 2023 Received: (at 64917) by debbugs.gnu.org; 3 Aug 2023 08:13:37 +0000 Received: from localhost ([127.0.0.1]:50769 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRTSi-0007hu-V4 for submit@debbugs.gnu.org; Thu, 03 Aug 2023 04:13:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRTSh-0007hh-T3 for 64917@debbugs.gnu.org; Thu, 03 Aug 2023 04:13:36 -0400 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 1qRTSc-0003je-Jk; Thu, 03 Aug 2023 04:13:30 -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=ElYP6Hs6/ozdqglBod2qAr7m32H8CZAM2To3xE35HT0=; b=fhgAmYZ3sYo3 tdqBuwYT844UZsXggq+bgYYQYF04Zsr+3Gcmyf/Ys22m7tE3G+/Nvsz+SJM7ehsfi71Yy/usE/aJ/ 0kz7DdkPRA7WTxghdqAqk4W3zXXR3azT4eJ4h5tCQn3OM0rKawx5aVHY8QtdFrkeCsd+mArfXjADB 3BhXuGZ3FUduTKBhkrkYLpR9dSqetNfFObz4mqJOyDd8Gb70DTqdGvZgeeRm/9VrNiJqaYhM8kYkE hgBHcfbiMulrcA1b8Isc2TnnIQDGJlfPND40ziHPRPrhvPYXy/Lafr67tZQ0EAE85DZCdgq0WDA8N 1Q+nWbwcbchG1euOkzXByw==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qRTSc-000281-1K; Thu, 03 Aug 2023 04:13:30 -0400 Date: Thu, 03 Aug 2023 11:13:40 +0300 Message-Id: <83msz8y24r.fsf@gnu.org> From: Eli Zaretskii To: Robert Pluim In-Reply-To: <87tttoqi1p.fsf@gmail.com> (message from Robert Pluim on Fri, 28 Jul 2023 15:31:14 +0200) Subject: Re: bug#64917: 30.0.50; c-ts-mode throws warnings about missing cpp support References: <87zg3gxus8.fsf@gmail.com> <83edksjkwa.fsf@gnu.org> <87tttoqi1p.fsf@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64917 Cc: 64917@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Robert Pluim > Cc: 64917@debbugs.gnu.org > Date: Fri, 28 Jul 2023 15:31:14 +0200 > > >>>>> On Fri, 28 Jul 2023 15:11:33 +0300, Eli Zaretskii said: > > Eli> tags 64917 notabug > Eli> thanks > > Eli> Please install the C++ grammar as well. Those two go together because > Eli> some *.h files could be C or C++, and we can only test that at run > Eli> time. > > I had no intention of installing the C++ grammar, but I guess I have > no choice. > > Some indication of that requirement at install time would help (as > well as an indication when installing that the grammar to install is > called 'cpp', not 'c++') I don't really see a good place for mentioning this in a way that will be discoverable enough. Any suggestions? From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 09 11:28:03 2023 Received: (at 64917-done) by debbugs.gnu.org; 9 Aug 2023 15:28:03 +0000 Received: from localhost ([127.0.0.1]:40349 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTl6R-00039K-5o for submit@debbugs.gnu.org; Wed, 09 Aug 2023 11:28:03 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:51538) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTl6M-00038l-K7 for 64917-done@debbugs.gnu.org; Wed, 09 Aug 2023 11:28:02 -0400 Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-31781e15a0cso5453123f8f.3 for <64917-done@debbugs.gnu.org>; Wed, 09 Aug 2023 08:27:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691594872; x=1692199672; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=3BU8o800kScjj81E0ApwFMRbqXBshJRBQsPasd3mx/c=; b=jAgrh+l8n8DhJoD569GikZ62ZzlMonVSUkT79umrUlqf+ai6CMuTYVdnpTS9JEzF8A bQGFFnxbytnrizCIipbjDvJ4RSVxH5cXOdb8wyUhw4hlCEQrKaVD6OPC+qMD0yZz5CYj RBj3nUg3kqEkKp9LyT7pETA9Iw/HJctha7njbprhyoGEgc3NqluHaXwGAjCicaj8pUSO cBM9CumiHk2j+eCnghOkhqaBPb18jT7v8qLTOeTKlH7wkhv/I/aLSgEWizRGv7lznZ8A M1wDp8PiUIyl8wJSd2cCyHCvsu2aBvjus+X3S3ku9MUhsatR4hzOUDhCTxQllNH/7SWD FvcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691594872; x=1692199672; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3BU8o800kScjj81E0ApwFMRbqXBshJRBQsPasd3mx/c=; b=I+3g35FvwJhAs2bF+0TshkUrh7lPwIbQBoinMuTU35eNo7bjnriG3nKU0RqryRiysU aFCgXdKfoXEDq1jSbs8x90ZUfgyCUPyCDxmy3Uq07Xs7GsS+Wg+X+uJlCc8+DpccQV6K 3SuymHvzWn0MQshDf30mIK4/RTvVvg405GMQPyrgsp/MclhO9yPmDyial+WxgDmoG4lC JEx07GwZ0CGQEJRAiD0luT7/AkZQjell+o0d+hTuwhk2sOx4fSMLzs/AukkrSm0v1oAw injpyOE7RrsQwGhqRxtMx/Nzyo8I313NAuhKlUkgd70x/lDCH8YVWbgwVVCC7cpPaO9I FTSA== X-Gm-Message-State: AOJu0Yz6jrsHzmtZf9gYAJ98QI+fi6dAo2Dw4dgLAh7F1jZizC7wy7N8 nW8BYgifUY+Y0rulQ2mmwP/63UJMomM= X-Google-Smtp-Source: AGHT+IEcZs/Hdrf1PQ7RCKGBd1NhZ9IiP6ROxQimId9I3mPOIeZXTV87WN0K7PsbTnProusE5RoT1w== X-Received: by 2002:adf:e981:0:b0:317:e1fb:d56a with SMTP id h1-20020adfe981000000b00317e1fbd56amr1929283wrm.40.1691594872155; Wed, 09 Aug 2023 08:27:52 -0700 (PDT) Received: from rltb ([2a01:e0a:3f3:fb50:7df8:d74c:1e19:ef48]) by smtp.gmail.com with ESMTPSA id a12-20020adfeecc000000b00317df42e91dsm12707200wrp.4.2023.08.09.08.27.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 08:27:51 -0700 (PDT) From: Robert Pluim To: Eli Zaretskii Subject: Re: bug#64917: 30.0.50; c-ts-mode throws warnings about missing cpp support In-Reply-To: <83msz8y24r.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 03 Aug 2023 11:13:40 +0300") References: <87zg3gxus8.fsf@gmail.com> <83edksjkwa.fsf@gnu.org> <87tttoqi1p.fsf@gmail.com> <83msz8y24r.fsf@gnu.org> Date: Wed, 09 Aug 2023 17:27:50 +0200 Message-ID: <874jl88ccp.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 64917-done Cc: 64917-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Thu, 03 Aug 2023 11:13:40 +0300, Eli Zaretskii said: >> From: Robert Pluim >> Cc: 64917@debbugs.gnu.org >> Date: Fri, 28 Jul 2023 15:31:14 +0200 >>=20 >> >>>>> On Fri, 28 Jul 2023 15:11:33 +0300, Eli Zaretskii said: >>=20 Eli> tags 64917 notabug Eli> thanks >>=20 Eli> Please install the C++ grammar as well. Those two go together bec= ause Eli> some *.h files could be C or C++, and we can only test that at run Eli> time. >>=20 >> I had no intention of installing the C++ grammar, but I guess I have >> no choice. >>=20 >> Some indication of that requirement at install time would help (as >> well as an indication when installing that the grammar to install is >> called 'cpp', not 'c++') Eli> I don't really see a good place for mentioning this in a way that = will Eli> be discoverable enough. Any suggestions? I don=CA=BCt either. Closing Robert --=20 From unknown Sat Sep 20 09:42:14 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 07 Sep 2023 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator