From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Tree-sitter introduction documentation Date: Sun, 18 Dec 2022 10:07:01 +0200 Message-ID: <83zgblf84a.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40030"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Pedro Andres Aranda Gutierrez Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 18 09:08:00 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 1p6oiF-000ABc-7T for ged-emacs-devel@m.gmane-mx.org; Sun, 18 Dec 2022 09:07:59 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p6ohU-00022k-RL; Sun, 18 Dec 2022 03:07:12 -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 1p6ohI-00022K-7b for emacs-devel@gnu.org; Sun, 18 Dec 2022 03:07:01 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p6ohF-0000V8-QT; Sun, 18 Dec 2022 03:06:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=WSIXSY9myMH6lFVCLlZnmylCKe1c5Wb0IZVTQu+l4io=; b=FtaWfgYEY01x MSSl8vW+t0XVe3pUD/Ciq4ODTn5SUVBG7mSP9YkFeElDyMXM7VkCmV+8Z1cUiRy4ZCMrgF2ikqjN5 yuNm3h67Mfw/ySafr5gjcbJJmRz5qnwBAzUuvby7lsyvKvmFKdRFfykBQrs88OxFPRwMEafnnBb+k AUjn0LCPtQSyhgSXoi7T8ydY3znc0ke/VJV9ZTT3FzebVlsSahIk5j6pWEu4y6IkUY8xFOVYSmtLr /w9cGy4yqzEZJyaDysoaYFdZTp8qMZ0zckLiEtk3g9IzmbQtVZfeSga7e3Z5+xU0xL0yMEVU9nELD UP4nLVign97scepQD03OBw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p6ohC-0006qE-4K; Sun, 18 Dec 2022 03:06:56 -0500 In-Reply-To: (message from Pedro Andres Aranda Gutierrez on Sun, 18 Dec 2022 07:32:50 +0100) 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:301601 Archived-At: > From: Pedro Andres Aranda Gutierrez > Date: Sun, 18 Dec 2022 07:32:50 +0100 > > 1.- where will they sit at the end of the day? It is IMO best to put them in the same place where you have the rest of the shared libraries loaded by Emacs. There's also the special path treesit-extra-load-path, but my recommendation is to use that only if you cannot place the grammar libraries together with the rest of your shared libraries. > 2.- should I include *all* plug-ins or just the plug-ins I use (mainly Python to get used to it) Each grammar library is only loaded when the corresponding Emacs mode is activated. So if you never turn on some treesit-based mode, you don't need to have the corresponding grammar library available.