diff options
| author | Glenn Morris | 2007-11-24 03:06:42 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-11-24 03:06:42 +0000 |
| commit | 5bb0cda3c6abd23fdf1716acf6da2b5d950270c7 (patch) | |
| tree | e3a1a5c8e2a6d6cab2bcedcabda80242355f345b /doc | |
| parent | e31dfb12aca5db57ea41bf93f755aa0af9f1a188 (diff) | |
| download | emacs-5bb0cda3c6abd23fdf1716acf6da2b5d950270c7.tar.gz emacs-5bb0cda3c6abd23fdf1716acf6da2b5d950270c7.zip | |
(Compiler Errors): Mention declaring functions, defvar with no
initvalue, and byte-compile-warnings.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/ChangeLog | 6 | ||||
| -rw-r--r-- | doc/lispref/compile.texi | 9 |
2 files changed, 15 insertions, 0 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index c739a43a1a4..16c78f429ea 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2007-11-24 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * functions.texi (Declaring Functions): New section. | ||
| 4 | * compile.texi (Compiler Errors): Mention declaring functions, | ||
| 5 | defvar with no initvalue, and byte-compile-warnings. | ||
| 6 | |||
| 1 | 2007-11-15 Martin Rudalics <rudalics@gmx.at> | 7 | 2007-11-15 Martin Rudalics <rudalics@gmx.at> |
| 2 | 8 | ||
| 3 | * vol1.texi (Top): Remove Frame-Local Variables from Node Listing. | 9 | * vol1.texi (Top): Remove Frame-Local Variables from Node Listing. |
diff --git a/doc/lispref/compile.texi b/doc/lispref/compile.texi index aeaa9f79eb8..fdd145ac9f1 100644 --- a/doc/lispref/compile.texi +++ b/doc/lispref/compile.texi | |||
| @@ -505,6 +505,9 @@ The call to @var{func} must be in the @var{then-form} of the | |||
| 505 | @code{if}, and @var{func} must appear quoted in the call to | 505 | @code{if}, and @var{func} must appear quoted in the call to |
| 506 | @code{fboundp}. (This feature operates for @code{cond} as well.) | 506 | @code{fboundp}. (This feature operates for @code{cond} as well.) |
| 507 | 507 | ||
| 508 | You can tell the compiler that a function is defined using a | ||
| 509 | @code{declare-function} statement (@pxref{Declaring Functions}). | ||
| 510 | |||
| 508 | Likewise, you can suppress a compiler warning for an unbound variable | 511 | Likewise, you can suppress a compiler warning for an unbound variable |
| 509 | @var{variable} by conditionalizing its use on a @code{boundp} test, | 512 | @var{variable} by conditionalizing its use on a @code{boundp} test, |
| 510 | like this: | 513 | like this: |
| @@ -518,6 +521,9 @@ The reference to @var{variable} must be in the @var{then-form} of the | |||
| 518 | @code{if}, and @var{variable} must appear quoted in the call to | 521 | @code{if}, and @var{variable} must appear quoted in the call to |
| 519 | @code{boundp}. | 522 | @code{boundp}. |
| 520 | 523 | ||
| 524 | You can tell the compiler that a variable is defined using a | ||
| 525 | @code{defvar} statement with no initial value. | ||
| 526 | |||
| 521 | You can suppress any compiler warnings using the construct | 527 | You can suppress any compiler warnings using the construct |
| 522 | @code{with-no-warnings}: | 528 | @code{with-no-warnings}: |
| 523 | 529 | ||
| @@ -533,6 +539,9 @@ We recommend that you use this construct around the smallest | |||
| 533 | possible piece of code. | 539 | possible piece of code. |
| 534 | @end defspec | 540 | @end defspec |
| 535 | 541 | ||
| 542 | More precise control of warnings is possible by setting the variable | ||
| 543 | @code{byte-compile-warnings}. | ||
| 544 | |||
| 536 | @node Byte-Code Objects | 545 | @node Byte-Code Objects |
| 537 | @section Byte-Code Function Objects | 546 | @section Byte-Code Function Objects |
| 538 | @cindex compiled function | 547 | @cindex compiled function |