Re: Format ~<newline> feature request. (Not a bug).
Gary Byers <[email protected]> Tue, 11 Feb 2003 14:22:34 -0700 (MST)
| Newsgroups | gmane.lisp.openmcl.bugs |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 11 Feb 2003, Thomas Russ wrote: > For the DarwinPPC/Mac OS X version of OpenMCL it would be convenient to > have both ~<Linefeed> and ~<Return> work in format strings. The Lisp > reader currently recognizes both linefeed and return as semicolon > comment terminators, but having mixed Unix and Mac Lisp source files > will still cause trouble if the format directive doesn't work with both > line terminators. > See <http://openmcl.clozure.com/Doc/line-termination.html>, especially the discussion of :EXTERNAL-FORMAT. > A workaround is fairly simple, namely to include the following in the > openmcl-init file, but this might be something that should be built in > to at least the Mac version: > > (setf (aref ccl::*format-char-table* (char-code #\Return)) > (aref ccl::*format-char-table* (char-code #\Linefeed))) > > I'm generally leery of treating #\Return and #\Linefeed as being internally equivalent, out of the concern that this would make it harder to write programs that need to view them as being distinct. > -- > Thomas A. Russ, Ph.D. Senior Research Scientist [email protected] > USC/Information Sciences Institute WWW: http://www.isi.edu > 4676 Admiralty Way, Marina del Rey, CA 90292 (310) 448-8775 > > > _______________________________________________ > bug-openmcl mailing list > [email protected] > http://clozure.com/cgi-bin/mailman/listinfo/bug-openmcl > >