Generic Function | Package: ide | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version

## pretty-printer

Arguments: development-configuration

Returns the value of the pretty-printer property of development-configuration. The current development configuration is the value of `(configuration *ide-system*)` (see configuration and `*ide-system*`).

This property determines whether to re-wrap lines of text when re-indenting (by choosing Edit | Reindent). The value can be `:reindent` and `:pretty-print`.

If the value is `:reindent`, the indentation of each line will be adjusted without rearranging words onto different lines.

If the value is `:pretty-print`, the whole expression will be re-pretty-printed, which may change which words are grouped together on the same line. Warning: when the value is `:pretty-print`, any internal comments in a top-level form will be lost whenever the Edit | Reindent command is used on it, because this option causes the form to be read and then pretty-printed anew into the editor window. Also, the :pretty-print option will not properly reproduce the original source code if the code contains reader macro calls that return objects that do not print readably; for example, `#.(make-position 0 0)` would be reprinted non-readably as `#<position 0 0>`. (Use of such position constants is deprecated; see with-positions.) Therefore, this option is probably useful only for uncommented plain vanilla source code that needs to be re-wrapped.

This value can be set on the Editor tab on the Options dialog (displayed with Tools | Options).

You can examine and change configuration options in general with the inspector. Choose Tools | Inspect System Data | IDE Configuration Options.

Suppose you have this form in an editor:

    (defun foo (a
         b
             c)  ;; args are a b c
              (+ a b
          c))

If pretty-printer is `:reindent`, choosing Edit | Reindent while the form is selected produces:

    (defun foo (a
                b
                c)  ;; args are a b c
       (+ a b
          c)

If pretty-printer is `:pretty-print`, choosing Edit | Reindent while the form is selected produces (notice that the comment has disappeared):

    (defun foo (a b c) (+ a b c))

Copyright (c) 1998-2019, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.2 page.
Created 2012.5.30.

|  | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version