diff options
| author | Richard M. Stallman | 1994-03-23 04:51:55 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-03-23 04:51:55 +0000 |
| commit | c25f25a2186c10ca1e2162faf02d1419bc7c0dc2 (patch) | |
| tree | 5896ef64f3541cb12b6aa7d092c55c391c635fdc /src | |
| parent | 32033024d70a286efffdcd53ed3021d25e3446ec (diff) | |
| download | emacs-c25f25a2186c10ca1e2162faf02d1419bc7c0dc2.tar.gz emacs-c25f25a2186c10ca1e2162faf02d1419bc7c0dc2.zip | |
(where_is_string, Fwhere_is): Deleted.
(syms_of_keymap): Corresponding changes.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keymap.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/keymap.c b/src/keymap.c index 1b2336562f2..02cc72ae6a0 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -1710,39 +1710,6 @@ indirect definition itself.") | |||
| 1710 | 1710 | ||
| 1711 | return found; | 1711 | return found; |
| 1712 | } | 1712 | } |
| 1713 | |||
| 1714 | /* Return a string listing the keys and buttons that run DEFINITION. */ | ||
| 1715 | |||
| 1716 | static Lisp_Object | ||
| 1717 | where_is_string (definition) | ||
| 1718 | Lisp_Object definition; | ||
| 1719 | { | ||
| 1720 | register Lisp_Object keys, keys1; | ||
| 1721 | |||
| 1722 | keys = Fwhere_is_internal (definition, Voverriding_local_map, Qnil, Qnil); | ||
| 1723 | keys1 = Fmapconcat (Qkey_description, keys, build_string (", ")); | ||
| 1724 | |||
| 1725 | return keys1; | ||
| 1726 | } | ||
| 1727 | |||
| 1728 | DEFUN ("where-is", Fwhere_is, Swhere_is, 1, 1, "CWhere is command: ", | ||
| 1729 | "Print message listing key sequences that invoke specified command.\n\ | ||
| 1730 | Argument is a command definition, usually a symbol with a function definition.") | ||
| 1731 | (definition) | ||
| 1732 | Lisp_Object definition; | ||
| 1733 | { | ||
| 1734 | register Lisp_Object string; | ||
| 1735 | |||
| 1736 | CHECK_SYMBOL (definition, 0); | ||
| 1737 | string = where_is_string (definition); | ||
| 1738 | |||
| 1739 | if (XSTRING (string)->size) | ||
| 1740 | message ("%s is on %s", XSYMBOL (definition)->name->data, | ||
| 1741 | XSTRING (string)->data); | ||
| 1742 | else | ||
| 1743 | message ("%s is not on any key", XSYMBOL (definition)->name->data); | ||
| 1744 | return Qnil; | ||
| 1745 | } | ||
| 1746 | 1713 | ||
| 1747 | /* describe-bindings - summarizing all the bindings in a set of keymaps. */ | 1714 | /* describe-bindings - summarizing all the bindings in a set of keymaps. */ |
| 1748 | 1715 | ||
| @@ -2414,7 +2381,6 @@ key, typing `ESC O P x' would return [f1 x]."); | |||
| 2414 | defsubr (&Ssingle_key_description); | 2381 | defsubr (&Ssingle_key_description); |
| 2415 | defsubr (&Stext_char_description); | 2382 | defsubr (&Stext_char_description); |
| 2416 | defsubr (&Swhere_is_internal); | 2383 | defsubr (&Swhere_is_internal); |
| 2417 | defsubr (&Swhere_is); | ||
| 2418 | defsubr (&Sdescribe_bindings); | 2384 | defsubr (&Sdescribe_bindings); |
| 2419 | defsubr (&Sapropos_internal); | 2385 | defsubr (&Sapropos_internal); |
| 2420 | } | 2386 | } |