Mercurial > emacs
comparison lispref/sequences.texi @ 27187:f6b52258db6a
Remove obsolete @tindex commands.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Wed, 05 Jan 2000 14:29:37 +0000 |
parents | a393c5e46e99 |
children | d2e5f1b7d8e2 |
comparison
equal
deleted
inserted
replaced
27186:eb645a473bf8 | 27187:f6b52258db6a |
---|---|
552 A char-table can also have a @dfn{default value}. If so, then | 552 A char-table can also have a @dfn{default value}. If so, then |
553 @code{(aref @var{char-table} @var{c})} returns the default value | 553 @code{(aref @var{char-table} @var{c})} returns the default value |
554 whenever the char-table does not specify any other non-@code{nil} value. | 554 whenever the char-table does not specify any other non-@code{nil} value. |
555 | 555 |
556 @defun make-char-table subtype &optional init | 556 @defun make-char-table subtype &optional init |
557 @tindex make-char-table | |
558 Return a newly created char-table, with subtype @var{subtype}. Each | 557 Return a newly created char-table, with subtype @var{subtype}. Each |
559 element is initialized to @var{init}, which defaults to @code{nil}. You | 558 element is initialized to @var{init}, which defaults to @code{nil}. You |
560 cannot alter the subtype of a char-table after the char-table is | 559 cannot alter the subtype of a char-table after the char-table is |
561 created. | 560 created. |
562 | 561 |
563 There is no argument to specify the length of the char-table, because | 562 There is no argument to specify the length of the char-table, because |
564 all char-tables have room for any valid character code as an index. | 563 all char-tables have room for any valid character code as an index. |
565 @end defun | 564 @end defun |
566 | 565 |
567 @defun char-table-p object | 566 @defun char-table-p object |
568 @tindex char-table-p | |
569 This function returns @code{t} if @var{object} is a char-table, | 567 This function returns @code{t} if @var{object} is a char-table, |
570 otherwise @code{nil}. | 568 otherwise @code{nil}. |
571 @end defun | 569 @end defun |
572 | 570 |
573 @defun char-table-subtype char-table | 571 @defun char-table-subtype char-table |
574 @tindex char-table-subtype | |
575 This function returns the subtype symbol of @var{char-table}. | 572 This function returns the subtype symbol of @var{char-table}. |
576 @end defun | 573 @end defun |
577 | 574 |
578 @defun set-char-table-default char-table new-default | 575 @defun set-char-table-default char-table new-default |
579 @tindex set-char-table-default | |
580 This function sets the default value of @var{char-table} to | 576 This function sets the default value of @var{char-table} to |
581 @var{new-default}. | 577 @var{new-default}. |
582 | 578 |
583 There is no special function to access the default value of a char-table. | 579 There is no special function to access the default value of a char-table. |
584 To do that, use @code{(char-table-range @var{char-table} nil)}. | 580 To do that, use @code{(char-table-range @var{char-table} nil)}. |
585 @end defun | 581 @end defun |
586 | 582 |
587 @defun char-table-parent char-table | 583 @defun char-table-parent char-table |
588 @tindex char-table-parent | |
589 This function returns the parent of @var{char-table}. The parent is | 584 This function returns the parent of @var{char-table}. The parent is |
590 always either @code{nil} or another char-table. | 585 always either @code{nil} or another char-table. |
591 @end defun | 586 @end defun |
592 | 587 |
593 @defun set-char-table-parent char-table new-parent | 588 @defun set-char-table-parent char-table new-parent |
594 @tindex set-char-table-parent | |
595 This function sets the parent of @var{char-table} to @var{new-parent}. | 589 This function sets the parent of @var{char-table} to @var{new-parent}. |
596 @end defun | 590 @end defun |
597 | 591 |
598 @defun char-table-extra-slot char-table n | 592 @defun char-table-extra-slot char-table n |
599 @tindex char-table-extra-slot | |
600 This function returns the contents of extra slot @var{n} of | 593 This function returns the contents of extra slot @var{n} of |
601 @var{char-table}. The number of extra slots in a char-table is | 594 @var{char-table}. The number of extra slots in a char-table is |
602 determined by its subtype. | 595 determined by its subtype. |
603 @end defun | 596 @end defun |
604 | 597 |
605 @defun set-char-table-extra-slot char-table n value | 598 @defun set-char-table-extra-slot char-table n value |
606 @tindex set-char-table-extra-slot | |
607 This function stores @var{value} in extra slot @var{n} of | 599 This function stores @var{value} in extra slot @var{n} of |
608 @var{char-table}. | 600 @var{char-table}. |
609 @end defun | 601 @end defun |
610 | 602 |
611 A char-table can specify an element value for a single character code; | 603 A char-table can specify an element value for a single character code; |
612 it can also specify a value for an entire character set. | 604 it can also specify a value for an entire character set. |
613 | 605 |
614 @defun char-table-range char-table range | 606 @defun char-table-range char-table range |
615 @tindex char-table-range | |
616 This returns the value specified in @var{char-table} for a range of | 607 This returns the value specified in @var{char-table} for a range of |
617 characters @var{range}. Here are the possibilities for @var{range}: | 608 characters @var{range}. Here are the possibilities for @var{range}: |
618 | 609 |
619 @table @asis | 610 @table @asis |
620 @item @code{nil} | 611 @item @code{nil} |
634 name. @xref{Splitting Characters}, for a description of generic characters. | 625 name. @xref{Splitting Characters}, for a description of generic characters. |
635 @end table | 626 @end table |
636 @end defun | 627 @end defun |
637 | 628 |
638 @defun set-char-table-range char-table range value | 629 @defun set-char-table-range char-table range value |
639 @tindex set-char-table-range | |
640 This function sets the value in @var{char-table} for a range of | 630 This function sets the value in @var{char-table} for a range of |
641 characters @var{range}. Here are the possibilities for @var{range}: | 631 characters @var{range}. Here are the possibilities for @var{range}: |
642 | 632 |
643 @table @asis | 633 @table @asis |
644 @item @code{nil} | 634 @item @code{nil} |
661 name. @xref{Splitting Characters}, for a description of generic characters. | 651 name. @xref{Splitting Characters}, for a description of generic characters. |
662 @end table | 652 @end table |
663 @end defun | 653 @end defun |
664 | 654 |
665 @defun map-char-table function char-table | 655 @defun map-char-table function char-table |
666 @tindex map-char-table | |
667 This function calls @var{function} for each element of @var{char-table}. | 656 This function calls @var{function} for each element of @var{char-table}. |
668 @var{function} is called with two arguments, a key and a value. The key | 657 @var{function} is called with two arguments, a key and a value. The key |
669 is a possible @var{range} argument for @code{char-table-range}---either | 658 is a possible @var{range} argument for @code{char-table-range}---either |
670 a valid character or a generic character---and the value is | 659 a valid character or a generic character---and the value is |
671 @code{(char-table-range @var{char-table} @var{key})}. | 660 @code{(char-table-range @var{char-table} @var{key})}. |
705 There are two special functions for working with bool-vectors; aside | 694 There are two special functions for working with bool-vectors; aside |
706 from that, you manipulate them with same functions used for other kinds | 695 from that, you manipulate them with same functions used for other kinds |
707 of arrays. | 696 of arrays. |
708 | 697 |
709 @defun make-bool-vector length initial | 698 @defun make-bool-vector length initial |
710 @tindex make-bool-vector | |
711 Return a new book-vector of @var{length} elements, | 699 Return a new book-vector of @var{length} elements, |
712 each one initialized to @var{initial}. | 700 each one initialized to @var{initial}. |
713 @end defun | 701 @end defun |
714 | 702 |
715 @defun bool-vector-p object | 703 @defun bool-vector-p object |
716 @tindex bool-vector-p | |
717 This returns @code{t} if @var{object} is a bool-vector, | 704 This returns @code{t} if @var{object} is a bool-vector, |
718 and @code{nil} otherwise. | 705 and @code{nil} otherwise. |
719 @end defun | 706 @end defun |
720 | 707 |