From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.devel Subject: Re: Make register easier to hook Date: Tue, 29 Mar 2011 08:52:29 +0800 Message-ID: References: <4D90C741.2090808@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1301359977 13903 80.91.229.12 (29 Mar 2011 00:52:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 Mar 2011 00:52:57 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 29 02:52:53 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q4NAy-0007rH-0g for ged-emacs-devel@m.gmane.org; Tue, 29 Mar 2011 02:52:52 +0200 Original-Received: from localhost ([127.0.0.1]:57340 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q4NAx-0001CL-GL for ged-emacs-devel@m.gmane.org; Mon, 28 Mar 2011 20:52:51 -0400 Original-Received: from [140.186.70.92] (port=43901 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q4NAs-0001Bz-7z for emacs-devel@gnu.org; Mon, 28 Mar 2011 20:52:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q4NAq-00079m-DL for emacs-devel@gnu.org; Mon, 28 Mar 2011 20:52:46 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:50269) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q4NAq-00079a-3j for emacs-devel@gnu.org; Mon, 28 Mar 2011 20:52:44 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q4NAn-0007o5-1T for emacs-devel@gnu.org; Tue, 29 Mar 2011 02:52:41 +0200 Original-Received: from th041092.ip.tsinghua.edu.cn ([59.66.41.92]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Mar 2011 02:52:41 +0200 Original-Received: from sdl.web by th041092.ip.tsinghua.edu.cn with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Mar 2011 02:52:41 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: th041092.ip.tsinghua.edu.cn Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoAgMAAADxkFD+AAAADFBMVEUvT09qWs3/pQD///+J kUVcAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9cBBwMLOd3veKQA AACuSURBVBjTldE9CgIxEAXgB+lEyFUC2wo5ikdZ8DSypxhMY7H9VuIVwlqkGRgnm59VsHGafIQ3 CZlAtmKIRaHETgYa12lqvEsPYKf8wXHsPGfqPaUM0g9aJPKFXkmNQmSDqwzz4Fpgpz+6WAPY2z5o uPJJpu0uypcl4nyCibMLQ8lCiVjayLoQvw5LsVKQuHPRR958HZbOcVsKeepcLxpByjycGvnKmY+c MBvrtyjfe0vmuLvdq/kAAAAASUVORK5CYII= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3.50 (Mac OS X 10.6.7) Cancel-Lock: sha1:z2QmCcbsxHC8oAYm0U0dSjYHJEA= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:137826 Archived-At: On 2011-03-29 01:37 +0800, Daniel Colascione wrote: > Thanks for doing this work. An extensible register system is also on my > wishlist. Why did you decide to use the list for the register structure > instead of the default vector representation? Probably because it looks nicer inside register-alist and there is little performance to lose. > Also, have you considered eliminating the `info' slot? Users can > construct closures over any necessary variables and assign these > closures to the register structure's remaining function slots. After > all, we're getting lexbind, and this feature will make constructing > closures both easy and safe. Now I do. But I fail to see how that makes things more convenient. The closures must be created inside the command/function that creates the register, right? So one won't be able to define functions with defun for the slots. Did I miss something? Leo