From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Code cleanup. Date: Mon, 23 Oct 2006 20:03:37 +0200 Message-ID: <85zmbmhpty.fsf@lola.goethe.zz> References: <85y7r7l00o.fsf@lola.goethe.zz> <85hcxvhref.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1161626842 18209 80.91.229.2 (23 Oct 2006 18:07:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 23 Oct 2006 18:07:22 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 23 20:07:12 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gc4CC-00058b-N7 for ged-emacs-devel@m.gmane.org; Mon, 23 Oct 2006 20:06:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gc4CC-0000VO-9G for ged-emacs-devel@m.gmane.org; Mon, 23 Oct 2006 14:06:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gc4AC-0006Rt-Kr for emacs-devel@gnu.org; Mon, 23 Oct 2006 14:04:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gc4AB-0006PP-0E for emacs-devel@gnu.org; Mon, 23 Oct 2006 14:04:39 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gc4AA-0006Ox-KO for emacs-devel@gnu.org; Mon, 23 Oct 2006 14:04:38 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gc4AA-0003BN-9i for emacs-devel@gnu.org; Mon, 23 Oct 2006 14:04:38 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1Gc4A9-0000J5-6i; Mon, 23 Oct 2006 14:04:37 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 396781CD3543; Mon, 23 Oct 2006 20:03:37 +0200 (CEST) Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: <85hcxvhref.fsf@lola.goethe.zz> (David Kastrup's message of "Mon\, 23 Oct 2006 19\:29\:44 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:61052 Archived-At: David Kastrup writes: > storm@cua.dk (Kim F. Storm) writes: > >> David Kastrup 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