From: Joel Reicher <joel.reicher@gmail.com>
To: Help GNU Emacs <help-gnu-emacs@gnu.org>
Subject: Re: Any package for boolean search?
Date: Sun, 29 Dec 2024 03:06:46 +1100 [thread overview]
Message-ID: <868qrzaj1l.fsf@gmail.com> (raw)
In-Reply-To: <Z3AAd6FLMvVirWnr@lco2> (Jean Louis's message of "Sat, 28 Dec 2024 16:43:19 +0300")
Jean Louis <bugs@gnu.support> writes:
> * Joel Reicher <joel.reicher@gmail.com> [2024-12-28 06:46]:
>> But if you're not designing the syntax and you want to find
>> something that will do an existing syntax, possibly the
>> simplest is Lisp itself since Lisp has all these operators and
>> is homoiconic. If the query syntax is Lisp, the string can be
>> passed to read and eval and you're done, I think.
>
> I would not like eval-ing on remote server for some reasons 🤔.
Solving a search query is an eval, but I think you are saying you
want to avoid code injection which is fair enough.
Off the top of my head you can map over the sexpr returned by read
and rewrite the symbols to ones you control before evaling.
In my opinion it is still worth avoiding a parse, which is what
Lisp can give you.
Regards,
- Joel
next prev parent reply other threads:[~2024-12-28 16:06 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-25 10:01 Any package for boolean search? Jean Louis
2024-12-25 16:21 ` [External] : " Drew Adams
2024-12-26 0:15 ` Jean Louis
2024-12-26 6:02 ` Joel Reicher
2024-12-26 10:58 ` Jean Louis
2024-12-26 23:14 ` Joel Reicher
2024-12-27 11:05 ` Jean Louis
2024-12-28 3:44 ` Joel Reicher
2024-12-28 13:43 ` Jean Louis
2024-12-28 16:06 ` Joel Reicher [this message]
2024-12-28 16:20 ` Jean Louis
2024-12-26 11:00 ` Jean Louis
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=868qrzaj1l.fsf@gmail.com \
--to=joel.reicher@gmail.com \
--cc=help-gnu-emacs@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.
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).