aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorJoakim Verona2012-03-13 08:23:14 +0100
committerJoakim Verona2012-03-13 08:23:14 +0100
commit4b2cea2874f3a699ebe96349ef34fb7206cc0fa5 (patch)
treebbd39cf660d9b79b2cff9e39ef6209af4cf9fb8b /doc/misc
parent1de331c486475093aa6b75ef6c259f7164e7620c (diff)
parent6ea7151ba66df966974060711512b49b9059566e (diff)
downloademacs-4b2cea2874f3a699ebe96349ef34fb7206cc0fa5.tar.gz
emacs-4b2cea2874f3a699ebe96349ef34fb7206cc0fa5.zip
upstream
Diffstat (limited to 'doc/misc')
-rw-r--r--doc/misc/ChangeLog12
-rw-r--r--doc/misc/flymake.texi34
-rw-r--r--doc/misc/info.texi1
3 files changed, 34 insertions, 13 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index 1691c979fb6..c95aaa9b15d 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,3 +1,15 @@
12012-03-10 Eli Zaretskii <eliz@gnu.org>
2
3 * info.texi (Expert Info): Move the index entry for "Texinfo" from
4 "Getting Started" to this node. (Bug#10450)
5
62012-03-10 Chong Yidong <cyd@gnu.org>
7
8 * flymake.texi (Example -- Configuring a tool called via make):
9 Mention the Automake COMPILE variable (Bug#8715).
10
11 * info.texi (Getting Started): Add an index entry (Bug#10450).
12
12012-03-02 Michael Albinus <michael.albinus@gmx.de> 132012-03-02 Michael Albinus <michael.albinus@gmx.de>
2 14
3 * dbus.texi (Signals): Known names will be mapped onto unique 15 * dbus.texi (Signals): Known names will be mapped onto unique
diff --git a/doc/misc/flymake.texi b/doc/misc/flymake.texi
index 687a2f7b4d4..28fb7864f06 100644
--- a/doc/misc/flymake.texi
+++ b/doc/misc/flymake.texi
@@ -449,10 +449,10 @@ Finally, we add an entry to @code{flymake-err-line-patterns}:
449@cindex Adding support for C (gcc+make) 449@cindex Adding support for C (gcc+make)
450 450
451In this example we will add support for C files syntax checked by 451In this example we will add support for C files syntax checked by
452@code{gcc} called via @code{make}. 452@command{gcc} called via @command{make}.
453 453
454We're not required to write any new functions, as Flymake already has 454We're not required to write any new functions, as Flymake already has
455functions for @code{make}. We just add a new entry to the 455functions for @command{make}. We just add a new entry to the
456@code{flymake-allowed-file-name-masks}: 456@code{flymake-allowed-file-name-masks}:
457 457
458@lisp 458@lisp
@@ -464,7 +464,7 @@ functions for @code{make}. We just add a new entry to the
464 flymake-allowed-file-name-masks)) 464 flymake-allowed-file-name-masks))
465@end lisp 465@end lisp
466 466
467@code{flymake-simple-make-init} builds the following @code{make} 467@code{flymake-simple-make-init} builds the following @command{make}
468command line: 468command line:
469 469
470@lisp 470@lisp
@@ -486,9 +486,17 @@ check-syntax:
486 gcc -o /dev/null -S ${CHK_SOURCES} 486 gcc -o /dev/null -S ${CHK_SOURCES}
487@end verbatim 487@end verbatim
488 488
489The format of error messages reported by @code{gcc} is already 489@noindent
490The format of error messages reported by @command{gcc} is already
490supported by Flymake, so we don't have to add a new entry to 491supported by Flymake, so we don't have to add a new entry to
491@code{flymake-err-line-patterns}. 492@code{flymake-err-line-patterns}. Note that if you are using
493Automake, you may want to replace @code{gcc} with the standard
494Automake variable @code{COMPILE}:
495
496@verbatim
497check-syntax:
498 $(COMPILE) -o /dev/null -S ${CHK_SOURCES}
499@end verbatim
492 500
493@node Flymake Implementation 501@node Flymake Implementation
494@chapter Flymake Implementation 502@chapter Flymake Implementation
@@ -548,9 +556,9 @@ These modes are handled inside init/cleanup/getfname functions, see
548@ref{Adding support for a new syntax check tool}. 556@ref{Adding support for a new syntax check tool}.
549 557
550Flymake contains implementations of all functionality required to 558Flymake contains implementations of all functionality required to
551support different syntax check modes described above (making 559support different syntax check modes described above (making temporary
552temporary copies, finding master files, etc.), as well as some 560copies, finding master files, etc.), as well as some tool-specific
553tool-specific (routines for @code{make}, @code{Ant}, etc.) code. 561(routines for Make, Ant, etc.) code.
554 562
555 563
556@node Making a temporary copy 564@node Making a temporary copy
@@ -626,8 +634,8 @@ Therefore, a customizable variable
626way to implement the desired behavior. 634way to implement the desired behavior.
627 635
628The default implementation, @code{flymake-get-project-include-dirs-imp}, 636The default implementation, @code{flymake-get-project-include-dirs-imp},
629uses a @code{make} call. This requires a correct base directory, that is, a 637uses a @command{make} call. This requires a correct base directory, that is, a
630directory containing a correct @code{Makefile}, to be determined. 638directory containing a correct @file{Makefile}, to be determined.
631 639
632As obtaining the project include directories might be a costly operation, its 640As obtaining the project include directories might be a costly operation, its
633return value is cached in the hash table. The cache is cleared in the beginning 641return value is cached in the hash table. The cache is cleared in the beginning
@@ -641,16 +649,16 @@ of every syntax check attempt.
641 649
642Flymake can be configured to use different tools for performing syntax 650Flymake can be configured to use different tools for performing syntax
643checks. For example, it can use direct compiler call to syntax check a perl 651checks. For example, it can use direct compiler call to syntax check a perl
644script or a call to @code{make} for a more complicated case of a 652script or a call to @command{make} for a more complicated case of a
645@code{C/C++} source. The general idea is that simple files, like perl 653@code{C/C++} source. The general idea is that simple files, like perl
646scripts and html pages, can be checked by directly invoking a 654scripts and html pages, can be checked by directly invoking a
647corresponding tool. Files that are usually more complex and generally 655corresponding tool. Files that are usually more complex and generally
648used as part of larger projects, might require non-trivial options to 656used as part of larger projects, might require non-trivial options to
649be passed to the syntax check tool, like include directories for 657be passed to the syntax check tool, like include directories for
650C++. The latter files are syntax checked using some build tool, like 658C++. The latter files are syntax checked using some build tool, like
651@code{make} or @code{Ant}. 659Make or Ant.
652 660
653All @code{make} configuration data is usually stored in a file called 661All Make configuration data is usually stored in a file called
654@code{Makefile}. To allow for future extensions, flymake uses a notion of 662@code{Makefile}. To allow for future extensions, flymake uses a notion of
655buildfile to reference the 'project configuration' file. 663buildfile to reference the 'project configuration' file.
656 664
diff --git a/doc/misc/info.texi b/doc/misc/info.texi
index ed00e8da028..8952bfb9122 100644
--- a/doc/misc/info.texi
+++ b/doc/misc/info.texi
@@ -1235,6 +1235,7 @@ this:
1235 1235
1236@node Expert Info 1236@node Expert Info
1237@chapter Info for Experts 1237@chapter Info for Experts
1238@cindex Texinfo
1238 1239
1239 This chapter explains how to write an Info file by hand. However, 1240 This chapter explains how to write an Info file by hand. However,
1240in most cases, writing a Texinfo file is better, since you can use it 1241in most cases, writing a Texinfo file is better, since you can use it