diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 5 | ||||
| -rw-r--r-- | src/treesit.c | 7 |
2 files changed, 5 insertions, 7 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index d68b50428a9..7bf89ac7d4b 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -503,11 +503,10 @@ echo_add_key (Lisp_Object c) | |||
| 503 | if ((NILP (echo_string) || SCHARS (echo_string) == 0) | 503 | if ((NILP (echo_string) || SCHARS (echo_string) == 0) |
| 504 | && help_char_p (c)) | 504 | && help_char_p (c)) |
| 505 | { | 505 | { |
| 506 | AUTO_STRING (str, " (Type ? for further options, q for quick help)"); | 506 | AUTO_STRING (str, " (Type ? for further options, C-q for quick help)"); |
| 507 | AUTO_LIST2 (props, Qface, Qhelp_key_binding); | 507 | AUTO_LIST2 (props, Qface, Qhelp_key_binding); |
| 508 | Fadd_text_properties (make_fixnum (7), make_fixnum (8), props, str); | 508 | Fadd_text_properties (make_fixnum (7), make_fixnum (8), props, str); |
| 509 | Fadd_text_properties (make_fixnum (30), make_fixnum (31), props, | 509 | Fadd_text_properties (make_fixnum (30), make_fixnum (33), props, str); |
| 510 | str); | ||
| 511 | new_string = concat2 (new_string, str); | 510 | new_string = concat2 (new_string, str); |
| 512 | } | 511 | } |
| 513 | 512 | ||
diff --git a/src/treesit.c b/src/treesit.c index 6570ada1d92..eaa563a54c4 100644 --- a/src/treesit.c +++ b/src/treesit.c | |||
| @@ -2070,12 +2070,11 @@ Note that this function returns an immediate child, not the smallest | |||
| 2070 | 2070 | ||
| 2071 | struct buffer *buf = XBUFFER (XTS_PARSER (XTS_NODE (node)->parser)->buffer); | 2071 | struct buffer *buf = XBUFFER (XTS_PARSER (XTS_NODE (node)->parser)->buffer); |
| 2072 | ptrdiff_t visible_beg = XTS_PARSER (XTS_NODE (node)->parser)->visible_beg; | 2072 | ptrdiff_t visible_beg = XTS_PARSER (XTS_NODE (node)->parser)->visible_beg; |
| 2073 | ptrdiff_t byte_pos = buf_charpos_to_bytepos (buf, XFIXNUM (pos)); | ||
| 2074 | 2073 | ||
| 2075 | treesit_check_position (pos, buf); | 2074 | treesit_check_position (pos, buf); |
| 2076 | |||
| 2077 | treesit_initialize (); | 2075 | treesit_initialize (); |
| 2078 | 2076 | ||
| 2077 | ptrdiff_t byte_pos = buf_charpos_to_bytepos (buf, XFIXNUM (pos)); | ||
| 2079 | TSNode treesit_node = XTS_NODE (node)->node; | 2078 | TSNode treesit_node = XTS_NODE (node)->node; |
| 2080 | TSNode child; | 2079 | TSNode child; |
| 2081 | if (NILP (named)) | 2080 | if (NILP (named)) |
| @@ -2106,14 +2105,14 @@ If NODE is nil, return nil. */) | |||
| 2106 | 2105 | ||
| 2107 | struct buffer *buf = XBUFFER (XTS_PARSER (XTS_NODE (node)->parser)->buffer); | 2106 | struct buffer *buf = XBUFFER (XTS_PARSER (XTS_NODE (node)->parser)->buffer); |
| 2108 | ptrdiff_t visible_beg = XTS_PARSER (XTS_NODE (node)->parser)->visible_beg; | 2107 | ptrdiff_t visible_beg = XTS_PARSER (XTS_NODE (node)->parser)->visible_beg; |
| 2109 | ptrdiff_t byte_beg = buf_charpos_to_bytepos (buf, XFIXNUM (beg)); | ||
| 2110 | ptrdiff_t byte_end = buf_charpos_to_bytepos (buf, XFIXNUM (end)); | ||
| 2111 | 2108 | ||
| 2112 | treesit_check_position (beg, buf); | 2109 | treesit_check_position (beg, buf); |
| 2113 | treesit_check_position (end, buf); | 2110 | treesit_check_position (end, buf); |
| 2114 | 2111 | ||
| 2115 | treesit_initialize (); | 2112 | treesit_initialize (); |
| 2116 | 2113 | ||
| 2114 | ptrdiff_t byte_beg = buf_charpos_to_bytepos (buf, XFIXNUM (beg)); | ||
| 2115 | ptrdiff_t byte_end = buf_charpos_to_bytepos (buf, XFIXNUM (end)); | ||
| 2117 | TSNode treesit_node = XTS_NODE (node)->node; | 2116 | TSNode treesit_node = XTS_NODE (node)->node; |
| 2118 | TSNode child; | 2117 | TSNode child; |
| 2119 | if (NILP (named)) | 2118 | if (NILP (named)) |