# compile(3)

[Home] [Commands] [Variables] [Macro-Dev] [Glossary]

## NAME

compile - Start a compilation process

## SYNOPSIS

n compile "compile-command"

## DESCRIPTION

compile gets and executes the compile command using a pipe execution (incremental pipe on UNIX platforms), loading the output into a buffer called "*compile*", with go to error parsing using the command get-next-line(2). The default compile execution is set by variable %compile-com(5), the error parsing is setup using the command add-next-line(2).

Before the compile command is executed save-some-buffers(2) is executed to allow the user to ensure that all relevant buffers are saved. If an argument is given to compile then it is passed on to this command, so if an argument of 0 is given, all buffers are automatically saved.

By default the output lines in the window wrap, wrapping may be disabled during compilations by redefining the wrap mode as follows. Create the file `myipipe.emf` to redefine the behavior and add the following lines:-

    ; Macro to redefine the wrapping behavior of the *compile* buffer
    0 define-macro my-fhook-ipipe
        !if &seq $buffer-bname "*compile*"
            -1 buffer-mode "wrap"
        !endif
    !emacro

## NOTES

compile is a macro defined in `tools.emf`.

## SEE ALSO

add-next-line(2), %compile-com(5), get-next-line(2), save-some-buffers(2), grep(3).

(c) Copyright JASSPA 2009
Last Modified: 2009/08/29
Generated On: 2009/10/12

</HMTL>