aboutsummaryrefslogtreecommitdiffstats
path: root/src/syntax.c
diff options
context:
space:
mode:
authorStefan Kangas2019-07-08 18:37:50 +0200
committerStefan Kangas2020-10-18 17:23:24 +0200
commitdcf9cd47ae71e39eb616d77acb531ac11357391f (patch)
treeb677b2916ad50bfe3932829396436154cfbb0ce6 /src/syntax.c
parent282f35083c02ace9b287dc311bef1d16721e6c0c (diff)
downloademacs-dcf9cd47ae71e39eb616d77acb531ac11357391f.tar.gz
emacs-dcf9cd47ae71e39eb616d77acb531ac11357391f.zip
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.
Diffstat (limited to 'src/syntax.c')
-rw-r--r--src/syntax.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/syntax.c b/src/syntax.c
index 066972e6d88..df07809aaaf 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -1421,7 +1421,7 @@ DEFUN ("internal-describe-syntax-value", Finternal_describe_syntax_value,
1421 { 1421 {
1422 AUTO_STRING (prefixdoc, 1422 AUTO_STRING (prefixdoc,
1423 ",\n\t is a prefix character for `backward-prefix-chars'"); 1423 ",\n\t is a prefix character for `backward-prefix-chars'");
1424 insert1 (Fsubstitute_command_keys (prefixdoc)); 1424 insert1 (call1 (Qsubstitute_command_keys, prefixdoc));
1425 } 1425 }
1426 1426
1427 return syntax; 1427 return syntax;