diff options
| author | Stefan Monnier | 2001-11-28 20:44:42 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2001-11-28 20:44:42 +0000 |
| commit | 3055c5a456cb7a551d4132a55cf5711e7e218869 (patch) | |
| tree | dab6234f0d8519ac2bfb066fb7a53f1716a59f5f /src | |
| parent | 0017329bca1fa65fe94e7f2c7c84e66728e6eb9a (diff) | |
| download | emacs-3055c5a456cb7a551d4132a55cf5711e7e218869.tar.gz emacs-3055c5a456cb7a551d4132a55cf5711e7e218869.zip | |
(describe_category, describe_category_1, Fdescribe_categories): Remove.
(syms_of_category): Don't defsubr Sdescribe_categories.
Diffstat (limited to 'src')
| -rw-r--r-- | src/category.c | 94 |
1 files changed, 0 insertions, 94 deletions
diff --git a/src/category.c b/src/category.c index 0c5eb3528e9..bbd4686ed86 100644 --- a/src/category.c +++ b/src/category.c | |||
| @@ -471,99 +471,6 @@ then delete CATEGORY from the category set instead of adding it. */) | |||
| 471 | return Qnil; | 471 | return Qnil; |
| 472 | } | 472 | } |
| 473 | 473 | ||
| 474 | /* Dump category table to buffer in human-readable format */ | ||
| 475 | |||
| 476 | static void | ||
| 477 | describe_category (value, args) | ||
| 478 | Lisp_Object value, args; | ||
| 479 | { | ||
| 480 | Lisp_Object mnemonics; | ||
| 481 | |||
| 482 | Findent_to (make_number (16), make_number (1)); | ||
| 483 | |||
| 484 | if (NILP (value)) | ||
| 485 | { | ||
| 486 | insert_string ("default\n"); | ||
| 487 | return; | ||
| 488 | } | ||
| 489 | |||
| 490 | if (CHAR_TABLE_P (value)) | ||
| 491 | { | ||
| 492 | insert_string ("deeper char-table ...\n"); | ||
| 493 | return; | ||
| 494 | } | ||
| 495 | |||
| 496 | if (!CATEGORY_SET_P (value)) | ||
| 497 | { | ||
| 498 | insert_string ("invalid\n"); | ||
| 499 | return; | ||
| 500 | } | ||
| 501 | |||
| 502 | mnemonics = Fcategory_set_mnemonics (value); | ||
| 503 | insert_from_string (mnemonics, 0, 0, XSTRING (mnemonics)->size, | ||
| 504 | STRING_BYTES (XSTRING (mnemonics)), 0); | ||
| 505 | insert_string ("\n"); | ||
| 506 | return; | ||
| 507 | } | ||
| 508 | |||
| 509 | static Lisp_Object | ||
| 510 | describe_category_1 (vector) | ||
| 511 | Lisp_Object vector; | ||
| 512 | { | ||
| 513 | struct buffer *old = current_buffer; | ||
| 514 | set_buffer_internal (XBUFFER (Vstandard_output)); | ||
| 515 | describe_vector (vector, Qnil, Qnil, describe_category, 0, Qnil, Qnil, | ||
| 516 | (int *)0, 0); | ||
| 517 | { | ||
| 518 | int i; | ||
| 519 | Lisp_Object docs = XCHAR_TABLE (vector)->extras[0]; | ||
| 520 | Lisp_Object elt; | ||
| 521 | |||
| 522 | if (!VECTORP (docs) || XVECTOR (docs)->size != 95) | ||
| 523 | { | ||
| 524 | insert_string ("Invalid first extra slot in this char table\n"); | ||
| 525 | return Qnil; | ||
| 526 | } | ||
| 527 | |||
| 528 | insert_string ("Meanings of mnemonice characters are:\n"); | ||
| 529 | for (i = 0; i < 95; i++) | ||
| 530 | { | ||
| 531 | elt = XVECTOR (docs)->contents[i]; | ||
| 532 | if (NILP (elt)) | ||
| 533 | continue; | ||
| 534 | |||
| 535 | insert_char (i + 32); | ||
| 536 | insert (": ", 2); | ||
| 537 | insert_from_string (elt, 0, 0, XSTRING (elt)->size, | ||
| 538 | STRING_BYTES (XSTRING (elt)), 0); | ||
| 539 | insert ("\n", 1); | ||
| 540 | } | ||
| 541 | } | ||
| 542 | |||
| 543 | while (! NILP (XCHAR_TABLE (vector)->parent)) | ||
| 544 | { | ||
| 545 | vector = XCHAR_TABLE (vector)->parent; | ||
| 546 | insert_string ("\nThe parent category table is:"); | ||
| 547 | describe_vector (vector, Qnil, Qnil, describe_category, 0, Qnil, Qnil, | ||
| 548 | (int *) 0, 0); | ||
| 549 | } | ||
| 550 | |||
| 551 | call0 (intern ("help-mode")); | ||
| 552 | set_buffer_internal (old); | ||
| 553 | return Qnil; | ||
| 554 | } | ||
| 555 | |||
| 556 | DEFUN ("describe-categories", Fdescribe_categories, Sdescribe_categories, 0, 0, "", | ||
| 557 | doc: /* Describe the category specifications in the current category table. | ||
| 558 | The descriptions are inserted in a buffer, which is then displayed. */) | ||
| 559 | () | ||
| 560 | { | ||
| 561 | internal_with_output_to_temp_buffer | ||
| 562 | ("*Help*", describe_category_1, current_buffer->category_table); | ||
| 563 | |||
| 564 | return Qnil; | ||
| 565 | } | ||
| 566 | |||
| 567 | /* Return 1 if there is a word boundary between two word-constituent | 474 | /* Return 1 if there is a word boundary between two word-constituent |
| 568 | characters C1 and C2 if they appear in this order, else return 0. | 475 | characters C1 and C2 if they appear in this order, else return 0. |
| 569 | Use the macro WORD_BOUNDARY_P instead of calling this function | 476 | Use the macro WORD_BOUNDARY_P instead of calling this function |
| @@ -699,7 +606,6 @@ See the documentation of the variable `word-combining-categories'. */); | |||
| 699 | defsubr (&Schar_category_set); | 606 | defsubr (&Schar_category_set); |
| 700 | defsubr (&Scategory_set_mnemonics); | 607 | defsubr (&Scategory_set_mnemonics); |
| 701 | defsubr (&Smodify_category_entry); | 608 | defsubr (&Smodify_category_entry); |
| 702 | defsubr (&Sdescribe_categories); | ||
| 703 | 609 | ||
| 704 | category_table_version = 0; | 610 | category_table_version = 0; |
| 705 | } | 611 | } |