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: Tree-sitter integration on feature/tree-sitter Date: Fri, 17 Jun 2022 09:24:21 +0800 Message-ID: <87o7ys2ibe.fsf@yahoo.com> References: <2c2746e5f2558a87e8eab6f0914264a020173a9d.camel@pm.me> <27630AA3-8026-4E24-8852-ACCD9325B99D@gmail.com> <0E9E702B-B07C-4794-8498-29B9320E14CC@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31786"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: Emacs Devel To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 17 03:25:34 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 1o20jt-0008AD-QH for ged-emacs-devel@m.gmane-mx.org; Fri, 17 Jun 2022 03:25:33 +0200 Original-Received: from localhost ([::1]:54996 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o20js-0006CB-Dg for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Jun 2022 21:25:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58376) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o20j0-0005Va-Ke for emacs-devel@gnu.org; Thu, 16 Jun 2022 21:24:38 -0400 Original-Received: from sonic307-10.consmr.mail.ne1.yahoo.com ([66.163.190.33]:43807) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o20iw-0000kw-ME for emacs-devel@gnu.org; Thu, 16 Jun 2022 21:24:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1655429070; bh=hcIwJPf/2/PV/AHhvya8OtVnhjBqRTVpYjUl4o9iz5g=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=FqLZEZIhtohIrNZIMuGxeulo/lHOW3lWyYqtmmWun3MTjPjNO2g6OY9VN6olqtkxXmyW1ZWTp+t/fNvd48cXdBuTgK6/n2Wy91kVyb8Hi3OKqLZkSS44+sejixTQbNbWgZS9dyA501A/sZLuUQyiw+N9OH8LPwzfPzxOChYzjVJ1BHtv2Ehq7T1Gbm+4uVxa80rygITaCXeGoGUXbgHc5u8A05JeYFvYliptf+n2MfLrvVh+97UsHOqPFfXv6KO6t2ilxWAMYDK2k8OkFv1Ft+GK8EKR8Ds38qBYRKJJiy6hZ8/tRC80J/JHzxRu8aW+Om34zSiMpjzEJXGVL/c0RQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1655429070; bh=svCp5RTGNiXL5PypgGR9bCNbKko7B6eKJM0qQJhY1sh=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=k5iitO/RC9zX7iQGCYbMqjLPUp93UanU51vlUpK2Dd1syL77X4PlpwUcbvvW8pWtBA8VvKidCda3r8j1hY0McaqwaZQOPOkd7IQcvD5bAgVrXk9Yzo0aa3HXAPlYSd9aYZ/pmM9I0zaeSK/9KcxIp/BIoAzNG2WjULUwy490TU7q8Vqo3o7HZIdqsruKP2fbkJUCBaW3ibR+WvU/v8NFRTIBbUaXgTgEj7RqLmvfAs57xJu3q8PYN/14A0BkuSXqZDDKFCijqOVRONnV2rY7kAQOHgIhPdWMj0G31OJBXLO6NQUs/NP1YLG+KKxqopCFDztBYAdJdfFsjyjeJnFmEA== X-YMail-OSG: ieY7dD0VM1kehXK1NZtTe2kXqrLsBgUZUTpLt51Kok0L2fFTSD8QMXhl5Nz.QKx V5aMlhmRCGoSUPb5ZJGXSey7nr4ohk.2XxgQemuWbG301.3G6kpAbcAypH5aFPB6vy3I2.xCGAQK LCllmPjr_ImHie8RKZQ_nKAxvX_jfCARP1raUHh0Rj.XbQm6RYS5ZpzZHnjW8lcnkuO8qYdr.wdc tAh4CNf2QL4adyODlyty7NF1LpHlCUGlrRPAX.56ZxuU_Gzr9TpDyODRkZ00VcTRgzi1wcKIE4dR MFMX3GnfxKEJB50timNXHQdt0F7hVM8yZCLQMjHYp4HUXM4iQnEwE_XfkWebM6YBzhImTH7blf1O BA8eFs.jKvQ3Y2DsAXQ69ewq30HgBQTXRhQuwEtPsTl8SWOmG0xishJT_qy8sI3buVQe3Wi2qTh5 VN_9Cl6wjUALzbM_uK4XrT_75QqZfG5m8kTrXdXE65mfCHiXbNRX_1dA1JV1MssWW8xtwQkEYy2l F5MWTbsmgHmjgUA4UW88CeUcTOli9r5w9rb_xT36t0Wkhm8.KU3BqwlaJT4YKIiamh_jtxweBbLS Aty.bbnYt7_VpUZydMpXZj.regEDNfh.0ApQvoLh0QzyUDk_sROibrfT8PVXZ4u7Rsf4mtsjRLfP edzVwJw2rRE3ojSmacc3CajcE925Z_EmbQ0viSZy7LX5UVgnD6sXm9gUBMj0AvhHQ._1gY.sZBih 4bTg3IQfa_WrtE3dhN3rt7rDuP6AuB76trMnLBt6uSe2nhzRjtf5acv5owb3zAs1ad6tsJfnar4N DxEq3CA0QV7oo3nWlfh5fj48zevrPlmuqI4YziS_29 X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ne1.yahoo.com with HTTP; Fri, 17 Jun 2022 01:24:30 +0000 Original-Received: by hermes--canary-production-sg3-559fcd5995-7tsmv (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID d0042c3cf497b7f6f6572caeb72ba629; Fri, 17 Jun 2022 01:24:25 +0000 (UTC) In-Reply-To: <0E9E702B-B07C-4794-8498-29B9320E14CC@gmail.com> (Yuan Fu's message of "Thu, 16 Jun 2022 12:03:08 -0700") X-Mailer: WebService/1.1.20280 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.190.33; envelope-from=luangruo@yahoo.com; helo=sonic307-10.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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" Xref: news.gmane.io gmane.emacs.devel:291260 Archived-At: Yuan Fu writes: > Can I just add a new Lisp_Object field in struct buffer? I assume > that=E2=80=99s how you add an internal buffer-local data? Yes. Make sure the field is placed before `cursor_in_non_selected_windows_', or it won't be traced by GC. Also make sure to access it using the `BVAR' macro and add a corresponding `DEFVAR_PER_BUFFER' form in syms_of_buffer if it's supposed to be a buffer local variable.