From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Reliable after-change-functions (via: Using incremental parsing in Emacs) Date: Mon, 30 Mar 2020 11:06:57 -0400 Message-ID: References: <83o8sf3r7i.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="47136"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Eli Zaretskii , emacs-devel@gnu.org, Andrea Corallo To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 30 17:07:57 2020 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 1jIw16-000CAJ-Bo for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Mar 2020 17:07:56 +0200 Original-Received: from localhost ([::1]:51146 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIw15-0003Zj-A0 for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Mar 2020 11:07:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35415) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIw0N-0002Un-6R for emacs-devel@gnu.org; Mon, 30 Mar 2020 11:07:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jIw0M-00023L-4a for emacs-devel@gnu.org; Mon, 30 Mar 2020 11:07:10 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:7884) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jIw0K-00020Y-3N; Mon, 30 Mar 2020 11:07:08 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 3718881133; Mon, 30 Mar 2020 11:07:07 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 8E4A380B53; Mon, 30 Mar 2020 11:06:58 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1585580818; bh=zL5/bsEhvwGYIg3xb5FCgmu0pX5NgmBSi3O7a0++q+I=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=ZJvpxtMK5bgVHk2b+GjlNbN1Xq/gXsa6nCcvDBYp4Bv6f322R+ygEUcmOTwvbuzOk DHMbS3hosJGvodDWQTYk/ikjWqx0Ru/HYd7JIkNQdvaYtS7Q+Tz+AzfIv3YMx4J3F1 HpH/uEoH4o7AkKZVY3iY63KVYVfU7Juk3+Sh8XMnv6BGN6udlVy4w/pk4i3MlOFoPD 0fDm2+BcZEeMI8E9F2G+EOKi01jjPMiF6KIGyeprNQlo1zwJZfj+Zs9Rd8mkpwH2I5 82+EfA6par41ux5f8c4wUBMsQNT18DZYRBitTg5zgHVavJlEOpVjNO0HKTC1GkbuD1 fag6P+mCXrEGg== Original-Received: from alfajor (unknown [104.247.241.114]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 2E81D120172; Mon, 30 Mar 2020 11:06:58 -0400 (EDT) In-Reply-To: (Yuan Fu's message of "Sun, 29 Mar 2020 15:29:41 -0400") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 132.204.25.50 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:246017 Archived-At: > A related question: is there a reliable way to be notified when buffer text > changes? Because AFAICT both tree-sitter and LSP needs to know incremental > changes. Both LSP packages (lsp-mode and eaglet) add hooks to > after-change-function. But their hook is not guaranteed to run because of > inhibit-modification-hooks. If they needed to be informed of the change but `inhibit-modification-hooks` prevented it, it's a bug. Please report it. Stefan