unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* query-replace nothing
@ 2003-03-13 19:36 Dan Jacobson
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Jacobson @ 2003-03-13 19:36 UTC (permalink / raw)


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.
-- 
http://jidanni.org/ Taiwan(04)25854780

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: query-replace nothing
       [not found] <mailman.3187.1047597159.21513.bug-gnu-emacs@gnu.org>
@ 2003-03-13 23:28 ` David desJardins
  0 siblings, 0 replies; 2+ messages in thread
From: David desJardins @ 2003-03-13 23:28 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-03-13 23:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.3187.1047597159.21513.bug-gnu-emacs@gnu.org>
2003-03-13 23:28 ` query-replace nothing David desJardins
2003-03-13 19:36 Dan Jacobson

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).