From: David desJardins <desj@Math.Berkeley.EDU>
Subject: Re: query-replace nothing
Date: 13 Mar 2003 15:28:30 -0800 [thread overview]
Message-ID: <vohhea63kyp.fsf@math.berkeley.edu> (raw)
In-Reply-To: <mailman.3187.1047597159.21513.bug-gnu-emacs@gnu.org>
Dan Jacobson <jidanni@dman.ddts.net> writes:
> Aren't you going to catch
> (query-replace "" "" nil nil nil) etc., i.e. query-replace-regexp
> preferably when the user enters the first empty field.
It's legal, and even (occasionally) useful, to query-replace the empty
string with a nonempty string.
I can't really think of a reason why you would ever want to
query-replace a string with the same string, but I'm not sure I see a
reason to generate an error, either.
David desJardins
next parent reply other threads:[~2003-03-13 23:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.3187.1047597159.21513.bug-gnu-emacs@gnu.org>
2003-03-13 23:28 ` David desJardins [this message]
2003-03-13 19:36 query-replace nothing Dan Jacobson
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=vohhea63kyp.fsf@math.berkeley.edu \
--to=desj@math.berkeley.edu \
--cc=david@desjardins.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).