From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: How to add pseudo vector types Date: Fri, 23 Jul 2021 19:00:12 -0700 Message-ID: <86fsw4a2tv.fsf@stephe-leake.org> References: <83h7gw6pyj.fsf@gnu.org> <45EBF16A-C953-42C7-97D1-3A2BFEF7DD01@gmail.com> <83y2a764oy.fsf@gnu.org> <83v95b60fn.fsf@gnu.org> <00DD5BFE-D14E-449A-9319-E7B725DEBFB3@gmail.com> <83r1fz5xr9.fsf@gnu.org> <86mtqh54wo.fsf@stephe-leake.org> <83czrd53z2.fsf@gnu.org> <86wnpj4qh0.fsf@stephe-leake.org> <83lf5z4fwq.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4168"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (windows-nt) Cc: casouri@gmail.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jul 24 04:01:58 2021 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 1m76zF-0000vA-Bk for ged-emacs-devel@m.gmane-mx.org; Sat, 24 Jul 2021 04:01:57 +0200 Original-Received: from localhost ([::1]:34354 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m76zD-0006CL-Cl for ged-emacs-devel@m.gmane-mx.org; Fri, 23 Jul 2021 22:01:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54736) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m76y6-0005V6-Ii for emacs-devel@gnu.org; Fri, 23 Jul 2021 22:00:46 -0400 Original-Received: from gateway22.websitewelcome.com ([192.185.46.229]:18392) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m76y4-0007RZ-JD for emacs-devel@gnu.org; Fri, 23 Jul 2021 22:00:46 -0400 Original-Received: from cm11.websitewelcome.com (cm11.websitewelcome.com [100.42.49.5]) by gateway22.websitewelcome.com (Postfix) with ESMTP id 35E381191D for ; Fri, 23 Jul 2021 21:00:17 -0500 (CDT) Original-Received: from host2007.hostmonster.com ([67.20.76.71]) by cmsmtp with SMTP id 76xcmhbeNK61i76xdmvvNm; Fri, 23 Jul 2021 21:00:17 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=stephe-leake.org; s=default; h=Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ZH7pwfkRXy/0dYFwVdeLHV+A14XJEZD7LfFsPeWJMNs=; b=i98k5/7JsLwlYw5E3mV6cwFeDA 7lNOhQy5Eh0TFyf1icf6dYz+aJmywAXlP9cShXgdjAup/Sq02zkAzAkmMibdjaRAQrhruStPwlas0 9kQR3GK/C2eSvfRzRpiKiFUMcLPUNVDEB62GuabHElWkilUHFcsTHUtOYUvZTLc3BVfKAafM0D18x DcPG2cW/M38GeNy+LxhNTYs4s74ual72ZRsGBgfdDxHPNR+Kg46wUO3ZqpayqWZFfzjWnEKsH7H4k PwJDoQRWlIWMEhhgGz69OlNe+shh4/wS+Rd02L5GGMay8oo47HonkAlDHzlHpXo/iYDKTwUqMcYv0 2pH2JJjA==; Original-Received: from [76.77.182.20] (port=51384 helo=Takver4) by host2007.hostmonster.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1m76xc-003VHb-DD; Fri, 23 Jul 2021 20:00:16 -0600 In-Reply-To: <83lf5z4fwq.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 21 Jul 2021 22:37:25 +0300") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host2007.hostmonster.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stephe-leake.org X-BWhitelist: no X-Source-IP: 76.77.182.20 X-Source-L: No X-Exim-ID: 1m76xc-003VHb-DD X-Source-Sender: (Takver4) [76.77.182.20]:51384 X-Source-Auth: stephen_leake@stephe-leake.org X-Email-Count: 4 X-Source-Cap: c3RlcGhlbGU7c3RlcGhlbGU7aG9zdDIwMDcuaG9zdG1vbnN0ZXIuY29t X-Local-Domain: yes Received-SPF: permerror client-ip=192.185.46.229; envelope-from=stephen_leake@stephe-leake.org; helo=gateway22.websitewelcome.com X-Spam_score_int: 10 X-Spam_score: 1.0 X-Spam_bar: + X-Spam_report: (1.0 / 5.0 requ) DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_NEUTRAL=0.779 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:271518 Archived-At: Eli Zaretskii writes: >> From: Stephen Leake >> Cc: casouri@gmail.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org >> Date: Wed, 21 Jul 2021 08:49:15 -0700 >> >> > I fail to see the significance of the difference. Surely, you could >> > hand it a block of text with changes to mean that this block replaces >> > the previous version of that block. It might take the parser more >> > work to update the parse tree in this case, but if it's fast enough, >> > that won't be the problem. Right? >> >> tree-sitter doesn't store the previous text, so there's nothing to >> compare it to. > > There was nothing about comparison in my text. You tell TS that > editing replaced a block of text between A and B with block between A > and C, without revealing the fine-grained changes inside that block. > This must work, because editing could indeed do just that. I see; treat the whole block as one change. Yes, that would work, but it would probably be less optimal than sending a list of smaller changes; depends on the details. -- -- Stephe