From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lynn Winebarger 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 05:06:58 -0400 Message-ID: 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: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8389"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?UTF-8?Q?Jostein_Kj=C3=B8nigsen?= , Eli Zaretskii , jostein@kjonigsen.net, Alan Mackenzie , emacs-devel , Yuan Fu To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Aug 16 11:08:07 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 1oNsYQ-0001x1-TY for ged-emacs-devel@m.gmane-mx.org; Tue, 16 Aug 2022 11:08:06 +0200 Original-Received: from localhost ([::1]:52016 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNsYP-00058E-6A for ged-emacs-devel@m.gmane-mx.org; Tue, 16 Aug 2022 05:08:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57278) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNsXb-0004Nu-AG for emacs-devel@gnu.org; Tue, 16 Aug 2022 05:07:15 -0400 Original-Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]:46694) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oNsXX-00016n-Ln; Tue, 16 Aug 2022 05:07:13 -0400 Original-Received: by mail-pg1-x532.google.com with SMTP id d71so8696974pgc.13; Tue, 16 Aug 2022 02:07:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc; bh=mMiMMIlTncVW3xhWIzrpjjPsmGfgNn/Z7rp8q5wxY8Y=; b=SJ2iJd1KlFnxQT3TrxxM+Xm5CnN2Q2Reaq9B0l6Mo2i1w4AzabJabwPj4PK1FAeff9 Q/Tz85iTFY03G+DLDnUhVUqbrtf3A1DeswpLddupMYQiN7BHjRoSjuJNIH/bX0658KY+ iq1y+8kSsaGD3dmxcyTJjeREAMcDiR4/s0KXf5XIIRRmCIzHf8L00MFia19CToY0OJG1 V1M8yBAWwgYACzgq/a2AULQ6dMtNneweJBuAJXxZ2mZYEVodH3E7loD9lC4j6S50sO5r 4/YNjKZUMHoUNKBwRkNu1VEEBpJSnIbCVgltaOXlVzJqZGGxUnt1qCK8XwfJWFHUIpgH 0GSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc; bh=mMiMMIlTncVW3xhWIzrpjjPsmGfgNn/Z7rp8q5wxY8Y=; b=hNw9aTssYfFFdcMRDm6Ca/VrVPtnyNa8dR7dxMx6DHAgrSzRh6FpxbvxcNyyRKtxyH y6lrkUJSzgdm3nAYW6CgyuXaqPpvZCCIRQJrp5GVLKIIMjRutbeXscma99qzjMxu8ndC pEucejItM3zH1cW8Czyz0aZcGAvDFy7TTvpItLjgimHYQXREah6ZZV9ZGgWoIB4aVe+W mCTn64yzd6c9d7VefsSC/TmomBFkULK/ND/3bx4pj1tBQahl7uV7mfoBq9zvNg/MLCFZ 71OiSrzfeM8TpaErHXHR3BZdIKdZLSrEnhaKZhEiSqvFVEZJzHLL9uRCfv3T9dCpMkkt +TQg== X-Gm-Message-State: ACgBeo37T92c4wHGDguNkYE3hEGVIx3pJLOoOmoAbyb5kzyPKvIDozRV 4mw8I1kM9uxU6nRpL+Zd/6e94wqoFgMWKarAu3w= X-Google-Smtp-Source: AA6agR6Pl95waIfs9V3bDTVnZPYjR00kb4vPTa/hH3gXI3ZJfc9gLhL81fInDKIpZDVaqGj0eQ+7J4EoxAP/sj62w0I= X-Received: by 2002:a05:6a00:1949:b0:535:15ee:3205 with SMTP id s9-20020a056a00194900b0053515ee3205mr4764303pfk.34.1660640829980; Tue, 16 Aug 2022 02:07:09 -0700 (PDT) In-Reply-To: <87a687sjnv.fsf@yahoo.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::532; envelope-from=owinebar@gmail.com; helo=mail-pg1-x532.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:293494 Archived-At: On Sat, Aug 13, 2022 at 9:23 PM Po Lu wrote: > > Jostein Kj=C3=B8nigsen writes: > > > But I've yet to date seen any case where Semantic or CEDET has > > provided me with value as a Emacs end-user and programmer. Maybe it > > works. Maybe it's useful. Maybe it does magical things. But as far as > > I know, it's a mode you can enable, and then .... nothing happens. > > 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? I'm not 100% on what Semantic is doing for me. I did run "make TAGS" in the Emacs source directory, and it seems to do something, although I don't know how much of that is Semantic versus one of the many other packages I've loaded into the emacs dump I use. I know I get great completion sometimes, and I see notifications that my Elisp buffers get parsed by an LL parser. The fontification is different, and the header line is used for displaying the function scope point is in. I added Yuan Fu to the CC per your earlier recommendation. I'm not sure what their role is - migrating the documentation? Lynn