From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: How to add pseudo vector types Date: Fri, 16 Jul 2021 11:51:27 -0400 Message-ID: <533BD53B-4E85-4E9E-B46A-346A5BBAD0F5@gmail.com> References: <83h7gw6pyj.fsf@gnu.org> <45EBF16A-C953-42C7-97D1-3A2BFEF7DD01@gmail.com> <83y2a764oy.fsf@gnu.org> <83v95b60fn.fsf@gnu.org> <00DD5BFE-D14E-449A-9319-E7B725DEBFB3@gmail.com> <83r1fz5xr9.fsf@gnu.org> <1AAB1BCC-362B-4249-B785-4E0530E15C60@gmail.com> <83czri67h0.fsf@gnu.org> <46BBFF88-76C3-4818-8805-5437409BEA93@gmail.com> <83wnpq46uk.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) 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="8223"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jul 16 17:52:18 2021 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 1m4Q8P-0001uk-Sv for ged-emacs-devel@m.gmane-mx.org; Fri, 16 Jul 2021 17:52:17 +0200 Original-Received: from localhost ([::1]:34748 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m4Q8O-0001pX-RJ for ged-emacs-devel@m.gmane-mx.org; Fri, 16 Jul 2021 11:52:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40560) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m4Q7f-0000r1-Vy for emacs-devel@gnu.org; Fri, 16 Jul 2021 11:51:32 -0400 Original-Received: from mail-qk1-x72a.google.com ([2607:f8b0:4864:20::72a]:34407) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m4Q7e-0003NN-FT; Fri, 16 Jul 2021 11:51:31 -0400 Original-Received: by mail-qk1-x72a.google.com with SMTP id r125so9128171qkf.1; Fri, 16 Jul 2021 08:51:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=ejqfK1BZAjLkouEAJP0UrcgcKaiIOWKa/tV3eq6hY2s=; b=d+7gOkTPfM6N2IVgOt4QRRoiFkrKvPf41wBrkwHAkfsf+Eq7M7t5m6ef3wVhqrIPXI 4Mc3/IxM1UVrswxbuM3gSHxyT0Op8JqT1zOiHnRW7zxO516LqZQI2tbJk1iNXYbqUr6f JXdpkGra2nAT6l++9Rkzs3tTKiYkeEpurucOLouYwARhHwOFwvmgVKhhOFOqcvgi67mX WsBNXJfsOk6BFHNw10DDGgorrYwlsJDW9T8V+Lqgn8Ghuf5s++yXU++mcFh/YIriC1YI MJxitntKs/m/c3GuLzyIpr2TozYfSj5M5jYvAwdYF7wbs9rVbMZNrVG7qQUFSF40Q37O SdSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=ejqfK1BZAjLkouEAJP0UrcgcKaiIOWKa/tV3eq6hY2s=; b=fGr4w/k6onN3HARJh80kHQWApVi4ynGe+WrTVZMUK4uiFGru7/V/1Wpzd8wMeag9h6 qCq9szQSevaxYhIvCLuorfQolnQOaCOA+vtD1jpuo/gJe7GbHJk+zlQLv0hifRp9elCn JVjoCqMWkUjP4MPTu9u9cLXwUL8uQU8/p1Cwdz86au9nl3PJ/rNUQbAcLu2MtLXPIcXJ zqgOl1xtJ/v997SBxd8fhv00h66RoFWF0afyGWXKqfkdO8H1OSSeWkBjv5Xj1r2kjr9Q adng3v12tgZlTs1Ml4j7hGTpOmpu+Wfa4+L1B6qohnnMuYBK0Fe0HY6ifOIlvotNnxxG IQTQ== X-Gm-Message-State: AOAM533UvXg3vyTSrf8QClIwZQJ5bMhYChcpqhbCzvoCMRz2MtwxfGW7 /Q38kPuLPRCmTiyQ1Vyl/iBZFlTIbVJZkQ== X-Google-Smtp-Source: ABdhPJwP3MuW82K1D/M4AwDdHUeMS+7+rvpKmnU6r/7ZOlZ/IIiC0L/cmHFm4DjH2qWSw8ikFEaHgg== X-Received: by 2002:a37:bd8:: with SMTP id 207mr10118406qkl.435.1626450689080; Fri, 16 Jul 2021 08:51:29 -0700 (PDT) Original-Received: from ?IPv6:2601:98a:4200:9210:b9:d7fc:e86c:5d26? ([2601:98a:4200:9210:b9:d7fc:e86c:5d26]) by smtp.gmail.com with ESMTPSA id y1sm4010429qki.59.2021.07.16.08.51.28 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Jul 2021 08:51:28 -0700 (PDT) In-Reply-To: <83wnpq46uk.fsf@gnu.org> X-Mailer: Apple Mail (2.3654.60.0.2.21) Received-SPF: pass client-ip=2607:f8b0:4864:20::72a; envelope-from=casouri@gmail.com; helo=mail-qk1-x72a.google.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 autolearn=ham autolearn_force=no X-Spam_action: no action 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:271311 Archived-At: > On Jul 16, 2021, at 11:27 AM, Eli Zaretskii wrote: >=20 >> From: Yuan Fu >> Date: Fri, 16 Jul 2021 10:27:36 -0400 >> Cc: Stefan Monnier , >> emacs-devel@gnu.org >>=20 >> Another question, how do I add a new field in struct buffer? I tried = to add >>=20 >> Lisp_Object ts_parser_list_; >>=20 >> Before=20 >>=20 >> Lisp_Object cursor_in_non_selected_windows_; >>=20 >> But that wouldn't dump. >=20 > Did you see in init_buffer_once what we do with built-in fields of > struct buffer? I did not, that must be why, thanks. Though I=E2=80=99ve changed to use = a buffer-local variable as Stefan suggested. Yuan=