From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Bill Wohler Newsgroups: gmane.emacs.help Subject: Using interactive functions in functions Date: Fri, 06 Dec 2002 13:24:41 -0800 Sender: help-gnu-emacs-admin@gnu.org Message-ID: <200212062124.gB6LOfrv016490@gbr.newt.com> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1039210403 22971 80.91.224.249 (6 Dec 2002 21:33:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 6 Dec 2002 21:33:23 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18KQ66-0005yN-00 for ; Fri, 06 Dec 2002 22:33:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18KPz0-0002PG-00; Fri, 06 Dec 2002 16:26:02 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18KPxo-0001cn-00 for help-gnu-emacs@gnu.org; Fri, 06 Dec 2002 16:24:48 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18KPxk-0001YL-00 for help-gnu-emacs@gnu.org; Fri, 06 Dec 2002 16:24:45 -0500 Original-Received: from adsl-209-233-16-176.dsl.snfc21.pacbell.net ([209.233.16.176] helo=gbr.newt.com) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18KPxj-0001Xd-00 for help-gnu-emacs@gnu.org; Fri, 06 Dec 2002 16:24:43 -0500 Original-Received: from newt.com (wohler@localhost [127.0.0.1]) by gbr.newt.com (8.12.6/8.12.6/Debian-6Woody) with ESMTP id gB6LOfrv016490 for ; Fri, 6 Dec 2002 13:24:42 -0800 Original-To: help-gnu-emacs@gnu.org X-Mailer: MH-E 7.0+cvs; nmh 1.0.4+dev; Emacs 21.2 X-Face: "5k'?Iz]8K@!MNcM~N?&Uw3~UkuQ+b^{)ecyVaJlgKxZsT76xpl+W$/c9RtY/Y6sz>Gg)!b>}74-9nWJC&ajPue}*aD@s"?sQ6;P]M|q1^@We1p_T(A.u[0>+]Ez|;`.biir|K7$UQS=8rxc)`O^~DJs-a7p7XENI_7c]
  • List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:4358 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:4358 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 magic do I need to wrap tags-query-replace in to continue with the rest of the strings? -- Bill Wohler http://www.newt.com/wohler/ GnuPG ID:610BD9AD Maintainer of comp.mail.mh FAQ and MH-E. Vote Libertarian! If you're passed on the right, you're in the wrong lane.