Mercurial > hg > xemacs-beta
comparison man/lispref/streams.texi @ 444:576fb035e263 r21-2-37
Import from CVS: tag r21-2-37
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:36:19 +0200 |
parents | 3ecd8885ac67 |
children | 9fae6227ede5 |
comparison
equal
deleted
inserted
replaced
443:a8296e22da4e | 444:576fb035e263 |
---|---|
1 @c -*-texinfo-*- | 1 @c -*-texinfo-*- |
2 @c This is part of the XEmacs Lisp Reference Manual. | 2 @c This is part of the XEmacs Lisp Reference Manual. |
3 @c Copyright (C) 1990, 1991, 1992, 1993, 1994 Free Software Foundation, Inc. | 3 @c Copyright (C) 1990, 1991, 1992, 1993, 1994 Free Software Foundation, Inc. |
4 @c See the file lispref.texi for copying conditions. | 4 @c See the file lispref.texi for copying conditions. |
5 @setfilename ../../info/streams.info | 5 @setfilename ../../info/streams.info |
6 @node Read and Print, Minibuffers, Debugging, Top | 6 @node Read and Print, Minibuffers, Debugging, Top |
7 @chapter Reading and Printing Lisp Objects | 7 @chapter Reading and Printing Lisp Objects |
8 | 8 |
556 @example | 556 @example |
557 @group | 557 @group |
558 (progn (print 'The\ cat\ in) | 558 (progn (print 'The\ cat\ in) |
559 (print "the hat") | 559 (print "the hat") |
560 (print " came back")) | 560 (print " came back")) |
561 @print{} | 561 @print{} |
562 @print{} The\ cat\ in | 562 @print{} The\ cat\ in |
563 @print{} | 563 @print{} |
564 @print{} "the hat" | 564 @print{} "the hat" |
565 @print{} | 565 @print{} |
566 @print{} " came back" | 566 @print{} " came back" |
567 @print{} | 567 @print{} |
568 @result{} " came back" | 568 @result{} " came back" |
569 @end group | 569 @end group |
570 @end example | 570 @end example |
571 @end defun | 571 @end defun |
572 | 572 |
576 @code{print} does, but it does use quoting characters just like | 576 @code{print} does, but it does use quoting characters just like |
577 @code{print}. It returns @var{object}. | 577 @code{print}. It returns @var{object}. |
578 | 578 |
579 @example | 579 @example |
580 @group | 580 @group |
581 (progn (prin1 'The\ cat\ in) | 581 (progn (prin1 'The\ cat\ in) |
582 (prin1 "the hat") | 582 (prin1 "the hat") |
583 (prin1 " came back")) | 583 (prin1 " came back")) |
584 @print{} The\ cat\ in"the hat"" came back" | 584 @print{} The\ cat\ in"the hat"" came back" |
585 @result{} " came back" | 585 @result{} " came back" |
586 @end group | 586 @end group |
587 @end example | 587 @end example |
787 | 787 |
788 The precision in any of these cases is the number of digits following | 788 The precision in any of these cases is the number of digits following |
789 the decimal point. With @samp{f}, a precision of 0 means to omit the | 789 the decimal point. With @samp{f}, a precision of 0 means to omit the |
790 decimal point. 0 is not allowed with @samp{f} or @samp{g}. | 790 decimal point. 0 is not allowed with @samp{f} or @samp{g}. |
791 | 791 |
792 A value of nil means to use @samp{%.16g}. | 792 A value of @code{nil} means to use @samp{%.16g}. |
793 | 793 |
794 Regardless of the value of @code{float-output-format}, a floating point | 794 Regardless of the value of @code{float-output-format}, a floating point |
795 number will never be printed in such a way that it is ambiguous with an | 795 number will never be printed in such a way that it is ambiguous with an |
796 integer; that is, a floating-point number will always be printed with a | 796 integer; that is, a floating-point number will always be printed with a |
797 decimal point and/or an exponent, even if the digits following the | 797 decimal point and/or an exponent, even if the digits following the |