Mercurial > emacs
comparison doc/misc/flymake.texi @ 85114:5039706521c9
Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-875
author | Miles Bader <miles@gnu.org> |
---|---|
date | Tue, 09 Oct 2007 08:52:57 +0000 |
parents | 3d431f1997d8 |
children | 2cce56fd7361 |
comparison
equal
deleted
inserted
replaced
85113:82b4a12fd080 | 85114:5039706521c9 |
---|---|
311 @itemx flymake-check-file-limit | 311 @itemx flymake-check-file-limit |
312 Used when looking for a master file. @xref{Locating a master file}. | 312 Used when looking for a master file. @xref{Locating a master file}. |
313 | 313 |
314 @item flymake-err-line-patterns | 314 @item flymake-err-line-patterns |
315 Patterns for error/warning messages in the form @code{(regexp file-idx | 315 Patterns for error/warning messages in the form @code{(regexp file-idx |
316 line-idx err-text-idx)}. @xref{Parsing the output}. | 316 line-idx col-idx err-text-idx)}. @xref{Parsing the output}. |
317 | 317 |
318 @item flymake-compilation-prevents-syntax-check | 318 @item flymake-compilation-prevents-syntax-check |
319 A flag indicating whether compilation and syntax check of the same | 319 A flag indicating whether compilation and syntax check of the same |
320 file cannot be run simultaneously. | 320 file cannot be run simultaneously. |
321 | 321 |
331 | 331 |
332 @item flymake-start-syntax-check-on-newline | 332 @item flymake-start-syntax-check-on-newline |
333 A boolean flag indicating whether to start syntax check after a | 333 A boolean flag indicating whether to start syntax check after a |
334 newline character is added to the buffer. | 334 newline character is added to the buffer. |
335 | 335 |
336 @item flymake-errline-face | 336 @item flymake-errline |
337 A custom face for highlighting lines for which at least one error has | 337 A custom face for highlighting lines for which at least one error has |
338 been reported. | 338 been reported. |
339 | 339 |
340 @item flymake-warnline-face | 340 @item flymake-warnline |
341 A custom face for highlighting lines for which at least one warning | 341 A custom face for highlighting lines for which at least one warning |
342 and no errors have been reported. | 342 and no errors have been reported. |
343 | 343 |
344 @end table | 344 @end table |
345 | 345 |
408 checking. | 408 checking. |
409 | 409 |
410 First, we write the @code{init-function}: | 410 First, we write the @code{init-function}: |
411 | 411 |
412 @lisp | 412 @lisp |
413 (defun flymake-perl-init (buffer) | 413 (defun flymake-perl-init () |
414 (let* ((temp-file (flymake-init-create-temp-buffer-copy | 414 (let* ((temp-file (flymake-init-create-temp-buffer-copy |
415 buffer 'flymake-create-temp-inplace)) | 415 'flymake-create-temp-inplace)) |
416 (local-file (concat (flymake-build-relative-filename | 416 (local-file (concat (flymake-build-relative-filename |
417 (file-name-directory | 417 (file-name-directory |
418 (buffer-file-name | 418 (buffer-file-name |
419 (current-buffer))) | 419 (current-buffer))) |
420 (file-name-directory temp-file)) | 420 (file-name-directory temp-file)) |
711 @section Highlighting erroneous lines | 711 @section Highlighting erroneous lines |
712 @cindex Erroneous lines, faces | 712 @cindex Erroneous lines, faces |
713 | 713 |
714 Highlighting is implemented with overlays and happens in the process | 714 Highlighting is implemented with overlays and happens in the process |
715 sentinel, after calling the cleanup function. Two customizable faces | 715 sentinel, after calling the cleanup function. Two customizable faces |
716 are used: @code{flymake-errline-face} and | 716 are used: @code{flymake-errline} and |
717 @code{flymake-warnline-face}. Errors belonging outside the current | 717 @code{flymake-warnline}. Errors belonging outside the current |
718 buffer are considered to belong to line 1 of the current buffer. | 718 buffer are considered to belong to line 1 of the current buffer. |
719 | 719 |
720 @node Interaction with other modes | 720 @node Interaction with other modes |
721 @section Interaction with other modes | 721 @section Interaction with other modes |
722 @cindex Interaction with other modes | 722 @cindex Interaction with other modes |