unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Yuan Fu <casouri@gmail.com>
To: "Mattias Engdegård" <mattias.engdegard@gmail.com>
Cc: contovob@tcd.ie, 44418@debbugs.gnu.org, larsi@gnus.org,
	monnier@iro.umontreal.ca
Subject: bug#44418: 28.0.50; Spliced variable not matched as symbol in  isearch
Date: Fri, 23 Jun 2023 15:39:20 -0700	[thread overview]
Message-ID: <B281B6A2-452B-487F-9017-5C59F048438C@gmail.com> (raw)
In-Reply-To: <87zh3yh2mb.fsf@tcd.ie>


Mattias Engdegård <mattias.engdegard@gmail.com> writes:

>> Maybe we can introduce (@ NAME) as alternative syntax?
>
> Here is a proof-of-concept (missing tests and documentation), but it works and I think it's a definite improvement.
>
> Maybe we can get a blessing from Yuan Fu. To recap, this permits the
> syntax (@ symbol-name) as an alternative to @symbol-name in treesit
> queries because that allows symbol searching to match the symbol-name,
> and this can be really helpful.

I want to point out that a) this will add complexity and make the syntax
harder to read and learn (however minuscule the impact might be); b) is
not enough by itself to make isearch symbol work with capture names:
whoever write the code must _use_ this syntax; and c) I don’t think
isearch symbol itself is popular/important enough to justify the change.

Yuan





  parent reply	other threads:[~2023-06-23 22:39 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-03 15:38 bug#44418: 28.0.50; Spliced variable not matched as symbol in isearch Basil L. Contovounesios
2022-06-07 10:29 ` Lars Ingebrigtsen
2022-06-07 12:05   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-07 17:45     ` Lars Ingebrigtsen
2022-06-07 18:20       ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-07 18:28         ` Lars Ingebrigtsen
2022-06-08 12:29         ` Lars Ingebrigtsen
2023-06-21 15:59 ` Mattias Engdegård
2023-06-21 17:15   ` Eli Zaretskii
2023-06-22  8:50     ` Mattias Engdegård
2023-06-22 10:11       ` Eli Zaretskii
2023-06-22 11:24         ` Mattias Engdegård
2023-06-23 11:58   ` Basil Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-06-23 12:06     ` Mattias Engdegård
2023-06-23 16:54       ` Mattias Engdegård
2023-06-23 22:39 ` Yuan Fu [this message]
2023-06-24  6:39   ` Eli Zaretskii
2023-06-24 10:12   ` Mattias Engdegård
2023-06-25 11:38     ` Basil Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-08 23:48     ` Yuan Fu
2023-07-09  6:07       ` Eli Zaretskii
2023-07-09 12:36         ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-12 15:09           ` Dmitry Gutov
2023-07-12 14:46       ` Mattias Engdegård
2023-07-12 15:26         ` Basil Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-18  1:54           ` Dmitry Gutov
2023-07-18  8:35             ` Basil Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors

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=B281B6A2-452B-487F-9017-5C59F048438C@gmail.com \
    --to=casouri@gmail.com \
    --cc=44418@debbugs.gnu.org \
    --cc=contovob@tcd.ie \
    --cc=larsi@gnus.org \
    --cc=mattias.engdegard@gmail.com \
    --cc=monnier@iro.umontreal.ca \
    /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).