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: Thu, 12 Sep 2024 11:31:56 +0300 Message-ID: <86ed5pff2b.fsf@gnu.org> References: <0708616B-CCE4-4AA5-81FA-FF41F2789018@gmail.com> <2150926.9o76ZdvQCi@fedora> <5EDA64BE-4612-4614-9CA4-D93BB30674A8@gmail.com> <26605291.1r3eYUQgxm@3-191.divsi.unimi.it> <867cbipf9l.fsf@gnu.org> <2AD1D9D4-8F89-4FCC-B4A9-E53CC6D8AB11@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="39398"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72814@debbugs.gnu.org, v.pupillo@gmail.com To: Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 12 10:33:35 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 1sofGh-000A4h-B4 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 Sep 2024 10:33:35 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sofG8-00006f-4t; Thu, 12 Sep 2024 04:33:00 -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 1sofG3-0008QT-7P for bug-gnu-emacs@gnu.org; Thu, 12 Sep 2024 04:32: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 1sofG2-0007KB-Ul for bug-gnu-emacs@gnu.org; Thu, 12 Sep 2024 04:32:54 -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=VDPjH+4or4jjxJrpgXTxQWyYQLbWaLEvE1syWWFfNEE=; b=K/878Be3JDOqTXuI/WHl5kkDfksSlNxEik/95djEZ3mAtw1C9vN5CC0KvDTCP2lfsJGdMlMedY2YYEW0TrrmpAfD0+jMqfzD8tJowDlYjia/w9UJX+RORDL6jXsPw7ViWaH3idWL38gOwVd20mBJE+YypuIuYTqedmzjZsJ0JoyeNCjjFtewzngH+HZ8FoNurQNngIQjzPxbAF6SOfxWWO2ntr86cu4ysZ6PNrnLzaoO1/xUbHBJK90skK++b78GDijoc+wyjoSQXeA2lhRvKzjMtSWK8q5+NqCWcqB0MBHzoDz96U/qElopas050Fj4+ReIyS82SfJi2VupRzLCqg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sofG9-0002tF-TZ for bug-gnu-emacs@gnu.org; Thu, 12 Sep 2024 04:33: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: Thu, 12 Sep 2024 08:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72814 X-GNU-PR-Package: emacs X-Debbugs-Original-Cc: 72814@debbugs.gnu.org, bug-gnu-emacs@gnu.org, v.pupillo@gmail.com Original-Received: via spool by submit@debbugs.gnu.org id=B.172612995211061 (code B ref -1); Thu, 12 Sep 2024 08:33:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Sep 2024 08:32:32 +0000 Original-Received: from localhost ([127.0.0.1]:40109 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sofFf-0002sK-Le for submit@debbugs.gnu.org; Thu, 12 Sep 2024 04:32:31 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:46904) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sofFd-0002sD-Vz for submit@debbugs.gnu.org; Thu, 12 Sep 2024 04:32:30 -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 1sofFV-00062G-27 for bug-gnu-emacs@gnu.org; Thu, 12 Sep 2024 04:32:22 -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 1sofFT-0007HW-7D; Thu, 12 Sep 2024 04:32:20 -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=VDPjH+4or4jjxJrpgXTxQWyYQLbWaLEvE1syWWFfNEE=; b=awEobi5lAEGN1I3kgafp kTfoIHY2Sl66fmDdtbiXy1iqCPAan6AHEDeFLFZ3QDYCRgXyZzKymYduFMgZU0f2DPpvKu1hMBFPU YJZyg1sTnA9wElmjRvpcOwUSxliRL9MfAiemvd/7kRCvv73QhRLx72jGdIRkvyuJeR9rz0/36irhT 7gsI8jp6Nup4/jzRdSi2zrHf7iV8DjpNmSmDuv1xPGFnHkeo32I9sv6Iwh9tbPnAS6Lma/9WoqNx4 HImYG/SbD+wcWk9p4Tetyz7K0CyiMe+PTB1GXFjzJJhssSE/lIDOZGiy1BDxptGl8deAeuLlWet5h g/zg+NgbDNStyw==; In-Reply-To: <2AD1D9D4-8F89-4FCC-B4A9-E53CC6D8AB11@gmail.com> (message from Yuan Fu on Thu, 12 Sep 2024 00:51:20 -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:291624 Archived-At: > From: Yuan Fu > Date: Thu, 12 Sep 2024 00:51:20 -0700 > Cc: Vincenzo Pupillo , > Bug Report Emacs , > 72814@debbugs.gnu.org > > > > > On Sep 11, 2024, at 5:05 AM, Eli Zaretskii wrote: > > > >> From: Vincenzo Pupillo > >> Cc: Bug Report Emacs , 72814@debbugs.gnu.org > >> Date: Wed, 11 Sep 2024 11:40:17 +0200 > >> > >>> Thanks for taking this up! I won’t signal a warning if doxygen grammar isn’t found. Imagine a user without doxygen grammar, and din’t change c-ts-mode-enable-doxygen: they’ll get a warning whenever they open a C file. > >>> We should either set c-ts-mode-enable-doxygen to nil by default, or not warn when doxygen grammar doesn’t exist. Otherwise, the patch looks good to me. > >> > >> Okay, fine. But Eli said something different... > > > > Not necessarily. All I said was "issue a user-friendly diagnostic". > > We could output the message into *Messages*, and do it only once per > > Emacs session. > > Another idea: use tertiary value for c-ts-mode-enable-doxygen, t for enable (and issue warning if doxygen isn’t present), nil for enable if doxygen exists but don’t issue any warning, ‘disabled for disable. (I don’t think there’s a convention for the three values of tertiary toggle, is that right Eli?) That could also be OK, but I prefer something that does TRT by default.