unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#68956: M-q → Invalid predicate, see ‘treesit-thing-settings’ for valid forms for a predicate: nil
@ 2024-02-06 17:32 Dominique Quatravaux
  2024-02-06 17:44 ` bug#68956: Workaround Dominique Quatravaux
  0 siblings, 1 reply; 9+ messages in thread
From: Dominique Quatravaux @ 2024-02-06 17:32 UTC (permalink / raw)
  To: 68956

[-- Attachment #1: Type: text/plain, Size: 663 bytes --]

When invoking `prog-fill-reindent-defun' from inside a bash-ts-mode buffer,
an exception (regardless of where point is), an error is raised that reads

Invalid predicate, see ‘treesit-thing-settings’ for valid forms for a
predicate: nil

Investigation reveals that `prog-fill-reindent-defun' calls
`treesit-node-match-p' with 'text as the second argument, which can only
succeed if `(assq 'text (assq 'bash treesit-thing-settings))' is non-nil;
whereas the corresponding setting for `treesit-thing-settings' prepared by
`bash-ts-mode', doesn't provide a value for 'text (only for 'sentence).

--
 Dominique Quatravaux
 dominique@quatravaux.org

[-- Attachment #2: Type: text/html, Size: 942 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <27A9A540-66CC-4017-AC7A-5D8937A780B4@gmail.com>]

end of thread, other threads:[~2024-04-22 10:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-06 17:32 bug#68956: M-q → Invalid predicate, see ‘treesit-thing-settings’ for valid forms for a predicate: nil Dominique Quatravaux
2024-02-06 17:44 ` bug#68956: Workaround Dominique Quatravaux
2024-02-10  8:44   ` bug#68956: M-q → Invalid predicate, see ‘treesit-thing-settings’ for valid forms for a predicate: nil Eli Zaretskii
2024-02-24  9:32     ` Eli Zaretskii
     [not found] <27A9A540-66CC-4017-AC7A-5D8937A780B4@gmail.com>
2024-04-10  6:03 ` Yuan Fu
2024-04-10 10:51   ` Eli Zaretskii
2024-04-20  7:45     ` Eli Zaretskii
2024-04-22 10:53       ` Dominique Quatravaux
2024-04-22 10:55         ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).