[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Code cleanup.

From: David Kastrup
Subject: Re: Code cleanup.
Date: Mon, 23 Oct 2006 20:03:37 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

David Kastrup <address@hidden> writes:

> address@hidden (Kim F. Storm) writes:
>> David Kastrup <address@hidden> writes:
>>> But it would probably be saner if tab-width were extended to
>>> allow, say, a cons-cell of initial offset and tab-width.
>> Or a list (1 9 17 t)  
>> (where t means to repeat tabs every "difference between last two
>> elements).
> Or a list (8 . #0) for repeated differences of 8, and (9 8 . #1) for
> that of 9.  Too bad that this print syntax of
> (let ((n (list 9 8))) (setcdr (cdr n) (cdr n)) n)
> is not accepted by the Lisp reader.
> Circular lists are not really the most natural Lisp constructs...

Well, but one could still allow a thing like '(1 9 17 . 8) namely have
the first CDR that is not a list indicate the offset to use from then
on.  In that way, just a single 8 will then "naturally" correspond to
the normal case, and '(1 . 8) would be fine for the diff case.

David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

[Prev in Thread] Current Thread [Next in Thread]