From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Towards a cleaner build: frameset Date: Tue, 28 May 2019 11:50:28 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="234512"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 28 12:07:40 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hVZ19-000yra-Hx for ged-emacs-devel@m.gmane.org; Tue, 28 May 2019 12:07:39 +0200 Original-Received: from localhost ([127.0.0.1]:60205 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVZ18-0003Be-60 for ged-emacs-devel@m.gmane.org; Tue, 28 May 2019 06:07:38 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41062) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVYke-0006r7-Av for emacs-devel@gnu.org; Tue, 28 May 2019 05:50:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVYkc-0000qC-GE for emacs-devel@gnu.org; Tue, 28 May 2019 05:50:36 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:41466) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hVYka-0000nc-FD for emacs-devel@gnu.org; Tue, 28 May 2019 05:50:34 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hVYkW-0003TS-RN; Tue, 28 May 2019 11:50:31 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEUYEBYHAgUFAAMKBQoD AQa5lDYGAwcoJzUh8fW6AAACXElEQVQ4jV2TP4/bMAzFeVAuWksL6Fz7voBcGskaJIKzdqiR9YoY ySrAd+XX76PkBIdqCAL+/PjnUaKPdM7kVbfpxq30gchJfGGh3+mgLpXDHfM3ckHohZk+AHRTQNd1 rae+g6oNAPsnaLlV13Rt9FxApDRXBT7suqZ5872B8+i1AoSatmsb9i+BUjqjp2GtUU/bAsxWXGsN XuPMbIr5S1dfwfvHfUlRSw0EmwcY79vka5W2pAduV4Cusj5TQQMFA2RVkArepovj6KRnup0tjd+c zCuAKYu/ECndDhk9IduqmH7J63QxMKecTiVXBReAKSvtUvIYMQ9plKaCT/wAvNua8P1NojRvCDoo JgAU10WGqyQR/jGt4EJDilCoujm1HDrCPw8wwau0RW39ayaGnzYbi0QyoNkvEZYg1BcQRAS2J3xP dh+4nj9QACCATH4x0FQiUDiAkwPZPRXfryYAGK1fXeY0VsV3kTWVAbMKqUL8xNBKEkuqbIPMliqU EWDka5kjY7OLGIg1Pl08QMTn2aXTbWTer2AyoOUsJ7kFM7wefQLd7uQLMK/2minDnDT+B+zsl3QY Ru6jIpQfgIY5+eznxL0UmwTtf1K6m+V3c5ED83Wdm2jEu9FY3oEZsnsCvE1Il/IGsY7rGoclJ8xH Q1oVYVfNjdaVPZDN0/ZaPhvYZyHcn2O5y+oQj77s3Ls55qpo9tMSrIYny4Qrt6nPud4F70qqQ3aD oPqxe+ycTGNdaal+fCjW1dqA5iOeWsnTXyMaQLu2V+xJK5B+Z9cN4HjXxQZZDEiojkSJ/wDeGQCQ s8nNnwAAAABJRU5ErkJggg== In-Reply-To: (Stefan Monnier's message of "Sat, 18 May 2019 08:56:35 -0400") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 80.91.231.51 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:237080 Archived-At: Stefan Monnier writes: >> I've never used register-val-*, so I have no idea what to do here... >> anybody? > > The new style uses CLOS-style OO-programming instead. I.e. the object > you put into the register should have its own distinctive type > (i.e. not `registerv`) and you define the print/jump/.. methods with > `cl-defmethod`. > > So, here you'd want to use a cl-defstruct to replace the `(vector ...)` > object and then use dispatch on this defstruct's type when > cl-defmethod'ing the register-val-print/jump/... functions. > > Does that make sense? It does indeed. I tried to see whether there was anything that had already gone through this transformation so that I could just cargo cult it, but apparently not, and I don't use any of the packages that needs this transformation, so I think I'll just leave it to somebody else to do the rewrite and testing. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no