From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] frames & tabs From: okamoto@granite.cias.osakafu-u.ac.jp MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-bnxjptsxdisvsokbxqyoapluku" Message-Id: <20011011101334.3A2C2199F1@mail.cse.psu.edu> Date: Thu, 11 Oct 2001 19:14:42 +0900 Topicbox-Message-UUID: 05c08758-eaca-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-bnxjptsxdisvsokbxqyoapluku Content-Disposition: inline Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit When do you feel it is neccessary? Sorry, I have enough point yet. Kenji --upas-bnxjptsxdisvsokbxqyoapluku Content-Type: message/rfc822 Content-Disposition: inline Received: from granite.cias.osakafu-u.ac.jp ([192.168.1.3]) by diabase; Thu Oct 11 17:08:00 JST 2001 Received: from elmo.cias.osakafu-u.ac.jp (elmo.cias.osakafu-u.ac.jp [157.16.103.2]) by granite.cias.osakafu-u.ac.jp (8.9.3/8.9.3) with ESMTP id RAA00987; Thu, 11 Oct 2001 17:08:41 +0900 Received: from mail.cse.psu.edu (postfix@psuvax1.cse.psu.edu [130.203.4.6]) by elmo.cias.osakafu-u.ac.jp (8.9.3/3.7W-01090713) with ESMTP id RAA22260; Thu, 11 Oct 2001 17:09:26 +0900 (JST) Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.20.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 00C2819A4D; Thu, 11 Oct 2001 04:09:09 -0400 (EDT) Delivered-To: 9fans@cse.psu.edu Received: from nautilus.escet.urjc.es (nautilus.escet.urjc.es [212.128.4.207]) by mail.cse.psu.edu (CSE Mail Server) with SMTP id A8E9019A41 for <9fans@cse.psu.edu>; Thu, 11 Oct 2001 04:08:33 -0400 (EDT) To: 9fans@cse.psu.edu From: "Fco.J.Ballesteros" MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20011011080833.A8E9019A41@mail.cse.psu.edu> Subject: [9fans] frames & tabs Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.6 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Thu, 11 Oct 2001 10:08:33 +0200 Since tabs are meant to tabulate and I think that means keeping clear columns, I was thinking about a change for libframe to handle tabs like follows: 1. Keep an array of tab positions per frame, each one pointing to the x where the respective column should start. 2. Adjust each tab position as text gets inserted. So that if you insert: a\tb\tc\n You get a b c And when later you insert: ab\tcde\n You get a b c ab cde The first bad thing is that text before the insertion gets `changed' by inserting tabs in the following lines. The second bad thing is that tabs on the left of the line (eg. source code) would still be handled by inserting N spaces. Does it all make sense? --upas-bnxjptsxdisvsokbxqyoapluku--