diff options
| author | Eli Zaretskii | 2016-04-02 15:13:00 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2016-04-02 15:13:00 +0300 |
| commit | 7228eb805d355b26cdf2c2202d46f9784e73fd22 (patch) | |
| tree | 3c217b7a9061245c74feb88aa83f82392f1be250 | |
| parent | 0020047fdaf6b180009e2f5bb24975fc8ed75136 (diff) | |
| download | emacs-7228eb805d355b26cdf2c2202d46f9784e73fd22.tar.gz emacs-7228eb805d355b26cdf2c2202d46f9784e73fd22.zip | |
Improve documentation of byte-code objects
* doc/lispref/compile.texi (Byte-Code Objects): Document the
integer format of the argument descriptor. (Bug#23061)
| -rw-r--r-- | doc/lispref/compile.texi | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/doc/lispref/compile.texi b/doc/lispref/compile.texi index f7fed5e18d2..c943a6a29c1 100644 --- a/doc/lispref/compile.texi +++ b/doc/lispref/compile.texi | |||
| @@ -533,8 +533,19 @@ there is no maximum number, but only the first six elements have any | |||
| 533 | normal use. They are: | 533 | normal use. They are: |
| 534 | 534 | ||
| 535 | @table @var | 535 | @table @var |
| 536 | @item arglist | 536 | @item argdesc |
| 537 | The list of argument symbols. | 537 | The descriptor of the arguments. This can either be a list of |
| 538 | arguments, as described in @ref{Argument List}, or an integer encoding | ||
| 539 | the required number of arguments. In the latter case, the value of | ||
| 540 | the descriptor specifies the minimum number of arguments in the bits | ||
| 541 | zero to 6, and the maximum number of arguments in bits 8 to 14. If | ||
| 542 | the argument list uses @code{&rest}, then bit 7 is set; otherwise it's | ||
| 543 | cleared. | ||
| 544 | |||
| 545 | If @var{argdesc} is a list, the arguments will be dynamically bound | ||
| 546 | before executing the byte code. If @var{argdesc} is an integer, the | ||
| 547 | arguments will be instead pushed onto the stack of the byte-code | ||
| 548 | interpreter, before executing the code. | ||
| 538 | 549 | ||
| 539 | @item byte-code | 550 | @item byte-code |
| 540 | The string containing the byte-code instructions. | 551 | The string containing the byte-code instructions. |
| @@ -562,11 +573,11 @@ representation. It is the definition of the command | |||
| 562 | @code{backward-sexp}. | 573 | @code{backward-sexp}. |
| 563 | 574 | ||
| 564 | @example | 575 | @example |
| 565 | #[(&optional arg) | 576 | #[256 |
| 566 | "^H\204^F^@@\301^P\302^H[!\207" | 577 | "\211\204^G^@@\300\262^A\301^A[!\207" |
| 567 | [arg 1 forward-sexp] | 578 | [1 forward-sexp] |
| 568 | 2 | 579 | 3 |
| 569 | 254435 | 580 | 1793299 |
| 570 | "^p"] | 581 | "^p"] |
| 571 | @end example | 582 | @end example |
| 572 | 583 | ||