GNU bug report logs - #68956
M-q → Invalid predicate, see ‘treesit-thing-settings’ for valid forms for a predicate: nil

Previous Next

Package: emacs;

Reported by: Dominique Quatravaux <dominique <at> quatravaux.org>

Date: Tue, 6 Feb 2024 17:34:01 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Dominique Quatravaux <dominique <at> quatravaux.org>
Subject: bug#68956: closed (Re: bug#68956: M-q →
 Invalid predicate, see ‘treesit-thing-settings’
 for valid forms for a predicate: nil)
Date: Mon, 22 Apr 2024 10:57:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#68956: M-q → Invalid predicate, see ‘treesit-thing-settings’ for valid forms for a predicate: nil

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 68956 <at> debbugs.gnu.org.

-- 
68956: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=68956
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: Dominique Quatravaux <dominique <at> quatravaux.org>
Cc: casouri <at> gmail.com, 68956-done <at> debbugs.gnu.org
Subject: Re: bug#68956: M-q → Invalid predicate, see
 ‘treesit-thing-settings’ for valid forms for a
 predicate: nil
Date: Mon, 22 Apr 2024 13:55:45 +0300
> From: Dominique Quatravaux <dominique <at> quatravaux.org>
> Date: Mon, 22 Apr 2024 12:53:52 +0200
> Cc: casouri <at> gmail.com, 68956 <at> debbugs.gnu.org
> 
> Le sam. 20 avr. 2024 à 09:45, Eli Zaretskii <eliz <at> gnu.org> a écrit :
> 
>  Ping!  Dominique, could you please answer Yuan's question below?
> 
> Dear Eli, dear Yuan, I just rebuilt my Emacs to version 4d9629b087fe6df941b553c6931b2f8996901e21 and
> indeed M-q doesn't crash anymore.
> 
> Please feel free to close bug#68956.

Thanks, closing.

[Message part 3 (message/rfc822, inline)]
From: Dominique Quatravaux <dominique <at> quatravaux.org>
To: bug-gnu-emacs <at> gnu.org
Subject: M-q → Invalid predicate, see ‘treesit-thing-settings’ for valid forms for a predicate: nil
Date: Tue, 6 Feb 2024 18:32:27 +0100
[Message part 4 (text/plain, inline)]
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 <at> quatravaux.org
[Message part 5 (text/html, inline)]

This bug report was last modified 1 year and 31 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.