aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Kangas2022-12-30 06:45:13 +0100
committerStefan Kangas2022-12-30 06:45:13 +0100
commit89e7bb230d643b3619d7e2ed6855c35184032542 (patch)
treef1e15d573766c8678df581afba91475a4059eda1 /src
parent9153cf8158489d387a6a0d9d0ede9a2528c35f0a (diff)
parent644c71d6788d268cb065bd9317efb8a16a8236e6 (diff)
downloademacs-89e7bb230d643b3619d7e2ed6855c35184032542.tar.gz
emacs-89e7bb230d643b3619d7e2ed6855c35184032542.zip
Merge from origin/emacs-29
644c71d6788 lisp/textmodes/bibtex.el: fix bibtex-beginning-of-entry (... ab38abfdf75 lisp/textmodes/bibtex.el: Treat $ as punctuation in BibTe... d086cd6cf87 Clarify the documentation of 'set-face-attribute' dafa6d6badd Handle non-string values in pcomplete beed746f944 Fix completion when completion-auto-select is set 7ccb88486eb ; * etc/DEBUG: Update MS-Windows specifics for GDB 13 and... 558b59d81b9 Add color fontification in css-ts-mode (bug#60405) a96a7c81151 ; * lisp/textmodes/css-mode.el (css-ts-mode): Fix imenu s... 793641a3db5 ; * lisp/progmodes/js.el: Fix byte-compile warning. 0aea1cf8190 * lisp/hi-lock.el (hi-lock--regexps-at-point): Fix bug (b... 60418e6f09c * src/keyboard.c (echo_add_key): Use recently rebound C-h... 706ed852855 Avoid assertion violations in treesit.c with --enable-che... 38c35bf0f6a Clean up treesit-default-defun-skipper and add comments 9371d488be6 Merge branch 'emacs-29' of git.savannah.gnu.org:/srv/git/... 9d814bea460 ; whitespace.el: Use the new 'ert-with-buffer-selected' i... 784e509bded Fix c-ts-mode bracket indentation (bug#60398)
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c5
-rw-r--r--src/treesit.c7
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);
510str);
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))