aboutsummaryrefslogtreecommitdiffstats
path: root/src/print.c
diff options
context:
space:
mode:
authorPo Lu2023-01-11 16:07:32 +0800
committerPo Lu2023-01-11 16:07:32 +0800
commit2fa5583d96fe78ff66d6fd41f18e54e4e20ea7d6 (patch)
treed3cf4a755e2da9b11c284763ed20041033b5dc3b /src/print.c
parent494bedde3235f9034746c977260bbbc2c1e51d8c (diff)
parent033f2cc6140d03e78403f37689b9f54b64bded01 (diff)
downloademacs-2fa5583d96fe78ff66d6fd41f18e54e4e20ea7d6.tar.gz
emacs-2fa5583d96fe78ff66d6fd41f18e54e4e20ea7d6.zip
Merge remote-tracking branch 'origin/master' into feature/android
Diffstat (limited to 'src/print.c')
-rw-r--r--src/print.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/print.c b/src/print.c
index bc6d5487c13..d656774b9cd 100644
--- a/src/print.c
+++ b/src/print.c
@@ -2039,8 +2039,13 @@ print_vectorlike (Lisp_Object obj, Lisp_Object printcharfun, bool escapeflag,
2039 /* Now the node must be up-to-date, and calling functions like 2039 /* Now the node must be up-to-date, and calling functions like
2040 Ftreesit_node_start will not signal. */ 2040 Ftreesit_node_start will not signal. */
2041 bool named = treesit_named_node_p (XTS_NODE (obj)->node); 2041 bool named = treesit_named_node_p (XTS_NODE (obj)->node);
2042 const char *delim1 = named ? "(" : "\""; 2042 /* We used to use () as delimiters for named nodes, but that
2043 const char *delim2 = named ? ")" : "\""; 2043 confuses pretty-printing a tad bit. There might be more
2044 little breakages here and there if we print parenthesizes
2045 inside an object, so I guess better not do it.
2046 (bug#60696) */
2047 const char *delim1 = named ? "" : "\"";
2048 const char *delim2 = named ? "" : "\"";
2044 print_c_string (delim1, printcharfun); 2049 print_c_string (delim1, printcharfun);
2045 print_string (Ftreesit_node_type (obj), printcharfun); 2050 print_string (Ftreesit_node_type (obj), printcharfun);
2046 print_c_string (delim2, printcharfun); 2051 print_c_string (delim2, printcharfun);