From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Vincenzo Pupillo 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 09:36:51 +0200 Message-ID: <333F4FC6-FAB2-4146-BE40-8C1DB2BF36D1@gmail.com> References: <0708616B-CCE4-4AA5-81FA-FF41F2789018@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=----Z7VRP8SW4T613N3A6QZJ1MAEX47VQA Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10107"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: K-9 Mail for Android Cc: eliz@gnu.org To: 72814@debbugs.gnu.org, casouri@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 27 09:38:41 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 1siqmn-0002LI-6p for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 27 Aug 2024 09:38:41 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1siqmS-0007ev-1Q; Tue, 27 Aug 2024 03:38:20 -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 1siqmK-0007eN-0z for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2024 03:38:13 -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 1siqmI-0003YD-8g for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2024 03:38:10 -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=s7ZbYuU4Hg11tBqVQb6JFYYJsFylgbgfa1a3l6Mf89A=; b=Xtv1L3nDloaOwQgz8xMUOR5RzokGiPtQay2SIr21qeGr0c7LCOkbFqG8TyR+5kxBbiKTMCSIRaiogJKrth6HGOu9rxfQJi7/2vE5l2xh0Us77VUoXJmru0ajU8y5ZIPlT0tu1vQ1fiCD9arFedg3HjOkz47Rb4TPF+hDbXIHJWH32PgxZ/ok2dJ8kcKnTkv4WWRjxfnyFRDKWs7GaUa03F0XRxdcV/K84hPvtNekjlA2ld4ACGdOZxaP8MQmxrQDxSYnpopsN4B0UyLDpl2HLEOzcjKgxhHYS9JBrhqGFAkQ5yRPw8JdArxvc+/Kl72gHkF6G+X+ANpapuVxVxqo7Q==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1siqn8-0002P8-IB for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2024 03:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Vincenzo Pupillo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Aug 2024 07:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72814 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org, Yuan Fu , 72814@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.17247442879155 (code B ref -1); Tue, 27 Aug 2024 07:39:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Aug 2024 07:38:07 +0000 Original-Received: from localhost ([127.0.0.1]:46015 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1siqmE-0002NY-LJ for submit@debbugs.gnu.org; Tue, 27 Aug 2024 03:38:07 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:48766) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1siqlz-0002Mq-TP for submit@debbugs.gnu.org; Tue, 27 Aug 2024 03:38:05 -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 1siql8-0007aN-7R for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2024 03:36:59 -0400 Original-Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1siql5-0003Tu-OT; Tue, 27 Aug 2024 03:36:57 -0400 Original-Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-a86abbd68ffso594886266b.0; Tue, 27 Aug 2024 00:36:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724744212; x=1725349012; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=s7ZbYuU4Hg11tBqVQb6JFYYJsFylgbgfa1a3l6Mf89A=; b=aUCWD+cfTKN6yt+xViUQ/rXK/bSCbvxQRJ+2rumkwtDJFSpfE+mWOPlFYdAOyAbFUF cmIatAisMPWFZGIhE+KZ3JKc8Tc0bneTUVIdkoulomyPZjhTJqBf7AmLcJg7K6Yp3RL5 JaO30vZVPqDrLLA2xLvDsyD4Ty32uLl8+XvUD0u2V4C2X8fEQ5autZbdVja0qRXFJ0dF D2HrOr066NE9dDymObJe5EYiBRFrbp6FgEa1WAgCGv+NmyvCIWv6Bfxu/LDtgu1w3mmg +T7P6VLt3XutI/Fa1gav1kg3+Hry6SAV4vbOExrIG0YPhEhA8pSoP8qtalEla0jmDDH1 Hyqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724744212; x=1725349012; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:cc:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=s7ZbYuU4Hg11tBqVQb6JFYYJsFylgbgfa1a3l6Mf89A=; b=TrmRvfIPsX3FslNElXXBmIUWMcpQj4ietGo02MMTnyRxCxMT2mAXaw2mqszkuKLoGO m3S5+S2IDEPr2g3BRs6arK/H84uEtOdHfFii0pdyA0CEkIJ3cAlHjkoWKbhI+GEilHlp AhXuo6LC7f0qZqvbnIj28Bj18fTUVoDm1qnmoEniqbPvpHCXzbr2aLzXphieweiDzHvC XNmQV6Hj8/BSFlbkq889qBNafzzfUwUSTks+t914IpJ4pFhlWpaXQxUYtTHWb9JoYw5N y7KU630gYZrmQU3V2fRGkirWNtFv3+/GMwIPRFj1R4vY7ETfSlf1AICu3LP1FTpOLFcJ 7E7w== X-Gm-Message-State: AOJu0YwsBhXwuA8+QGjUbuyxAEKmgEjGdzkJAXOc3axeCUfonh7E28y4 qY/QrPfgtyJ+KONnuETc3ORsxSR6jXmduaP2uPlLHfjtfHffhtq5FYTt467o X-Google-Smtp-Source: AGHT+IFibPKQZ5FYB4if6SXyG1JPht92N54Je0cYAvCBJUF4AWIAj0pBuNB8xiL0PJrciOpv592qgg== X-Received: by 2002:a17:906:794e:b0:a86:abbd:6834 with SMTP id a640c23a62f3a-a86e2bcd7a1mr207130166b.30.1724744211955; Tue, 27 Aug 2024 00:36:51 -0700 (PDT) Original-Received: from [127.0.0.1] (93-33-63-32.ip43.fastwebnet.it. [93.33.63.32]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a86e549d0a3sm74238666b.46.2024.08.27.00.36.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 27 Aug 2024 00:36:51 -0700 (PDT) In-Reply-To: <0708616B-CCE4-4AA5-81FA-FF41F2789018@gmail.com> Received-SPF: pass client-ip=2a00:1450:4864:20::630; envelope-from=v.pupillo@gmail.com; helo=mail-ej1-x630.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, HTML_MESSAGE=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-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:290804 Archived-At: ------Z7VRP8SW4T613N3A6QZJ1MAEX47VQA Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Sorry Yuan, the spam filter is aggressive on my work email and I didn't see= your email=2E In early versions of php-ts-mode there were two variables to= disable parser injection for html and phpdoc=2E When, thanks in part to yo= ur help, I was able to get indentation and font locking to work properly, I= preferred to remove them because they seemed unnecessary=2E c-ts-mode has font locking for comments itself, so it is fine to introduce= this variable from my point of view=2E Vincenzo=20 Il 27 agosto 2024 05:13:52 CEST, Yuan Fu ha scritto: > >Yuan Fu writes: > >> X-Debbugs-CC: eliz@gnu=2Eorg , >> vincenzo=2Epupillo@unimi=2Eit >> >> 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=E2=80=99t a problem, since the doxygen support is = only >> enabled if there=E2=80=99s doxygen grammar on the system=2E But many pe= ople >> (me) might install a grammar bundle that includes dozens of >> grammars for convenience=2E Then the doxygen support would turn on when >> the user doesn=E2=80=99t really intend to use it=2E >> >> I propose we add custom options like c-ts-mode-enable-doxygen and set i= t >> to t by default, so the default behavior is still to enable doxygen >> support when the grammar for it exists, but people who don=E2=80=99t wa= nt to pay >> for it can turn it off by setting the option to nil=2E >> >> Yuan > >Eli, WDYT? > > > ------Z7VRP8SW4T613N3A6QZJ1MAEX47VQA Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Sorry Yuan, the spam filter is a= ggressive on my work email and I didn't see your email=2E In early versions= of php-ts-mode there were two variables to disable parser injection for ht= ml and phpdoc=2E When, thanks in part to your help, I was able to get inden= tation and font locking to work properly, I preferred to remove them becaus= e they seemed unnecessary=2E
c-ts-mode has font locking for comments its= elf, so it is fine to introduce this variable from my point of view=2E
<= br>Vincenzo


Il 2= 7 agosto 2024 05:13:52 CEST, Yuan Fu <casouri@gmail=2Ecom> ha scritto= :

Yuan Fu <casouri@gmail=2Eco= m> writes:

X-Debbugs-CC: eliz@gnu=2Eorg <mailto:eliz@gnu=2Eorg>,
vincenzo=2Epupillo@unimi=2Ei= t

Should we add a custom option that controls whether to enable dox= ygen
support in c-ts-mode/c++-ts-mode/java-ts-mode?

Technically= this isn=E2=80=99t a problem, since the doxygen support is only
enable= d if there=E2=80=99s doxygen grammar on the system=2E But many people
(= me) might install a grammar bundle that includes dozens of
grammars for= convenience=2E Then the doxygen support would turn on when
the user do= esn=E2=80=99t really intend to use it=2E

I propose we add custom op= tions 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 fo= r it exists, but people who don=E2=80=99t want to pay
for it can turn i= t off by setting the option to nil=2E

Yuan

Eli, WDYT?



------Z7VRP8SW4T613N3A6QZJ1MAEX47VQA--