From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.devel Subject: port-column and carriage return Date: Fri, 27 Aug 2004 11:29:22 +1000 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <87vff5weq5.fsf@zip.com.au> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1093570229 7032 80.91.224.253 (27 Aug 2004 01:30:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 27 Aug 2004 01:30:29 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Aug 27 03:30:20 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C0VZM-00071h-00 for ; Fri, 27 Aug 2004 03:30:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C0Ve0-0002DX-3a for guile-devel@m.gmane.org; Thu, 26 Aug 2004 21:35:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C0Vdv-0002DS-Ia for guile-devel@gnu.org; Thu, 26 Aug 2004 21:35:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C0Vdu-0002DG-Av for guile-devel@gnu.org; Thu, 26 Aug 2004 21:35:02 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C0Vdt-0002DD-Qm for guile-devel@gnu.org; Thu, 26 Aug 2004 21:35:02 -0400 Original-Received: from [61.8.0.85] (helo=mailout2.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C0VYr-0006Q2-KA for guile-devel@gnu.org; Thu, 26 Aug 2004 21:29:50 -0400 Original-Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.0.86]) by mailout2.pacific.net.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id i7R1Tlje025515 for ; Fri, 27 Aug 2004 11:29:47 +1000 Original-Received: from localhost (ppp260F.dyn.pacific.net.au [61.8.38.15]) by mailproxy1.pacific.net.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id i7R1TklY031665 for ; Fri, 27 Aug 2004 11:29:46 +1000 Original-Received: from gg by localhost with local (Exim 3.36 #1 (Debian)) id 1C0VYT-0003AB-00; Fri, 27 Aug 2004 11:29:25 +1000 Original-To: guile-devel@gnu.org Mail-Copies-To: never User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:4045 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:4045 --=-=-= * ports.c (scm_getc, scm_lfwrite): Reset port-column for \r. This will be good for printing an updating status on a tty, where you use #\cr to go back and rewrite the line. Bell and backspace might be good too. --=-=-= Content-Disposition: attachment; filename=ports.c.cr.diff --- ports.c.~1.193.~ 2004-08-20 11:00:31.000000000 +1000 +++ ports.c 2004-08-23 15:18:44.000000000 +1000 @@ -1013,6 +1013,9 @@ case '\n': SCM_INCLINE (port); break; + case '\r': + SCM_ZEROCOL (port); + break; case '\t': SCM_TABCOL (port); break; @@ -1056,6 +1059,9 @@ if (*ptr == '\n') { SCM_INCLINE(port); } + else if (*ptr == '\r') { + SCM_ZEROCOL(port); + } else if (*ptr == '\t') { SCM_TABCOL(port); } --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel --=-=-=--