[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/man/flymake.texi
From: |
Thien-Thi Nguyen |
Subject: |
[Emacs-diffs] Changes to emacs/man/flymake.texi |
Date: |
Sat, 05 Mar 2005 13:37:13 -0500 |
Index: emacs/man/flymake.texi
diff -c emacs/man/flymake.texi:1.3 emacs/man/flymake.texi:1.4
*** emacs/man/flymake.texi:1.3 Tue Jun 29 12:09:41 2004
--- emacs/man/flymake.texi Sat Mar 5 18:37:13 2005
***************
*** 419,437 ****
First, we write the @code{init-function}:
@lisp
! (defun flymake-perl-init(buffer)
! (let* ((temp-file (flymake-init-create-temp-buffer-copy
! buffer
! 'flymake-create-temp-inplace))
! (local-file (concat (flymake-build-relative-path
! (file-name-directory
! (buffer-file-name
! (current-buffer)))
!
(file-name-directory temp-file))
!
(file-name-nondirectory temp-file))))
! (list "perl" (list "-wc " local-file))
! )
! )
@end lisp
@code{flymake-perl-init} creates a temporary copy of the buffer
--- 419,434 ----
First, we write the @code{init-function}:
@lisp
! (defun flymake-perl-init (buffer)
! (let* ((temp-file (flymake-init-create-temp-buffer-copy
! buffer 'flymake-create-temp-inplace))
! (local-file (concat (flymake-build-relative-path
! (file-name-directory
! (buffer-file-name
! (current-buffer)))
! (file-name-directory temp-file))
! (file-name-nondirectory temp-file))))
! (list "perl" (list "-wc " local-file))))
@end lisp
@code{flymake-perl-init} creates a temporary copy of the buffer
***************
*** 444,454 ****
@lisp
(setq flymake-allowed-file-name-masks
! (cons '(".+\\.pl$"
! flymake-perl-init
! flymake-simple-cleanup
! flymake-get-real-file-name)
! flymake-allowed-file-name-masks))
@end lisp
Note that we use standard @code{cleanup-function} and
--- 441,451 ----
@lisp
(setq flymake-allowed-file-name-masks
! (cons '(".+\\.pl$"
! flymake-perl-init
! flymake-simple-cleanup
! flymake-get-real-file-name)
! flymake-allowed-file-name-masks))
@end lisp
Note that we use standard @code{cleanup-function} and
***************
*** 458,465 ****
@lisp
(setq flymake-err-line-patterns
! (cons '("\\(.*\\) at \\([^ \n]+\\) line \\([0-9]+\\)[,.\n]" 2 3 nil 1)
! flymake-err-line-patterns))
@end lisp
@node Example -- Configuring a tool called via make
--- 455,463 ----
@lisp
(setq flymake-err-line-patterns
! (cons '("\\(.*\\) at \\([^ \n]+\\) line \\([0-9]+\\)[,.\n]"
! 2 3 nil 1)
! flymake-err-line-patterns))
@end lisp
@node Example -- Configuring a tool called via make
***************
*** 475,485 ****
@lisp
(setq flymake-allowed-file-name-masks
! (cons '(".+\\.c$"
! flymake-simple-make-init
! flymake-simple-cleanup
! flymake-get-real-file-name)
! flymake-allowed-file-name-masks))
@end lisp
@code{flymake-simple-make-init} builds the following @code{make}
--- 473,483 ----
@lisp
(setq flymake-allowed-file-name-masks
! (cons '(".+\\.c$"
! flymake-simple-make-init
! flymake-simple-cleanup
! flymake-get-real-file-name)
! flymake-allowed-file-name-masks))
@end lisp
@code{flymake-simple-make-init} builds the following @code{make}
***************
*** 487,498 ****
@lisp
(list "make"
! (list "-s"
! "-C"
! base-dir
! (concat "CHK_SOURCES=" source)
! "SYNTAX_CHECK_MODE=1"
! "check-syntax"))
@end lisp
@code{base-dir} is a directory containing @code{Makefile}, see @ref{Locating
the buildfile}.
--- 485,495 ----
@lisp
(list "make"
! (list "-s" "-C"
! base-dir
! (concat "CHK_SOURCES=" source)
! "SYNTAX_CHECK_MODE=1"
! "check-syntax"))
@end lisp
@code{base-dir} is a directory containing @code{Makefile}, see @ref{Locating
the buildfile}.
***************
*** 748,759 ****
@code{flymake-compile}:
@lisp
! (defun flymake-compile()
! "kill all flymake syntax checks, start compilation"
! (interactive)
! (flymake-stop-all-syntax-checks)
! (call-interactively 'compile)
! )
@end lisp
It just kills all the active syntax check processes before calling
--- 745,755 ----
@code{flymake-compile}:
@lisp
! (defun flymake-compile ()
! "Kill all flymake syntax checks then start compilation."
! (interactive)
! (flymake-stop-all-syntax-checks)
! (call-interactively 'compile))
@end lisp
It just kills all the active syntax check processes before calling
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/man/flymake.texi,
Thien-Thi Nguyen <=