735 |
DEFUN ("substitute-command-keys", Fsubstitute_command_keys, |
DEFUN ("substitute-command-keys", Fsubstitute_command_keys, |
736 |
Ssubstitute_command_keys, 1, 1, 0, |
Ssubstitute_command_keys, 1, 1, 0, |
737 |
doc: /* Substitute key descriptions for command names in STRING. |
doc: /* Substitute key descriptions for command names in STRING. |
738 |
Return a new string which is STRING with substrings of the form \\=\\[COMMAND] |
Substrings of the form \\=\\[COMMAND] replaced by either: a keystroke |
739 |
replaced by either: a keystroke sequence that will invoke COMMAND, |
sequence that will invoke COMMAND, or "M-x COMMAND" if COMMAND is not |
740 |
or "M-x COMMAND" if COMMAND is not on any keys. |
on any keys. |
741 |
Substrings of the form \\=\\{MAPVAR} are replaced by summaries |
Substrings of the form \\=\\{MAPVAR} are replaced by summaries |
742 |
\(made by describe-bindings) of the value of MAPVAR, taken as a keymap. |
\(made by describe-bindings) of the value of MAPVAR, taken as a keymap. |
743 |
Substrings of the form \\=\\<MAPVAR> specify to use the value of MAPVAR |
Substrings of the form \\=\\<MAPVAR> specify to use the value of MAPVAR |
744 |
as the keymap for future \\=\\[COMMAND] substrings. |
as the keymap for future \\=\\[COMMAND] substrings. |
745 |
\\=\\= quotes the following character and is discarded; |
\\=\\= quotes the following character and is discarded; |
746 |
thus, \\=\\=\\=\\= puts \\=\\= into the output, and \\=\\=\\=\\[ puts \\=\\[ into the output. */) |
thus, \\=\\=\\=\\= puts \\=\\= into the output, and \\=\\=\\=\\[ puts \\=\\[ into the output. |
747 |
|
|
748 |
|
Returns original STRING if no substitutions were made. Othwerwise, |
749 |
|
a new string, without any text properties, is returned. */) |
750 |
(string) |
(string) |
751 |
Lisp_Object string; |
Lisp_Object string; |
752 |
{ |
{ |