All Manuals > LispWorks Editor User Guide > 4 Editing Lisp Programs > 4.9 Evaluation and compilation

NextPrevUpTopContentsIndex

4.9.4 Compilation commands

Compile Defun

Editor Command

Argument: None
Key sequence: Ctrl+Shift+C

Compiles the current top-level form. If the current point is between two forms, the previous form is evaluated.

If the form is a defvar form, then the command may first make the variable unbound, according to the value of evaluate-defvar-action, and hence assign the new value.This is useful because, whilst defvar does not reassign the value of a bound variable, when editing a program it is likely that you do want the new value.

Compile Region

Editor Command

Argument: None
Key sequence: Ctrl+Shift+R

Compiles the Lisp forms in the region between the current point and the mark.

Compile File

Editor Command

Argument: file
Key sequence: None

Compiles file unconditionally, with cl:compile-file .

No checking is done on write dates for the source and binary files, to see if the file needs to be compiled. Also, no checking is done to see if there is a buffer for the file that should first be saved.

Compile Buffer

Editor Command

Argument: None
Key sequence: Ctrl+Shift+B

Reads, compiles and then executes in turn each of the Lisp forms in the current buffer.

Compile Buffer File

Editor Command

Argument: None
Key sequence: None

Compiles the source file in the current buffer as if by Compile File, but checks the file first. If its associated binary (fasl) file is older than the source file or does not exist then the file is compiled. If the binary file is up to date, the user is asked whether the file should be compiled anyway. When compile-buffer-file-confirm is true, the user is always asked for confirmation, even when the date of the source file is later than that of the binary file.

A prefix argument causes the file to be compiled without checking the date or existence of the binary file.

compile-buffer-file-confirm

Editor Variable

Default value: t

Determines whether Compile Buffer File should prompt for a compilation to proceed. If the value is true, the user is always prompted for confirmation.

Compile Buffer Changed Definitions

Editor Command

Argument: None
Key sequence: None

Compiles definitions that have been changed in the current buffer during the current LispWorks session (use Buffer Changed Definitions to see which definitions have changed). A prefix argument equal to the value of prefix-argument-default causes compilation of definitions changed since last compiled. A prefix argument of 1 causes compilation of definitions changed since last saved.

Compile Changed Definitions

Editor Command

Argument: None
Key sequence: None

Compiles definitions in all Lisp buffers that have been changed during the current LispWorks session. The effect of prefixes is the same as for Compile Buffer Changed Definitions.

Compile System

Editor Command

Argument: system
Key sequence: None

Compiles all files in the system system .

If ASDF is loaded and the LispWorks tools are configured to use it, then this command works with ASDF systems as well as those defined by lispworks:defsystem .

Compile System Changed Definitions

Editor Command

Argument: system
Key sequence: None

Compiles definitions that have been changed in system during the current LispWorks session.

Disassemble Definition

Editor Command

Argument: definition
Key sequence: None

Outputs assembly code for definition to the Output window, compiling it first if necessary. The name of the current top-level definition is offered as a default value for definition .

Edit Recognized Source

Editor Command

Argument: None
Key sequence: Ctrl+X ,

Edit the source of the next compiler message, warning or error. It should be used while viewing the Output window. Without a prefix argument, it searches forwards in the Output window until it finds text which it recognizes as a compiler message, warning or error, and then shows the source code associated with that message. With a prefix argument, it searches backwards.


LispWorks Editor User Guide (Unix version) - 3 May 2011

NextPrevUpTopContentsIndex