[ < ] [ > ]   [ << ] [Plus haut] [ >> ]         [Top] [Table des matières] [Index] [ ? ]

32.5 Finding Syntax Errors On The Fly

Flymake mode is a minor mode that performs on-the-fly syntax checking for many programming and markup languages, including C, C++, Perl, HTML, and TeX/LaTeX. It is somewhat analogous to Flyspell mode, which performs spell checking for ordinary human languages in a similar fashion (voir la section Checking and Correcting Spelling). As you edit a file, Flymake mode runs an appropriate syntax checking tool in the background, using a temporary copy of the buffer. It then parses the error and warning messages, and highlights the erroneous lines in the buffer. The syntax checking tool used depends on the language; for example, for C/C++ files this is usually the C compiler. Flymake can also use build tools such as make for checking complicated projects.

To activate Flymake mode, type M-x flymake-mode. You can move to the errors spotted by Flymake mode with M-x flymake-goto-next-error and M-x flymake-goto-prev-error. To display any error messages associated with the current line, use M-x flymake-display-err-menu-for-current-line.

For more details about using Flymake, see Flymake: (flymake)Top section `Flymake' dans The Flymake Manual.


Ce document a été généré par Eric Reinbold le 23 Février 2009 en utilisant texi2html 1.78.