GNU bug report logs - #8415
23.3.50; Extensible Emacs Registers

Previous Next

Package: emacs;

Reported by: Leo <sdl.web <at> gmail.com>

Date: Sun, 3 Apr 2011 12:30:03 UTC

Severity: wishlist

Tags: patch

Found in version 23.3.50

Fixed in version 24.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #37 received at 8415 <at> debbugs.gnu.org (full text, mbox):

From: Leo <sdl.web <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Davis Herring <herring <at> lanl.gov>, 8415 <at> debbugs.gnu.org,
	Daniel Colascione <dan.colascione <at> gmail.com>
Subject: Re: bug#8415: 23.3.50; Extensible Emacs Registers
Date: Tue, 05 Apr 2011 13:42:20 +0800
On 2011-04-05 11:07 +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. It offers uniformity and
allows access to the value stored in each slot so one can easily build a
new register reusing values from an old one which, in some use cases
(defadvice), can be convenient.

>> Well, there's EIEIO.  It gives you the ability to easily add methods
>> while not baking the dispatch into each one.  On the other hand, it's a
>> quite a bit of code to pull into the core at runtime.
>
> Indeed.

I have thought about using EIEIO in the beginning and ruled it out since
it is required at run time.

Leo




This bug report was last modified 13 years and 323 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.