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#72814: 31.0.50; Add a variable controlling doxygen support in C/C++/Java? Date: Thu, 12 Sep 2024 00:51:20 -0700 Message-ID: <2AD1D9D4-8F89-4FCC-B4A9-E53CC6D8AB11@gmail.com> 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> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34952"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72814@debbugs.gnu.org, v.pupillo@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 12 09:52:32 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 1soecx-0008uK-1K for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 Sep 2024 09:52:31 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1soecQ-0000b3-PD; Thu, 12 Sep 2024 03:51:59 -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 1soecN-000087-Pw for bug-gnu-emacs@gnu.org; Thu, 12 Sep 2024 03:51: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 1soecN-0002o3-6Z for bug-gnu-emacs@gnu.org; Thu, 12 Sep 2024 03:51:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:Date:In-Reply-To:From:Mime-Version:To:Subject; bh=U+QWrpRWaZqrPT58Lgyp6QdNEfVlMW82xib1u0PbojU=; b=hQHMI1VEKFHo1if0x/LxT+FJ6f/RDwdnQsqNATmYQ3XsDUanbPydhh+l4GbvpCJvNQZscmePtqX9EPUFCZd72nDd/A6uaGIQUoEUwsvhP1KJCdVfjEqV1sJ7pvKKIcdkgEik5J+JUHguvvkIB9gf/L8wUo+sci1T35JMYj43y1w3AFDYDGYnUkmb4enLZK5r8cmCZjJXk59T1WQAW6LgPDcj8WNx6D3AOImZUUr6gNBA6AXGWzh3RGy4j1EFcnzwQUDO5WOSj9fe2i1MATGGutPTqLt9JLpJtBnQyYzg80sMNMjRGbGZjzAn1oNvZhVfA+KKPSsaP7psVUSM9tguig==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1soecU-0000jp-Hu for bug-gnu-emacs@gnu.org; Thu, 12 Sep 2024 03:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Sep 2024 07:52: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-Cc: 72814@debbugs.gnu.org, Bug Report Emacs , Vincenzo Pupillo Original-Received: via spool by submit@debbugs.gnu.org id=B.17261275072808 (code B ref -1); Thu, 12 Sep 2024 07:52:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Sep 2024 07:51:47 +0000 Original-Received: from localhost ([127.0.0.1]:40051 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1soecE-0000jE-O4 for submit@debbugs.gnu.org; Thu, 12 Sep 2024 03:51:47 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:50842) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1soecC-0000j5-QE for submit@debbugs.gnu.org; Thu, 12 Sep 2024 03:51:45 -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 1soec4-0005mf-5y for bug-gnu-emacs@gnu.org; Thu, 12 Sep 2024 03:51:36 -0400 Original-Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1soec2-0002ik-6j; Thu, 12 Sep 2024 03:51:35 -0400 Original-Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-2057835395aso7751385ad.3; Thu, 12 Sep 2024 00:51:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726127492; x=1726732292; darn=gnu.org; 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=U+QWrpRWaZqrPT58Lgyp6QdNEfVlMW82xib1u0PbojU=; b=FgWoCS+ohl1DwKpkxA1WaAtICCgIdyyiN3Nyr+BwoDkmbUB+01K1l9RAVwkzbK07e2 wBwHP0hmnOQqOlyIL1J1jJzG9g+m0/xfqC7w7uDCWHNV7F4e5cyO84OSx+d6N1mAObtK UzBQkilDIid4bqTO/3XfxZo64sgKVdauHNxFg72NDlZTuu4AvAkUtkgeRLsymC1rcPZX XIC+R9y/6Kb+yeKuqhd97ox776slTHm+u67h++s/tyEhiWnENBf8kYdNreWhKEnNttV+ KeQj0U79RSrsQ+OxFtUHlgJa32T+xZWGXWgTAhgTczadR/8yiEIvXfyINOf7WRwcAGVO 0CxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726127492; x=1726732292; 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=U+QWrpRWaZqrPT58Lgyp6QdNEfVlMW82xib1u0PbojU=; b=OfTlNmRd4lFADFMW9sx8bcCtikaaanK7+QelTpeMd+kxufIA4RUQOwAxGf/v5PLzyZ ofPiSGpxJw1t2VZG3Gnxl16otc9gTyG9iEjTil+fRrizH3YKDlKYaSOT4kTYywshyGEE hFp2furJKzmVPj+adgip2yUhbc3w3VIuidPi2EeEnhxThQUVp+xm1fL1GjZMjKyXETqt s5OCBWyAYOPIeBIJgDi3mrDf0ZDeql+eKmDOFD8+XrShO4UbIdbEbwj4FKYa2F8Pql6l 0L+tWdKghL0yxL7Ga+D5+byHM4bEuTGoYH52hmye6Cygtl50poTf+PkZ+Gyc7+3Cpdzi JMsA== X-Forwarded-Encrypted: i=1; AJvYcCWfV9Nk0XjK4EY7iG8q2KjqIVsyop7VlXFGbaQHehS8DwMUafTraZ7YsZHzWGbG9kMUw4XphGljzeNOvaIk@gnu.org X-Gm-Message-State: AOJu0YzuyN+BApZt6BQ7qqh4vLGVuE6w7mxSS0/6jg+PUuCWDKkB3poP MCaYYyGIWT8GYOguCtTWFFmkamoAtve6/Brmdndfsbne3uvY5rCkv+su4w== X-Google-Smtp-Source: AGHT+IEnaW5T/0EwlnkND6I4MuPyC4ubsc75ANLjGpXVd/V3OmlfHoo5vU2FIw2bgG2IIX7wdQI4MA== X-Received: by 2002:a17:903:22c3:b0:206:bbaa:84e9 with SMTP id d9443c01a7336-2076e3eaadfmr30732195ad.47.1726127491748; Thu, 12 Sep 2024 00:51:31 -0700 (PDT) Original-Received: from smtpclient.apple ([2601:646:8f81:6120:5922:91:f01d:e306]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2076afe9ea2sm9720305ad.233.2024.09.12.00.51.30 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Sep 2024 00:51:31 -0700 (PDT) In-Reply-To: <867cbipf9l.fsf@gnu.org> X-Mailer: Apple Mail (2.3776.700.51) Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=casouri@gmail.com; helo=mail-pl1-x635.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 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:291622 Archived-At: > On Sep 11, 2024, at 5:05=E2=80=AFAM, Eli Zaretskii = wrote: >=20 >> From: Vincenzo Pupillo >> Cc: Bug Report Emacs , 72814@debbugs.gnu.org >> Date: Wed, 11 Sep 2024 11:40:17 +0200 >>=20 >>> Thanks for taking this up! I won=E2=80=99t signal a warning if = doxygen grammar isn=E2=80=99t found. Imagine a user without doxygen = grammar, and din=E2=80=99t change c-ts-mode-enable-doxygen: they=E2=80=99l= l get a warning whenever they open a C file.=20 >>> We should either set c-ts-mode-enable-doxygen to nil by default, or = not warn when doxygen grammar doesn=E2=80=99t exist. Otherwise, the = patch looks good to me. >>=20 >> Okay, fine. But Eli said something different... >=20 > 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=E2=80=99t present), nil for = enable if doxygen exists but don=E2=80=99t issue any warning, = =E2=80=98disabled for disable. (I don=E2=80=99t think there=E2=80=99s a = convention for the three values of tertiary toggle, is that right Eli?) Yuan=