[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: query-replace nothing

From: David desJardins
Subject: Re: query-replace nothing
Date: 13 Mar 2003 15:28:30 -0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Dan Jacobson <address@hidden> 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]