comparison man/flymake.texi @ 79454:39cb380f046d

(Example -- Configuring a tool called directly): Update example.
author Richard M. Stallman <rms@gnu.org>
date Tue, 20 Nov 2007 12:39:39 +0000
parents 8e2d74f8e600
children 02b9a9aa5b0c
comparison
equal deleted inserted replaced
79453:7acb0cfbf6a4 79454:39cb380f046d
411 411
412 @lisp 412 @lisp
413 (defun flymake-perl-init () 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 'flymake-create-temp-inplace)) 415 'flymake-create-temp-inplace))
416 (local-file (concat (flymake-build-relative-filename 416 (local-file (file-relative-name
417 (file-name-directory 417 temp-file
418 (buffer-file-name 418 (file-name-directory buffer-file-name))))
419 (current-buffer)))
420 (file-name-directory temp-file))
421 (file-name-nondirectory temp-file))))
422 (list "perl" (list "-wc " local-file)))) 419 (list "perl" (list "-wc " local-file))))
423 @end lisp 420 @end lisp
424 421
425 @code{flymake-perl-init} creates a temporary copy of the buffer 422 @code{flymake-perl-init} creates a temporary copy of the buffer
426 contents with the help of 423 contents with the help of