From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: emacs-30 f0daa2f2153: Conservative heuristic for tree-sitter parser ranges (bug#73324) Date: Wed, 18 Sep 2024 14:31:30 +0800 Message-ID: <87v7yt322l.fsf@yahoo.com> References: <172663360099.23732.9998257239822693024@vcs2.savannah.gnu.org> <20240918042641.56C7BC410E2@vcs2.savannah.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="8293"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Yuan Fu To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 18 08:32:47 2024 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 1sqoF5-00024L-Ar for ged-emacs-devel@m.gmane-mx.org; Wed, 18 Sep 2024 08:32:47 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sqoEA-0004Ts-FG; Wed, 18 Sep 2024 02:31:50 -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 1sqoE7-0004Td-RB for emacs-devel@gnu.org; Wed, 18 Sep 2024 02:31:47 -0400 Original-Received: from sonic309-22.consmr.mail.ne1.yahoo.com ([66.163.184.148]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sqoE6-0003LI-3G for emacs-devel@gnu.org; Wed, 18 Sep 2024 02:31:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1726641102; bh=0yzxGIQp8dE9X/5hY7bxQ6+fgMmS9Q6fbrMNOoupjYw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=e5ptn7aJi2FMkwap8cF8zMNBwUL06QFOcbRZamHYxm1mJUCbcpyNjsnJZMlDIAqpd+kc/S8MxzOfBGmc+MTX6gT5xca5DGB7VKUNdjRZiMXUXJ+l6UhExeRPPPT4TBZWfaVGZBf5T6tFkl7zXZKe+jmNSinnfeOMilDv1iFNNTDUe3pnYWx/BsMWUGk3oK55ONNTvWj0+6KsWO9EWufOuOEigpEAund38fx6BfqYRczWd/GlV7+UvMZ3EoibJk61hUT9gUkMLzgv/VVMb8W5nH16GEncSWr90WP+oweOGEnL02DSiT3pQItbKhhOo5jzBetOQoGcwMbnUNNhLcB2wQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1726641102; bh=hA+evbH+/6GDKT9ObdhY7XHJ24ioMQDdkg4CNm1rpww=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=ULnCbS1Ijk6/cWmCHj4lyH6Zf4vBxA8C5nUUuA1f0W6fHslWFT8euHkDID9PH5l5iWRFSJ+tKHqkDaWaWxslEspu7p8ZcVWmeRWClE5IZWRDpwDdYzkZim2c9wY1Ut6vYDimOPFkACX4NhpFxg5EfmgB8iZh9wA6txAI66FkTIEblSGc+0PeN3kXh4OU4+rDFsEr1FDv4oFIzP+7uoeUJ2DWKAumC949fzTCpElqjpONbkoyV6unnV5PXsOz0mnc/aeoH9McWPeLwHZxcBqIh5L+2kWDBChK5a9qsdgwHgRv76blyzHY+l3obL93IKRpCFGhFJxx7Ahw6AEY5/ypPw== X-YMail-OSG: TEv0nE8VM1kVd0KrtIXa0qVB2P3JwCxJ30DZ.3YU6ScdTW5sInEMlsHZIGiEND9 _HjNP69L0WOyY93HG7LmTNfo1aQeJssM9tQ.zuXVuiO3UIX4JS5eLPJ0yDkarI_suLuXbIMwx5B0 2k.8GYVjdqTBNknudJwq49k1p3U5zpcjh6KRAP7QCqJT39n3c_N7h.H0BBR7GE4WlczebfSqL4rP cE33dMxn72ksSMkrbxNQ9XxuzX_35sk5iNyvVBqZlqmsdy3vbc7ZfZiHG.ZgQu1Sm1wpWlwP63YH 0iEUi2yPrnucKl9MUnOkZOvOy.yp.8nL54JYa_VmDgOXZWtTJcdAMY.oe9bGR1o4_AMxjz3UbrHg ubzGZ6e42GqIMscuRut9ySADWHpPriVaFi1x2QmjwtU.hT98eWfTNJd3ukNB6pvPgQhmkESPUwgC SYLnD1TbBT7gXyvoYvrPUo0EklxRXwvC.tYiKI24mGcV2QS5WyGYoop2fQzdPod9pk_c0JSeltvV BLYyPVm6rY6zNhmAE5Sn94aRttiJVY_lS_tThJR0Avubzpn1dTpcD.DZWI.PrVSNNhzUECEJFjw5 0yr3vD8tQJ6u88YRpaCjoy.7tPCMLB9T_fg0jTasz_k47PB3kdEPXZsjO964qY86tpf.2Jr3rnsp SY.6p4Uh3EYNLHccs4UbJD0r96UtxpSydDtZ_4HcQ0C8a6dTWb0FVdlSc616OJasZxne9_4JdsEo njHLXs0HN9pcnP8C_ykAtKUbud2bcA_Y_WgtWJMOjW40SSLFgtLbWS_VDhhrP55UxFAyCsl3GA_L a4dVABOdVM.Nlnc5iVJMIjGJABMwX17iFOpIbCQBIq X-Sonic-MF: X-Sonic-ID: 81740010-4f98-49fa-97d2-3a0433edea86 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ne1.yahoo.com with HTTP; Wed, 18 Sep 2024 06:31:42 +0000 Original-Received: by hermes--production-sg3-fc85cddf6-nnv8r (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID ada1c291200371f22e5fd09357660328; Wed, 18 Sep 2024 06:31:36 +0000 (UTC) In-Reply-To: <20240918042641.56C7BC410E2@vcs2.savannah.gnu.org> (Yuan Fu's message of "Wed, 18 Sep 2024 00:26:41 -0400 (EDT)") X-Mailer: WebService/1.1.22645 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.184.148; envelope-from=luangruo@yahoo.com; helo=sonic309-22.consmr.mail.ne1.yahoo.com X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.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, RCVD_IN_MSPIKE_H2=-1.048, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:323714 Archived-At: Yuan Fu writes: > branch: emacs-30 > commit f0daa2f2153a9d250d32ac1261a6fffb30860e31 > Author: Yuan Fu > Commit: Yuan Fu > > Conservative heuristic for tree-sitter parser ranges (bug#73324) > > * src/treesit.c (treesit_sync_visible_region): If the parser's original > ranges don't overlap with visible region, give it a zero range, rather > than don't set any range. > * test/src/treesit-tests.el (treesit-range-fixup-after-edit): Test new > behavior. Please fill ChangeLog entries in commit messages to a width of 64 columns, not 71 or 72, as here.