lispdoc - results for print

(print object &optional stream)
Function: Output a newline, the mostly READable printed representation of OBJECT, and space to the specified STREAM.
Example:
(defun simplifier ()
  "Read a mathematical expression, simplify it, and print the result."
  (loop (print 'simplifier>)
        (print (simp (read)))))
Mentioned in:
CLtL2 - 10.2. The Print Name
CLtL2 - 12.9. Random Numbers
CLtL2 - 20.2. The Top-Level Loop
CLtL2 - 21.1. Standard Streams
CLtL2 - 22.1. Printed Representation of Lisp Objects
CLtL2 - 22.1.3. Macro Characters
CLtL2 - 22.3.1. Output to Character Streams
CLtL2 - 25.3. Debugging Tools
CLtL2 - 27.3. Dynamic Control of the Arrangement of Output
CLtL2 - 28.2. Functions in the Programmer Interface
CLtL2 - 29.2. Changes in Terminology
CLtL2 - 3. Scope and Extent
CLtL2 - 5.3.3. Control of Time of Evaluation
CLtL2 - 7.11. Dynamic Non-Local Exits
CLtL2 - A.2.5. Collectors
HyperSpec - 22.2.1.4 Pretty Print Dispatch Tables
HyperSpec - Function WRITE, PRIN1, PRINT, PPRINT, PRINC
On Lisp - Adding Prolog Features
On Lisp - An Interpreter
On Lisp - Chapter _28
On Lisp - Destructuring in Parameter Lists
On Lisp - Extending Lisp
On Lisp - New Implementation
On Lisp - Other Structures
On Lisp - When Capture Occurs
PCL - breaking open the black box
PCL - file output
PCL - formatting lisp code
PCL - other kinds of io
PCL - reading file data
PCL - saving and loading the database
PCL - vectors
Successful Lisp - chapter05
Successful Lisp - chapter09
Successful Lisp - chapter19
Successful Lisp - chapter30
Successful Lisp - lesson 11
Successful Lisp - tail recursion
(pprint object &optional stream)
Function: Prettily output OBJECT preceded by a newline.
 Mentioned in:
CLtL2 - 22.3.1. Output to Character Streams
CLtL2 - 27.3. Dynamic Control of the Arrangement of Output
CLtL2 - 27.6. Pretty Printing Dispatch Tables
CLtL2 - 28.2. Functions in the Programmer Interface
CLtL2 - A.2.5. Collectors
HyperSpec - Function WRITE, PRIN1, PRINT, PPRINT, PRINC
On Lisp - Testing Macroexpansion
PCL - file output
(pprint-tab kind colnum colinc &optional stream)
Function: If STREAM (which defaults to *STANDARD-OUTPUT*) is a pretty-printing stream, perform tabbing based on KIND, otherwise do nothing. KIND can be one of: :LINE - Tab to column COLNUM. If already past COLNUM tab to the next multiple of COLINC. :SECTION - Same as :LINE, but count from the start of the current section, not the start of the line. :LINE-RELATIVE - Output COLNUM spaces, then tab to the next multiple of COLINC. :SECTION-RELATIVE - Same as :LINE-RELATIVE, but count from the start of the current section, not the start of the line.
 Mentioned in:
CLtL2 - 27.3. Dynamic Control of the Arrangement of Output
HyperSpec - Function PPRINT-TAB
(pprint-pop)
Function: Return the next element from LIST argument to the closest enclosing use of PPRINT-LOGICAL-BLOCK, automatically handling *PRINT-LENGTH* and *PRINT-CIRCLE*. Can only be used inside PPRINT-LOGICAL-BLOCK. If the LIST argument to PPRINT-LOGICAL-BLOCK was NIL, then nothing is popped, but the *PRINT-LENGTH* testing still happens.
 Mentioned in:
CLtL2 - 27.3. Dynamic Control of the Arrangement of Output
CLtL2 - 27.4. Format Directive Interface
HyperSpec - Local Macro PPRINT-POP
(pprint-fill stream list &optional (colon? t) atsign?)
Function: Output LIST to STREAM putting :FILL conditional newlines between each element. If COLON? is NIL (defaults to T), then no parens are printed around the output. ATSIGN? is ignored (but allowed so that PPRINT-FILL can be used with the ~/.../ format directive.
 Mentioned in:
CLtL2 - 27.3. Dynamic Control of the Arrangement of Output
CLtL2 - 27.4. Format Directive Interface
CLtL2 - 27.6. Pretty Printing Dispatch Tables
HyperSpec - Function PPRINT-FILL, PPRINT-LINEAR, PPRINT-TABULAR
*print-case
 
 Mentioned in:
HyperSpec - Variable *PRINT-CASE
*load-print*
Variable: the default for the :PRINT argument to LOAD
 Mentioned in:
CLtL2 - 23.4. Loading Files
HyperSpec - Variable *LOAD-PRINT*, *LOAD-VERBOSE
(print-object object stream)
Undocumented
 Mentioned in:
CLtL2 - 19.5. Defstruct Options
CLtL2 - 22.1.2. Parsing of Numbers and Symbols
CLtL2 - 22.1.6. What the Print Function Produces
CLtL2 - 22.3.1. Output to Character Streams
CLtL2 - 25.3. Debugging Tools
CLtL2 - 27.6. Pretty Printing Dispatch Tables
CLtL2 - 28.2. Functions in the Programmer Interface
CLtL2 - 29.3.18. Printing Conditions
HyperSpec - 22.1.3 Default Print-Object Methods
HyperSpec - Standard Generic Function PRINT-OBJECT
PCL - slot specifiers
PCL - the heart of a spam filter
PCL - whats next
*print-base*
Variable: The output base for RATIONALs (including integers).
 Mentioned in:
CLtL2 - 22.1.6. What the Print Function Produces
CLtL2 - 22.3.1. Output to Character Streams
CLtL2 - 28.2. Functions in the Programmer Interface
HyperSpec - Variable *PRINT-BASE*, *PRINT-RADIX
*print-case*
Variable: What case should the printer should use default?
Example:
(defun current-case-mode () (or *print-case*))
Mentioned in:
CLtL2 - 1.2.7. Overview of Syntax
CLtL2 - 22.1.5. The Readtable
CLtL2 - 22.1.6. What the Print Function Produces
CLtL2 - 22.3.1. Output to Character Streams
CLtL2 - 28.2. Functions in the Programmer Interface
*print-array
 
 Mentioned in:
HyperSpec - Variable *PRINT-ARRAY
*print-radix
 
 Mentioned in:
HyperSpec - Variable *PRINT-BASE*, *PRINT-RADIX
*print-lines
 
 Mentioned in:
HyperSpec - Variable *PRINT-LINES
*print-radix*
Variable: Should base be verified when printing RATIONALs?
 Mentioned in:
CLtL2 - 22.1.6. What the Print Function Produces
CLtL2 - 22.3.1. Output to Character Streams
CLtL2 - 28.2. Functions in the Programmer Interface
*print-lines*
Variable: The maximum number of lines to print per object.
 Mentioned in:
CLtL2 - 22.1.6. What the Print Function Produces
CLtL2 - 22.3.1. Output to Character Streams
CLtL2 - 27.2. Pretty Printing Control Variables
CLtL2 - 27.6. Pretty Printing Dispatch Tables
*print-level*
Variable: How many levels should be printed before abbreviating with "#"?
Example:
(defun print-var (var stream depth)
  (if (or
       (and *print-level*
            (>= depth *print-level*))
       (var-p (deref var)))
      (format stream "?~a" (var-name var))
      (write var :stream stream)))
Mentioned in:
CLtL2 - 19.5. Defstruct Options
CLtL2 - 22.1.4. Standard Dispatching Macro Character Syntax
CLtL2 - 22.1.6. What the Print Function Produces
CLtL2 - 22.3.1. Output to Character Streams
CLtL2 - 27.3. Dynamic Control of the Arrangement of Output
CLtL2 - 27.4. Format Directive Interface
CLtL2 - 27.6. Pretty Printing Dispatch Tables
CLtL2 - 28.2. Functions in the Programmer Interface
HyperSpec - Variable *PRINT-LEVEL*, *PRINT-LENGTH
(pprint-indent relative-to n &optional stream)
Function: Specify the indentation to use in the current logical block if STREAM (which defaults to *STANDARD-OUTPUT*) is a pretty-printing stream and do nothing if not. (See PPRINT-LOGICAL-BLOCK.) N is the indentation to use (in ems, the width of an ``m'') and RELATIVE-TO can be either: :BLOCK - Indent relative to the column the current logical block started on. :CURRENT - Indent relative to the current column. The new indentation value does not take effect until the following line break.
 Mentioned in:
CLtL2 - 27.1. Introduction
CLtL2 - 27.3. Dynamic Control of the Arrangement of Output
HyperSpec - Function PPRINT-INDENT
(pprint-linear stream list &optional (colon? t) atsign?)
Function: Output LIST to STREAM putting :LINEAR conditional newlines between each element. If COLON? is NIL (defaults to T), then no parens are printed around the output. ATSIGN? is ignored (but allowed so that PPRINT-LINEAR can be used with the ~/.../ format directive.
 Mentioned in:
CLtL2 - 27.3. Dynamic Control of the Arrangement of Output
CLtL2 - 27.4. Format Directive Interface
CLtL2 - 27.6. Pretty Printing Dispatch Tables
HyperSpec - Function PPRINT-FILL, PPRINT-LINEAR, PPRINT-TABULAR
*print-array*
Variable: Should the contents of arrays be printed?
 Mentioned in:
CLtL2 - 22.1.6. What the Print Function Produces
CLtL2 - 22.3.1. Output to Character Streams
CLtL2 - 28.2. Functions in the Programmer Interface
*print-circle
 
 Mentioned in:
HyperSpec - Variable *PRINT-CIRCLE
*print-escape
 
 Mentioned in:
HyperSpec - Variable *PRINT-ESCAPE
*print-gensym
 
 Mentioned in:
HyperSpec - Variable *PRINT-GENSYM
*print-length
 
 Mentioned in:
HyperSpec - Variable *PRINT-LEVEL*, *PRINT-LENGTH
*print-pretty
 
 Mentioned in:
HyperSpec - Variable *PRINT-PRETTY
*print-length*
Variable: How many elements at any level should be printed before abbreviating with "..."?
 Mentioned in:
CLtL2 - 22.1.2. Parsing of Numbers and Symbols
CLtL2 - 22.1.4. Standard Dispatching Macro Character Syntax
CLtL2 - 22.1.6. What the Print Function Produces
CLtL2 - 22.3.1. Output to Character Streams
CLtL2 - 27.3. Dynamic Control of the Arrangement of Output
CLtL2 - 27.4. Format Directive Interface
CLtL2 - 27.6. Pretty Printing Dispatch Tables
CLtL2 - 28.2. Functions in the Programmer Interface
(pprint-tabular stream list &optional (colon? t) atsign? tabsize)
Function: Output LIST to STREAM tabbing to the next column that is an even multiple of TABSIZE (which defaults to 16) between each element. :FILL style conditional newlines are also output between each element. If COLON? is NIL (defaults to T), then no parens are printed around the output. ATSIGN? is ignored (but allowed so that PPRINT-TABULAR can be used with the ~/.../ format directive.
 Mentioned in:
CLtL2 - 27.3. Dynamic Control of the Arrangement of Output
CLtL2 - 27.4. Format Directive Interface
CLtL2 - 27.6. Pretty Printing Dispatch Tables
HyperSpec - Function PPRINT-FILL, PPRINT-LINEAR, PPRINT-TABULAR
*print-pretty*
Variable: Should pretty printing be used?
Example:
(defun s. (&rest args)
  "Concatenate ARGS as strings"
  (declare (optimize (speed 3)))
  (let ((*print-pretty* nil))
    (with-output-to-string (out)
      (dolist (arg args) (princ arg out)))))
Mentioned in:
CLtL2 - 19.5. Defstruct Options
CLtL2 - 22.1.6. What the Print Function Produces
CLtL2 - 22.3.1. Output to Character Streams
CLtL2 - 27.2. Pretty Printing Control Variables
CLtL2 - 27.4. Format Directive Interface
CLtL2 - 27.6. Pretty Printing Dispatch Tables
CLtL2 - 28.2. Functions in the Programmer Interface
PCL - beyond simple macros
*print-circle*
Variable: Should we use #n= and #n# notation to preserve uniqueness in general (and circularity in particular) when printing?
 Mentioned in:
CLtL2 - 15.2. Lists
CLtL2 - 19.5. Defstruct Options
CLtL2 - 22.1.6. What the Print Function Produces
CLtL2 - 22.3.1. Output to Character Streams
CLtL2 - 27.3. Dynamic Control of the Arrangement of Output
CLtL2 - 27.4. Format Directive Interface
CLtL2 - 27.6. Pretty Printing Dispatch Tables
CLtL2 - 28.2. Functions in the Programmer Interface
CLtL2 - 9.1. Declaration Syntax
*print-gensym*
Variable: Should #: prefixes be used when printing symbols with null SYMBOL-PACKAGE?
 Mentioned in:
CLtL2 - 22.1.6. What the Print Function Produces
CLtL2 - 22.3.1. Output to Character Streams
CLtL2 - 28.2. Functions in the Programmer Interface
*print-escape*
Variable: Should we print in a reasonably machine-readable way? (possibly overridden by *PRINT-READABLY*)
 Mentioned in:
CLtL2 - 19.5. Defstruct Options
CLtL2 - 22.1.5. The Readtable
CLtL2 - 22.1.6. What the Print Function Produces
CLtL2 - 22.3.1. Output to Character Streams
CLtL2 - 27.6. Pretty Printing Dispatch Tables
CLtL2 - 28.2. Functions in the Programmer Interface
CLtL2 - 29.3.18. Printing Conditions
CLtL2 - 29.4.5. Defining Conditions
CLtL2 - 29.4.7. Establishing Restarts
(pprint-newline kind &optional stream)
Function: Output a conditional newline to STREAM (which defaults to *STANDARD-OUTPUT*) if it is a pretty-printing stream, and do nothing if not. KIND can be one of: :LINEAR - A line break is inserted if and only if the immediatly containing section cannot be printed on one line. :MISER - Same as LINEAR, but only if ``miser-style'' is in effect. (See *PRINT-MISER-WIDTH*.) :FILL - A line break is inserted if and only if either: (a) the following section cannot be printed on the end of the current line, (b) the preceding section was not printed on a single line, or (c) the immediately containing section cannot be printed on one line and miser-style is in effect. :MANDATORY - A line break is always inserted. When a line break is inserted by any type of conditional newline, any blanks that immediately precede the conditional newline are ommitted from the output and indentation is introduced at the beginning of the next line. (See PPRINT-INDENT.)
 Mentioned in:
CLtL2 - 27.1. Introduction
CLtL2 - 27.3. Dynamic Control of the Arrangement of Output
CLtL2 - 27.4. Format Directive Interface
HyperSpec - Function PPRINT-NEWLINE
*compile-print*
Variable: The default for the :PRINT argument to COMPILE-FILE.
Example:
(defun create-make-foo (dd)
  (let ((*compile-print* nil))
    (funcall
     (compile nil
              `(lambda ,nil
                 ,@(cmu-struct-defs dd))))
    (find-class (dd-name dd))))
Mentioned in:
CLtL2 - 25.1. The Compiler
HyperSpec - Variable *COMPILE-PRINT*, *COMPILE-VERBOSE
(pprint-dispatch object &optional (table *print-pprint-dispatch*))
Undocumented
 Mentioned in:
CLtL2 - 27.6. Pretty Printing Dispatch Tables
HyperSpec - Function PPRINT-DISPATCH
*print-readably
 
 Mentioned in:
HyperSpec - Variable *PRINT-READABLY
*print-readably*
Variable: If true, all objects will be printed readably. If readable printing is impossible, an error will be signalled. This overrides the value of *PRINT-ESCAPE*.
 Mentioned in:
CLtL2 - 22.1.2. Parsing of Numbers and Symbols
CLtL2 - 22.1.4. Standard Dispatching Macro Character Syntax
CLtL2 - 22.1.6. What the Print Function Produces
CLtL2 - 22.3.1. Output to Character Streams
CLtL2 - 27.6. Pretty Printing Dispatch Tables
CLtL2 - 28.2. Functions in the Programmer Interface
PCL - file output
PCL - whats next
Successful Lisp - chapter06
(s-xml:print-xml dom &key (stream t) (pretty nil) (input-type lxml) (header))
Function: Generate XML output on a character stream (t by default) from a DOM of input-type (:lxml by default), optionally pretty printing (off by default), or adding a header (none by default)
  
print-not-readable
Undocumented
 Mentioned in:
CLtL2 - 22.1.2. Parsing of Numbers and Symbols
CLtL2 - 22.1.6. What the Print Function Produces
CLtL2 - 22.3.1. Output to Character Streams
HyperSpec - Condition Type PRINT-NOT-READABLE
*print-miser-width
 
 Mentioned in:
HyperSpec - Variable *PRINT-MISER-WIDTH
(set-pprint-dispatch type function &optional (priority 0)
 (table *print-pprint-dispatch*))
Undocumented
 Mentioned in:
CLtL2 - 27.1. Introduction
CLtL2 - 27.3. Dynamic Control of the Arrangement of Output
CLtL2 - 27.6. Pretty Printing Dispatch Tables
HyperSpec - Function SET-PPRINT-DISPATCH
*print-miser-width*
Variable: If the remaining space between the current column and the right margin is less than this, then print using ``miser-style'' output. Miser style conditional newlines are turned on, and all indentations are turned off. If NIL, never use miser mode.
 Mentioned in:
CLtL2 - 22.1.6. What the Print Function Produces
CLtL2 - 22.3.1. Output to Character Streams
CLtL2 - 27.2. Pretty Printing Control Variables
CLtL2 - 27.3. Dynamic Control of the Arrangement of Output
*print-right-margin
 
 Mentioned in:
HyperSpec - Variable *PRINT-RIGHT-MARGIN
(pprint-logical-block
 (stream-symbol object &key (prefix nil prefixp)
  (per-line-prefix nil per-line-prefix-p) (suffix  suffixp))
 &body body)
Function: Group some output into a logical block. STREAM-SYMBOL should be either a stream, T (for *TERMINAL-IO*), or NIL (for *STANDARD-OUTPUT*). The printer control variable *PRINT-LEVEL* is automatically handled.
 Mentioned in:
CLtL2 - 27.1. Introduction
CLtL2 - 27.3. Dynamic Control of the Arrangement of Output
CLtL2 - 27.4. Format Directive Interface
HyperSpec - Macro PPRINT-LOGICAL-BLOCK
*print-right-margin*
Variable: The position of the right margin in ems (for pretty-printing).
 Mentioned in:
CLtL2 - 22.1.6. What the Print Function Produces
CLtL2 - 22.3.1. Output to Character Streams
CLtL2 - 27.2. Pretty Printing Control Variables
(copy-pprint-dispatch &optional (table *print-pprint-dispatch*))
Undocumented
 Mentioned in:
CLtL2 - 27.6. Pretty Printing Dispatch Tables
HyperSpec - Function COPY-PPRINT-DISPATCH
(s-xml:print-identifier identifier stream &optional as-attribute)
Function: Print identifier on stream using namespace conventions
  
*print-pprint-dispatch
 
 Mentioned in:
HyperSpec - Variable *PRINT-PPRINT-DISPATCH
*print-pprint-dispatch*
Variable: The pprint-dispatch-table that controls how to pretty-print objects.
 Mentioned in:
CLtL2 - 22.1.6. What the Print Function Produces
CLtL2 - 22.3.1. Output to Character Streams
CLtL2 - 27.2. Pretty Printing Control Variables
CLtL2 - 27.6. Pretty Printing Dispatch Tables
(print-unreadable-object (object stream &key type identity) &body body)
Function: Output OBJECT to STREAM with "#<" prefix, ">" suffix, optionally with object-type prefix and object-identity suffix, and executing the code in BODY to provide possible further output.
 Mentioned in:
CLtL2 - 2.14. Unreadable Data Objects
CLtL2 - 22.1.4. Standard Dispatching Macro Character Syntax
CLtL2 - 22.1.6. What the Print Function Produces
CLtL2 - 22.3.1. Output to Character Streams
CLtL2 - 9.1. Declaration Syntax
HyperSpec - Macro PRINT-UNREADABLE-OBJECT
PCL - the heart of a spam filter
PCL - whats next
Successful Lisp - chapter06
(s-xml:print-xml-dom dom input-type stream pretty level)
Function: Generate XML output on a character stream from a DOM of input-type, optionally pretty printing using level
  
(s-xml:print-string-xml string stream &key (start 0) end)
Function: Write the characters of string to stream using basic XML conventions
  
(s-xml:print-xml-string dom &key (pretty nil) (input-type lxml))
Function: Generate XML output to a string from a DOM of input-type (:lxml by default), optionally pretty printing (off by default)
  
(print-not-readable-object condition)
Function: Return the offending thread that the THREAD-ERROR pertains to.
 Mentioned in:
HyperSpec - Function PRINT-NOT-READABLE-OBJECT
(trivial-backtrace:print-condition condition stream)
Function: Print `condition` to `stream` using the pretty printer.
  
(trivial-backtrace:print-backtrace error &key (output *debug-io*)
 (if-exists append) (verbose nil))
Function: Send a backtrace for the error `error` to `output`. The keywords arguments are: * :output - where to send the output. This can be: * a string (which is assumed to designate a pathname) * an open stream * nil to indicate that the backtrace information should be returned as a string * if-exists - what to do if output designates a pathname and the pathname already exists. Defaults to :append. * verbose - if true, then a message about the backtrace is sent to \*terminal-io\*. Defaults to `nil`. If the `output` is nil, the returns the backtrace output as a string. Otherwise, returns nil.
  
(pprint-exit-if-list-exhausted)
Function: Cause the closest enclosing use of PPRINT-LOGICAL-BLOCK to return if its list argument is exhausted. Can only be used inside PPRINT-LOGICAL-BLOCK, and only when the LIST argument to PPRINT-LOGICAL-BLOCK is supplied.
 Mentioned in:
CLtL2 - 27.3. Dynamic Control of the Arrangement of Output
CLtL2 - 27.4. Format Directive Interface
HyperSpec - Local Macro PPRINT-EXIT-IF-LIST-EXHAUSTED
(trivial-backtrace:print-backtrace-to-stream stream)
Function: Send a backtrace of the current error to stream. Stream is assumed to be an open writable file stream or a string-output-stream. Note that `print-backtrace-to-stream` will print a backtrace for whatever the Lisp deems to be the *current* error.