]> git.eshelyaron.com Git - emacs.git/commit
Add new Lisp implementation of substitute-command-keys
authorStefan Kangas <stefankangas@gmail.com>
Mon, 8 Jul 2019 16:37:50 +0000 (18:37 +0200)
committerStefan Kangas <stefan@marxist.se>
Sun, 18 Oct 2020 15:23:24 +0000 (17:23 +0200)
commitdcf9cd47ae71e39eb616d77acb531ac11357391f
treeb677b2916ad50bfe3932829396436154cfbb0ce6
parent282f35083c02ace9b287dc311bef1d16721e6c0c
Add new Lisp implementation of substitute-command-keys

This is only the first step towards a full Lisp implementation, and
does not remove the old C code.  On the contrary, it is partly based
on using the old C code, which is to be replaced in steps.  This also
makes it easy to test that it produces the same output as the old.

* src/doc.c (Fsubstitute_command_keys_old): Rename from
Fsubstitute_command_keys.
(Fget_quoting_style): New defun to expose text_quoting_style to Lisp.
(syms_of_doc): Expose above symbols.
* lisp/help.el (substitute-command-keys): New Lisp version of
substitute-command-keys.  (Bug#8951)

* src/keymap.c
(Fdescribe_map_tree): New defun to expose describe_map_tree to Lisp.
(syms_of_keymap): New defsubr for Fdescribe_map_tree.

* src/keyboard.c (help_echo_substitute_command_keys):
* src/doc.c (Fdocumentation, Fdocumentation_property):
* src/print.c (print_error_message):
* src/syntax.c (Finternal_describe_syntax_value): Fix calls to use new
Lisp implementation of substitute-command-keys.

* test/src/doc-tests.el: Remove file.
* test/lisp/help-tests.el: Add tests for substitute-command-keys
copied from above file.
lisp/help.el
src/doc.c
src/keyboard.c
src/keymap.c
src/print.c
src/syntax.c
test/lisp/help-tests.el
test/src/doc-tests.el [deleted file]