Lugaru's Epsilon
Programmer's
Editor

Context:
Epsilon User's Manual and Reference
   . . .
   Commands by Topic
      Getting Help
      Moving Around
      Changing Text
      . . .
      Miscellaneous
   Command Reference
      . . .
      compare-to-prior-version
      compare-windows
      compile-buffer
      conf-mode
      configure-epsilon
      . . .
   Variable Reference
      abort-file-io
      abort-file-matching
      abort-key
      . . .
      yank-rectangle-to-corner
   . . .

Previous   Up    Next
compare-windows  Command Reference   conf-mode


Epsilon User's Manual and Reference > Command Reference >

compile-buffer

Compile the current buffer as appropriate.  Alt-F3

This command tries to compile the current buffer. It uses the compiling command appropriate for the current buffer. For .c files, this is contained in the compile-c-cmd variable. For .cpp or .cxx files, this is contained in the compile-cpp-cmd variable. For .e files, this is contained in the compile-eel-cmd variable. When you compile an EEL file successfully, Epsilon automatically loads the resulting bytecode file.

If the current buffer has no compilation command associated with it, Epsilon will prompt for the appropriate command and record it in the buffer-specific variable compile-buffer-cmd. For C, C++, and EEL files, Epsilon automatically sets this to refer to the variables listed above.

Before and after running the compilation command, Epsilon does any mode-specific operations needed, by calling the buffer-specific function pointer variables pre_compile_hook and post_compile_hook, respectively. An EEL programmer can use these hooks to make Epsilon perform additional actions each time you compile buffers.

The function pointed to by post_compile_hook receives a status code returned by the do_compile( ) subroutine, and the number of the buffer to be compiled. See that function's definition in proc.e for details. The function pointed to by pre_compile_hook receives no parameters. If either variable holds a null pointer, Epsilon doesn't call it.

More info:

Compiling From Epsilon
concurrent-compile



Previous   Up    Next
compare-windows  Command Reference   conf-mode


Lugaru Copyright (C) 1984, 2012 Lugaru Software Ltd. All Rights Reserved.