Changeset 4220 for trunk/man/flymake.texi
- Timestamp:
- 2008年04月04日 22時04分40秒 (8 months ago)
- Files:
-
- trunk/man/flymake.texi (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/man/flymake.texi
r4204 r4220 12 12 which is a universal on-the-fly syntax checker for GNU Emacs. 13 13 14 Copyright @copyright{} 2004, 2005, 2006, 2007 Free Software Foundation, Inc.14 Copyright @copyright{} 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 15 15 16 16 @quotation … … 314 314 @item flymake-err-line-patterns 315 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 318 @item flymake-compilation-prevents-syntax-check … … 334 334 newline character is added to the buffer. 335 335 336 @item flymake-errline -face336 @item flymake-errline 337 337 A custom face for highlighting lines for which at least one error has 338 338 been reported. 339 339 340 @item flymake-warnline -face340 @item flymake-warnline 341 341 A custom face for highlighting lines for which at least one warning 342 342 and no errors have been reported. … … 411 411 412 412 @lisp 413 (defun flymake-perl-init ( buffer)413 (defun flymake-perl-init () 414 414 (let* ((temp-file (flymake-init-create-temp-buffer-copy 415 buffer 'flymake-create-temp-inplace)) 416 (local-file (concat (flymake-build-relative-filename 417 (file-name-directory 418 (buffer-file-name 419 (current-buffer))) 420 (file-name-directory temp-file)) 421 (file-name-nondirectory temp-file)))) 415 'flymake-create-temp-inplace)) 416 (local-file (file-relative-name 417 temp-file 418 (file-name-directory buffer-file-name)))) 422 419 (list "perl" (list "-wc " local-file)))) 423 420 @end lisp … … 714 711 Highlighting is implemented with overlays and happens in the process 715 712 sentinel, after calling the cleanup function. Two customizable faces 716 are used: @code{flymake-errline -face} and717 @code{flymake-warnline -face}. Errors belonging outside the current713 are used: @code{flymake-errline} and 714 @code{flymake-warnline}. Errors belonging outside the current 718 715 buffer are considered to belong to line 1 of the current buffer. 719 716
