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: Wed, 06 Apr 2011 13:00:04 +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; charset=us-ascii X-Trace: dough.gmane.org 1302068038 3035 80.91.229.12 (6 Apr 2011 05:33:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 6 Apr 2011 05:33:58 +0000 (UTC) Cc: Davis Herring , Daniel Colascione , 8415@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 06 07:33:52 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1Q7LNH-0001jw-07 for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Apr 2011 07:33:52 +0200 Original-Received: from localhost ([127.0.0.1]:43447 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q7L5f-0001lH-Gh for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Apr 2011 01:15:39 -0400 Original-Received: from [140.186.70.92] (port=36286 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q7L5P-0000le-BF for bug-gnu-emacs@gnu.org; Wed, 06 Apr 2011 01:15:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q7KxY-0000Og-G8 for bug-gnu-emacs@gnu.org; Wed, 06 Apr 2011 01:07:17 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40106) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q7KxY-0000Oc-9L for bug-gnu-emacs@gnu.org; Wed, 06 Apr 2011 01:07:16 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Q7KrW-0005RG-S7; Wed, 06 Apr 2011 01:01: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: Wed, 06 Apr 2011 05:01: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.130206602420857 (code B ref 8415); Wed, 06 Apr 2011 05:01:02 +0000 Original-Received: (at 8415) by debbugs.gnu.org; 6 Apr 2011 05:00:24 +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 1Q7Kqt-0005QL-Nm for submit@debbugs.gnu.org; Wed, 06 Apr 2011 01:00:24 -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 1Q7Kqr-0005QA-TN for 8415@debbugs.gnu.org; Wed, 06 Apr 2011 01:00:22 -0400 Original-Received: by iye19 with SMTP id 19so1052304iye.3 for <8415@debbugs.gnu.org>; Tue, 05 Apr 2011 22:00:16 -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=0W63zKyBvP7hVeiKvHV91pdnvNnWIDDnZatrPOgPARw=; b=GOSMLUN1TWKicwrixA+XlsHPTXeikLtfOtJ+7Mt4GgwhxLIwIIbip4Mh2gwlPak0zO VnDYlt/4e96c/Ws6xFWH1zd5NIE/PfDlrjYybLI/KjWl2DIQZTHI+Zk7xKZw0aXPtjRF tOSvJszvkc4fsAyjcsX7OlJrO9E/XZtG55MAU= 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=dfutmpVsbC5HoRGZjWLVh/WzM8wTqPKS4bgXmHL4epdTXO/ofF8KDlZhh/Wb95Bv3Q hvlz3vpqFfHPIt80os5zTP5kL0Py0bK1uriS1oaTvGsf2QCDJFSnq+H1fRRkky21xnFN jnz3GqB7ZL5U6j0iltvhlIuQvaMwf8XGTQvSA= Original-Received: by 10.42.141.198 with SMTP id p6mr849696icu.100.1302066016253; Tue, 05 Apr 2011 22:00:16 -0700 (PDT) Original-Received: from th041153.ip.tsinghua.edu.cn (th041093.ip.tsinghua.edu.cn [59.66.41.93]) by mx.google.com with ESMTPS id mv26sm156650ibb.11.2011.04.05.22.00.10 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 05 Apr 2011 22:00:14 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Tue, 05 Apr 2011 09:50:16 -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: Wed, 06 Apr 2011 01:01: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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:45660 Archived-At: On 2011-04-05 21:50 +0800, Stefan Monnier wrote: >>> The end point is pretty much the same, but all the intermediate steps >>> are safe and easy to check. >> I think a structure still is a better approach. > > I already agreed in the previous message. > > > Stefan Sorry if I have missed that. The alternative you propose, i.e. making the value a structure is actually the first approach I attempted in http://article.gmane.org/gmane.emacs.devel/137781. 1. all existing register-creating commands need to use the new implementation, so the patch won't be any smaller. 2. needs explicitly creating a register-value struct i.e. (register-set ?a (register-value-make ....)). If change register-set to implicitly convert to a struct then it has the same incompatible change as I proposed in this bug report. So the alternative doesn't offer anything better. If you are agreeable to the patch in http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8415#19, I am ready to watch closely for any incoming bugs that related to register.el and fix them as quickly as I can. Leo