unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Dominique Quatravaux <dominique@quatravaux.org>
To: 68956@debbugs.gnu.org
Subject: bug#68956: Workaround
Date: Tue, 6 Feb 2024 18:44:18 +0100	[thread overview]
Message-ID: <CA+tDuRwYC4Lx4Y_6v-iEPEOM5a9=0o2R6LDU4OhWGUORzt1rJQ@mail.gmail.com> (raw)
In-Reply-To: <CA+tDuRzzo_jNofTqB_yFsUwtLv2XSXH=e-4-s21Ai6K79bcKkQ@mail.gmail.com>

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

I had success applying the following workaround:

(advice-add 'bash-ts-mode
            :after (lambda (&rest ignored)
                     (when-let ((bash-things (assq 'bash
treesit-thing-settings)))
                       (setf (alist-get 'text (cdr bash-things))
'(sentence)))))

Now M-q does the right thing for me everywhere in bash-ts-mode.

--
 Dominique Quatravaux
 dominique@quatravaux.org

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

  reply	other threads:[~2024-02-06 17:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` Dominique Quatravaux [this message]
2024-02-10  8:44   ` Eli Zaretskii
2024-02-24  9:32     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+tDuRwYC4Lx4Y_6v-iEPEOM5a9=0o2R6LDU4OhWGUORzt1rJQ@mail.gmail.com' \
    --to=dominique@quatravaux.org \
    --cc=68956@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).