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.devel Subject: Re: Why tree-sitter instead of Semantic? (was Re: CC Mode with font-lock-maximum-decoration 2) Date: Tue, 16 Aug 2022 14:41:54 +0300 Message-ID: <83zgg4fm9p.fsf@gnu.org> References: <83o7wuva9o.fsf@gnu.org> <83mtceupbx.fsf@gnu.org> <83lerxvfnu.fsf@gnu.org> <838rnxvdcq.fsf@gnu.org> <83r11ptksn.fsf@gnu.org> <83a68dti6w.fsf@gnu.org> <87a687sjnv.fsf@yahoo.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="18712"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, jostein@secure.kjonigsen.net, jostein@kjonigsen.net, acm@muc.de, emacs-devel@gnu.org, casouri@gmail.com To: Lynn Winebarger Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Aug 16 13:43:45 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oNuz3-0004af-LW for ged-emacs-devel@m.gmane-mx.org; Tue, 16 Aug 2022 13:43:45 +0200 Original-Received: from localhost ([::1]:50448 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNuz2-0001Gn-MI for ged-emacs-devel@m.gmane-mx.org; Tue, 16 Aug 2022 07:43:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43340) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNuxV-0000ZD-FI for emacs-devel@gnu.org; Tue, 16 Aug 2022 07:42:10 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40242) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNuxU-0003ZS-9T; Tue, 16 Aug 2022 07:42:08 -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=ljz9fg4jHVvQef2M8RvbZdondAM0bYIiyzM+PmwMZrQ=; b=cFzOEsajzL3i1divVmyT lHjlhcUTBIvxvSxregnBeAYBSU7FzZAaZu0duKhzDSjUw5tJt3xTfO7E73lHJdmpTnkBvIson98EF 2zDUOV4pG9HYhKfVkklKrB/W16tP5I8QYJQa7r7ZcQF3HTi0JtJfd6bsVV+kX8I4UmGhXJBFgF/pO StqVvQw95HYjQsWqTHvOLHv/ZF9ut37ua6IRhrDA8l4d0kYCKzJUbRkwG2k5i1ZSFMMmfLqJZAObQ 2TasjVLmARKUH7CBkQDX6n7TSmnEPIqGxnww3wNKxqeePn/bI5NRORzj+XWXFnpRIHszjjAvqAg4P deIraHiQgd2XuQ==; Original-Received: from [87.69.77.57] (port=4068 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 1oNuxT-0006oG-KC; Tue, 16 Aug 2022 07:42:08 -0400 In-Reply-To: (message from Lynn Winebarger on Tue, 16 Aug 2022 05:06:58 -0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:293499 Archived-At: > From: Lynn Winebarger > Date: Tue, 16 Aug 2022 05:06:58 -0400 > Cc: Jostein Kjønigsen , > Eli Zaretskii , jostein@kjonigsen.net, Alan Mackenzie , > emacs-devel , Yuan Fu > > On Sat, Aug 13, 2022 at 9:23 PM Po Lu wrote: > > > > Jostein Kjønigsen writes: > > > > That's not true. If you enable Semantic and EDE, and add system > > includes (with semantic-add-system-include), and wait for the initial > > parse to finish after visiting a file in a project, it becomes > > immediately useful for editing C code. It's actually what I use for my > > day job. > > I think what Jostein means is - how would you know you need to take > all those steps? As usual: by reading the fine documentation. Amazingly enough, Semantic does have an Info manual, which comes with Emacs, and those steps are documented there. More generally: Semantic's problems, issues, and disadvantages aside, let's not pretend that Emacs maintainers are incompetent. When the decision was made to add parts of Semantic to Emacs core, back in Emacs 23 days, a lot of effort went into its proper integration, including making its documentation available. So if someone asks him/herself how do I use this stuff, I expect that someone to make the minimal effort of reading the available documentation and trying to follow it. If that doesn't work, then yes, by all means do complain.