Syntax:
stream-line-column stream => NIL
stream-start-line-p stream => result
Arguments and Values:
stream---a character output stream.
result---a a generalized boolean.
Description:
Stream-line-column returns the column number where the next
character will be written on stream, or NIL if
that is not meaningful. The first column on a line is numbered 0.
This function is used in the implementation of pprint and the
format ~T directive.
Stream-start-line-p returns true if stream is known to be positioned at the beginning of a line, otherwise it returns false. It is permissible to always return false This is used in the implementation of stream-fresh-line.
Methods:
Primary Method stream-start-line-p (stream
fundamental-character-output-stream)
Returns true iff stream-line-column returns 0.
Primary Method stream-line-column (stream encapsulating-stream)
Primary Method stream-start-line-p (stream encapsulating-stream)
Calls the same generic-function on the encapsulating-stream-stream of stream.
Side Effects: None.
Affected By: None.
Exceptional Situations: None.
See Also:
"Extensions to Common Lisp", CLIM Stream Classes, Eclipse Stream Classes, stream-fresh-line.
Notes:
While a value of 0 from stream-line-column indicates the beginning of a line, there are cases where stream-start-line-p can be meaningfully implemented when stream-line-column cannot. For example, for a window using variable-width characters, the column number isn't very meaningful, but the beginning of the line does have a clear meaning.
If a method stream-line-column is defined by a programmer
to return nil for some class of stream,
then an applicable method for either stream-start-line-p or
stream-fresh-line should be provided.