From: Yuan Fu <casouri@gmail.com>
To: Emanuel Berg <incal@dataswamp.org>
Cc: emacs-devel@gnu.org
Subject: Re: master 0724c6dbdae: Use string-search instead of string-match[-p] when possible
Date: Sun, 26 Mar 2023 21:58:37 -0700 [thread overview]
Message-ID: <5D16DF84-5CC8-478E-96F4-6FEC0959BD40@gmail.com> (raw)
In-Reply-To: <87bkkfozlp.fsf@dataswamp.org>
> On Mar 26, 2023, at 4:35 PM, Emanuel Berg <incal@dataswamp.org> wrote:
>
> Okay, I've never heard of this, because the byte-compiler
> don't complain and it isn't in the docstrings either what
> I can see.
>
> I have 14 string-match[-p], so what is the rule when they
> should be replaced by `string-search' and when not do that,
> and why?
When the search string shouldn’t be interpreted as regexp, I presume?
Yuan
next prev parent reply other threads:[~2023-03-27 4:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <167982767456.13549.3313290435008922358@vcs2.savannah.gnu.org>
[not found] ` <20230326104755.356B1C1391D@vcs2.savannah.gnu.org>
2023-03-26 23:05 ` master 0724c6dbdae: Use string-search instead of string-match[-p] when possible Dmitry Gutov
2023-03-26 23:35 ` Emanuel Berg
2023-03-27 4:58 ` Yuan Fu [this message]
2023-03-27 12:47 ` Mattias Engdegård
2023-03-29 15:23 ` Robert Pluim
2023-03-29 15:34 ` Mattias Engdegård
2023-03-29 15:54 ` Robert Pluim
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5D16DF84-5CC8-478E-96F4-6FEC0959BD40@gmail.com \
--to=casouri@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=incal@dataswamp.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.