aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2016-04-02 15:13:00 +0300
committerEli Zaretskii2016-04-02 15:13:00 +0300
commit7228eb805d355b26cdf2c2202d46f9784e73fd22 (patch)
tree3c217b7a9061245c74feb88aa83f82392f1be250
parent0020047fdaf6b180009e2f5bb24975fc8ed75136 (diff)
downloademacs-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.texi25
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
533normal use. They are: 533normal use. They are:
534 534
535@table @var 535@table @var
536@item arglist 536@item argdesc
537The list of argument symbols. 537The descriptor of the arguments. This can either be a list of
538arguments, as described in @ref{Argument List}, or an integer encoding
539the required number of arguments. In the latter case, the value of
540the descriptor specifies the minimum number of arguments in the bits
541zero to 6, and the maximum number of arguments in bits 8 to 14. If
542the argument list uses @code{&rest}, then bit 7 is set; otherwise it's
543cleared.
544
545If @var{argdesc} is a list, the arguments will be dynamically bound
546before executing the byte code. If @var{argdesc} is an integer, the
547arguments will be instead pushed onto the stack of the byte-code
548interpreter, before executing the code.
538 549
539@item byte-code 550@item byte-code
540The string containing the byte-code instructions. 551The 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