From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Abin Simon Newsgroups: gmane.emacs.help Subject: Hooks on treesit parse refresh Date: Fri, 24 Feb 2023 10:44:33 +0530 Message-ID: <87y1on63wm.fsf@meain.io> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1824"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 26 10:47:07 2023 Return-path: Envelope-to: geh-help-gnu-emacs@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 1pWDcY-0000Hc-Ig for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 26 Feb 2023 10:47:06 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWDbt-0003id-4y; Sun, 26 Feb 2023 04:46:25 -0500 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 1pVQPr-00017a-PF for help-gnu-emacs@gnu.org; Fri, 24 Feb 2023 00:14:43 -0500 Original-Received: from mail-pj1-f42.google.com ([209.85.216.42]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVQPn-0006HZ-96 for help-gnu-emacs@gnu.org; Fri, 24 Feb 2023 00:14:40 -0500 Original-Received: by mail-pj1-f42.google.com with SMTP id c23so10439327pjo.4 for ; Thu, 23 Feb 2023 21:14:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ZKFqJuvDlHZOrBFIZK+BNoeaO022YW8Y+UuAITHtl0U=; b=BhiQdupjQq4PY9vpqvpL+qnwzxT81yf3MUdtewf+v29Gc3y1au+14jV7M8JVv3Bzj8 hyOj6cAzlOxnvcQByW/4UhCWaJPpYdEO70Jd0a5yT0rSWkWP+P1Frr5qabWYw4rqJk0k LUWt+CbJafUhsleE/adEC4N4elxM3bSL1JKSeRIxOKwi23mcYObqAOYc0jo6933AoCHI aGFZlxL8uaiScYAGJgjFeZvzB9BHj04X6nZIsff0eUTZIrR3TEYn8swUf46d583h6j4x ZzcFoUfBSGE8s8T5JxRTddBpq3CGNRK+G4CsZ7TXlRj4usmnBfvcCr1rhhrs73TEejzB 87/A== X-Gm-Message-State: AO0yUKXicJIcxDagM36ausWB6lW4PD2vVLCBP9XQT1H6HWw8D+KQotdt Z35WdKRmE4HGo39DGmR2nFe3Ole1s9c= X-Google-Smtp-Source: AK7set9cZOCO9jYIsfc63mz6U2p/lz4C2zderf4NXdB9YXfGeHRlXaijdKCjnERIL7Zxmtf97n1kEg== X-Received: by 2002:a05:6a20:440d:b0:c7:5ba5:43e9 with SMTP id ce13-20020a056a20440d00b000c75ba543e9mr15082788pzb.30.1677215677279; Thu, 23 Feb 2023 21:14:37 -0800 (PST) Original-Received: from localhost ([103.165.21.17]) by smtp.gmail.com with ESMTPSA id 2-20020a631842000000b00502e4015ff7sm4050254pgy.23.2023.02.23.21.14.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Feb 2023 21:14:36 -0800 (PST) Received-SPF: pass client-ip=209.85.216.42; envelope-from=abinsimon10@gmail.com; helo=mail-pj1-f42.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 26 Feb 2023 04:46:23 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:142844 Archived-At: I was adding support for builtin treesit to one of my packages, scopeline. https://github.com/meain/scopeline.el The package makes use of these hooks in elisp-tree-sitter to run when a tree-sitter tree refresh has happened: - tree-sitter-after-first-parse-hook - tree-sitter-after-change-functions I was going through treesit code, but could not find anything similar. `treesit-explore' seem to add a hook to `post-command-hook' but wanted to check if there was something more specific that I could use instead.