From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.bugs Subject: bug#8415: 23.3.50; Extensible Emacs Registers Date: Sun, 26 Jun 2011 14:42:19 +0800 Message-ID: References: <4D9A45CD.4030808@gmail.com> <4D9A7537.5030005@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1309070643 5343 80.91.229.12 (26 Jun 2011 06:44:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 26 Jun 2011 06:44:03 +0000 (UTC) Cc: 8415@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 26 08:43:59 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qaj4Z-0006Rc-1v for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Jun 2011 08:43:59 +0200 Original-Received: from localhost ([::1]:55075 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qaj4Y-0008Ui-5E for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Jun 2011 02:43:58 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54923) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qaj3i-0008MY-7K for bug-gnu-emacs@gnu.org; Sun, 26 Jun 2011 02:43:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qaj3g-0004kQ-Gx for bug-gnu-emacs@gnu.org; Sun, 26 Jun 2011 02:43:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40335) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qaj3f-0004kB-Ie for bug-gnu-emacs@gnu.org; Sun, 26 Jun 2011 02:43:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Qaj3e-0002DT-K3; Sun, 26 Jun 2011 02:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Leo Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Jun 2011 06:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8415 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 8415-submit@debbugs.gnu.org id=B8415.13090705618492 (code B ref 8415); Sun, 26 Jun 2011 06:43:02 +0000 Original-Received: (at 8415) by debbugs.gnu.org; 26 Jun 2011 06:42:41 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qaj3I-0002Cu-2L for submit@debbugs.gnu.org; Sun, 26 Jun 2011 02:42:40 -0400 Original-Received: from mail-iy0-f172.google.com ([209.85.210.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qaj3G-0002Cj-0y for 8415@debbugs.gnu.org; Sun, 26 Jun 2011 02:42:38 -0400 Original-Received: by iye7 with SMTP id 7so3590824iye.3 for <8415@debbugs.gnu.org>; Sat, 25 Jun 2011 23:42:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=rojUhkcdJyXFQQH2A+Qte5TkPuow8SsoY8mBK/a8eE8=; b=Qo7oVGml4rzJjCNhw+RUJ1BaD2RMZY3QToYORzeS0AYJvTXY4G0D5vj4alnRakj/Ua Ceseb0NFfWdiw+IzgndqDKwLL+lDwmHDe2oJs4f26bKVPmCd23ZMhhKBAIeMSqop9BWm SBowV7AdY9VA8sAv/fyIWdSNPfVMmTY26c48s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=u7mgxcZGYbrrJE5gbPRWgX9CcbWtj8tc7RwPR/jZTBygodixVCBOLgsDHMv5rn34XK GQpayGlNhScuT+i0q3wPeq2nemwoLdwNoUOUZ8ZYRk7uKYrhv63dlA+pjkZZ3Zu4lwly Bw0w6rbq+fPrA7DUhpoHBLeJwWq+GfaNL3uuI= Original-Received: by 10.231.115.146 with SMTP id i18mr1551474ibq.22.1309070552020; Sat, 25 Jun 2011 23:42:32 -0700 (PDT) Original-Received: from localhost ([222.130.137.63]) by mx.google.com with ESMTPS id 4sm2380313ibc.42.2011.06.25.23.42.27 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 25 Jun 2011 23:42:30 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Sat, 25 Jun 2011 09:19:50 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3.50 (Mac OS X 10.6.7) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 26 Jun 2011 02:43:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:47483 Archived-At: On 2011-06-25 21:19 +0800, Stefan Monnier wrote: > But I'd pass `val' directly, so the function can use extra fields in > values that inherit from registerv. You could drop the `data' field as > well, at that point. > > This just makes it more OO, and maybe experience would show that it > actually makes things worse (just adds unused extra flexibility), so > I'll let you judge. Either way is OK with me. Thanks for the comments. From my use cases, it seems most of the time only DATA is needed and in other times closure can be used. I have made the commit for wider testing. Leo