help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Using interactive functions in functions


From: Michael Slass
Subject: Re: Using interactive functions in functions
Date: Fri, 06 Dec 2002 21:49:04 GMT
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Bill Wohler <wohler@newt.com> writes:

>  Consider the following fragment which runs tags-query-replace on a
>  number of strings:
>
>    (let ((strings '("foo" "bar")))
>      (while strings
>       (tags-query-replace (car strings) "newstring")
>       (setq strings (cdr strings)))
>
>  However, this loop ends when tags-query-replace returns the first time
>  so "bar" is never replaced.
>

What happens if you use query-replace (which see) instead?
-- 
Mike Slass


reply via email to

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