From: Ergus <spacibba@aol.com>
To: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: isearch-lax question error?
Date: Wed, 3 Apr 2024 20:56:51 +0200 [thread overview]
Message-ID: <5cxaqmf35sbcpvdfmvd2n7nvgunqwbfsgrxa6cyng3cbpo5z7u@itqcn57665a2> (raw)
In-Reply-To: 5cxaqmf35sbcpvdfmvd2n7nvgunqwbfsgrxa6cyng3cbpo5z7u.ref@itqcn57665a2
Hi:
I am trying to create a lax isearch interactive that use ".*?" but
independent from the default one very useful as well.
I already have isearch-lax-whitespace and search-whitespace-regexp to
the defaults.
And in my function I only want to change search-spaces-regexp in order
to make the command temporarily more flexible.
so far I have something simple like this:
(defun my/isearch-forward ()
(interactive)
(let ((search-spaces-regexp ".*?")) ;; I alternated this with search-whitespace-regexp
(call-interactively 'isearch-forward)))
However this does not behave as expected; it changes nothing compared to
the default behavior.
But If I set (defcustom isearch-lax-whitespace ".*?") then I get the
right behavior in the normal isearch-forward.
What I am missing here?
Thanks in advance,
Ergus
next parent reply other threads:[~2024-04-03 18:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <5cxaqmf35sbcpvdfmvd2n7nvgunqwbfsgrxa6cyng3cbpo5z7u.ref@itqcn57665a2>
2024-04-03 18:56 ` Ergus [this message]
2024-04-04 5:07 ` isearch-lax question error? Philip Kaludercic
2024-04-04 5:15 ` Philip Kaludercic
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=5cxaqmf35sbcpvdfmvd2n7nvgunqwbfsgrxa6cyng3cbpo5z7u@itqcn57665a2 \
--to=spacibba@aol.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).