Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
93261462
Commit
93261462
authored
Mar 05, 2005
by
Thien-Thi Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refill and tweak style in @lisp blocks.
parent
bb96021a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
37 deletions
+37
-37
man/ChangeLog
man/ChangeLog
+4
-0
man/flymake.texi
man/flymake.texi
+33
-37
No files found.
man/ChangeLog
View file @
93261462
2005-03-05 Thien-Thi Nguyen <ttn@gnu.org>
* flymake.texi: Refill and tweak style in @lisp blocks.
2005-03-05 Juri Linkov <juri@jurta.org>
* cmdargs.texi (Emacs Invocation): Add cindex
...
...
man/flymake.texi
View file @
93261462
...
...
@@ -419,19 +419,16 @@ checking.
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))
)
)
(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,11 +441,11 @@ Next, we add a new entry to the
@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
))
(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,8 +455,9 @@ Finally, we add an entry to @code{flymake-err-line-patterns}:
@lisp
(
setq flymake
-
err
-
line
-
patterns
(
cons '
(
"
\\
(
.
*
\\
)
at
\\
([
^
\n
]+
\\
)
line
\\
([
0
-
9
]+
\\
)[
,.
\n
]
"
2
3
nil
1
)
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,11 +473,11 @@ functions for @code{make}. We just add a new entry to the
@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))
(
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,12 +485,11 @@ command line:
@lisp
(list "make"
(list "-s"
"-C"
base-dir
(concat "CHK
_
SOURCES=" source)
"SYNTAX
_
CHECK
_
MODE=1"
"check-syntax"))
(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,12 +745,11 @@ Flymake also provides an alternative command for starting compilation,
@code
{
flymake
-
compile
}
:
@lisp
(
defun flymake
-
compile
()
"kill all flymake syntax checks, start compilation"
(
interactive
)
(
flymake
-
stop
-
all
-
syntax
-
checks
)
(
call
-
interactively 'compile
)
)
(
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment