Mercurial > emacs
changeset 6475:e7db7f9c1fb4
(where_is_string, Fwhere_is): Deleted.
(syms_of_keymap): Corresponding changes.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 23 Mar 1994 04:51:55 +0000 |
parents | 79765ff7bfa1 |
children | 2e28b96d5b64 |
files | src/keymap.c |
diffstat | 1 files changed, 0 insertions(+), 34 deletions(-) [+] |
line wrap: on
line diff
--- a/src/keymap.c Wed Mar 23 00:43:06 1994 +0000 +++ b/src/keymap.c Wed Mar 23 04:51:55 1994 +0000 @@ -1710,39 +1710,6 @@ return found; } - -/* Return a string listing the keys and buttons that run DEFINITION. */ - -static Lisp_Object -where_is_string (definition) - Lisp_Object definition; -{ - register Lisp_Object keys, keys1; - - keys = Fwhere_is_internal (definition, Voverriding_local_map, Qnil, Qnil); - keys1 = Fmapconcat (Qkey_description, keys, build_string (", ")); - - return keys1; -} - -DEFUN ("where-is", Fwhere_is, Swhere_is, 1, 1, "CWhere is command: ", - "Print message listing key sequences that invoke specified command.\n\ -Argument is a command definition, usually a symbol with a function definition.") - (definition) - Lisp_Object definition; -{ - register Lisp_Object string; - - CHECK_SYMBOL (definition, 0); - string = where_is_string (definition); - - if (XSTRING (string)->size) - message ("%s is on %s", XSYMBOL (definition)->name->data, - XSTRING (string)->data); - else - message ("%s is not on any key", XSYMBOL (definition)->name->data); - return Qnil; -} /* describe-bindings - summarizing all the bindings in a set of keymaps. */ @@ -2414,7 +2381,6 @@ defsubr (&Ssingle_key_description); defsubr (&Stext_char_description); defsubr (&Swhere_is_internal); - defsubr (&Swhere_is); defsubr (&Sdescribe_bindings); defsubr (&Sapropos_internal); }