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#72814: 31.0.50; Add a variable controlling doxygen support in C/C++/Java? Date: Tue, 27 Aug 2024 15:22:16 +0300 Message-ID: <86seuqi29z.fsf@gnu.org> References: <0708616B-CCE4-4AA5-81FA-FF41F2789018@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21734"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72814@debbugs.gnu.org, vincenzo.pupillo@unimi.it To: Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 27 14:23:25 2024 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 1sivEK-0005Va-Ma for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 27 Aug 2024 14:23:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sivE9-0004EM-Ix; Tue, 27 Aug 2024 08:23:13 -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 1sivE6-0004DK-3v for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2024 08:23:10 -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 1sivE5-00070t-OX for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2024 08:23:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-version:References:In-Reply-To:From:Date:To:Subject; bh=gDnW+olqwgHCJxhXm41PFt4Q6kLmCWtDCO4cbs3zfdU=; b=AEH0g0HQnV1/z8f33LWMq4X5l+xlVSMO1CUyUxvGLAeHpFarJPjyq5YI0ik9x+DEdwOI9rVjX3sromH40czi9tcGbDE4aeNnq9OIshF0VoIeuntJgp1zmU/Dk8P03Db6nt9ASy7zd7O+eXEJeX4jl9LwCrqiz7K1WSmwemVJzgpqe3yzy0EZNgJpPsKrjSWnxHihcbGtD4wBEoclpfWjuj4j/XJfyfOkiOMqtEdB9YaOQo2liIIDvjrSHjBuLKUtcod8wmhkqR26LZCIvshcNzqkLwKQ1UV+8hxhIMhoNepWGpYoj/4naq2wIHk0EpEia+IeQI9D97klS2ktOYpGaA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sivEv-0001k8-QK for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2024 08:24:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Aug 2024 12:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72814 X-GNU-PR-Package: emacs Original-Received: via spool by 72814-submit@debbugs.gnu.org id=B72814.17247613996621 (code B ref 72814); Tue, 27 Aug 2024 12:24:01 +0000 Original-Received: (at 72814) by debbugs.gnu.org; 27 Aug 2024 12:23:19 +0000 Original-Received: from localhost ([127.0.0.1]:46203 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sivEE-0001ij-Rm for submit@debbugs.gnu.org; Tue, 27 Aug 2024 08:23:19 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39566) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sivED-0001iX-5v for 72814@debbugs.gnu.org; Tue, 27 Aug 2024 08:23:18 -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 1sivDG-0006yi-Nm; Tue, 27 Aug 2024 08:22:18 -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=gDnW+olqwgHCJxhXm41PFt4Q6kLmCWtDCO4cbs3zfdU=; b=UUKE7oervTI2ms8PkT3Z Le/xonmhuW2rdxwgYrCXlHM+DIYBygrdtlaQoxixPQ5fsqbIbc+Es74drYwNSsgSuk3T0B/nNrtCp CbM7hxgOAh0NRKeqidkNDRiJxx8SJ29jVwXlWeIl5Obwdxp19kJiLNBtbeEP94Vsu78GoVWr72xfc 43ZucSUBlkgm/6izV6CjSFRvI/qdF0vsYzAngtUHmZBW+ZDqpVZYlJklXriP2Qic8xL34q8RsYv4l X42cc8sd0KO+OdRa95nPF+qmdZTXayxcwDcKhZ0knJwkUoVYN3lpg8cSIJJqupD6vohzLRh/FSLbi +hBjjzDQF4Iq+g==; In-Reply-To: <0708616B-CCE4-4AA5-81FA-FF41F2789018@gmail.com> (message from Yuan Fu on Mon, 26 Aug 2024 20:13:52 -0700) 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:290817 Archived-At: > From: Yuan Fu > Date: Mon, 26 Aug 2024 20:13:52 -0700 > Cc: eliz@gnu.org, > vincenzo.pupillo@unimi.it > > > Yuan Fu writes: > > > X-Debbugs-CC: eliz@gnu.org , > > vincenzo.pupillo@unimi.it > > > > Should we add a custom option that controls whether to enable doxygen > > support in c-ts-mode/c++-ts-mode/java-ts-mode? > > > > Technically this isn’t a problem, since the doxygen support is only > > enabled if there’s doxygen grammar on the system. But many people > > (me) might install a grammar bundle that includes dozens of > > grammars for convenience. Then the doxygen support would turn on when > > the user doesn’t really intend to use it. > > > > I propose we add custom options like c-ts-mode-enable-doxygen and set it > > to t by default, so the default behavior is still to enable doxygen > > support when the grammar for it exists, but people who don’t want to pay > > for it can turn it off by setting the option to nil. > > > > Yuan > > Eli, WDYT? I'm okay with such an option, but it should be careful to check whether the corresponding grammar library is available, and offer a user-friendly diagnostic if not.