Chong Yidong <cyd <at> stupidchicken.com>
to control <at> emacsbugs.donarmstrong.com.
Full text available.Received: (at unknown) by unknown; unknown X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-3.7 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 734) by emacsbugs.donarmstrong.com; 28 Aug 2008 19:50:20 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7SJoGUE024178 for <734 <at> emacsbugs.donarmstrong.com>; Thu, 28 Aug 2008 12:50:18 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 2DE7657E186; Thu, 28 Aug 2008 15:52:12 -0400 (EDT) To: Nikos Apostolakis <nikos.ap <at> gmail.com> Cc: 734 <at> debbugs.gnu.org Subject: 23.0.60; Interactively use a list argument to replace-string + missing documentation From: Chong Yidong <cyd <at> stupidchicken.com> Date: Thu, 28 Aug 2008 15:52:12 -0400 Message-ID: <87fxoo534j.fsf <at> cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii One of the reason we don't document the fact that the second argument to replace-string can be a list of strings is that currently this can only be used programmatically. As noted in its docstring, replace-string is seldom the right thing to use in a Lisp program. As for providing a way to use this feature interactively, that might be feasible in the future.
Chong Yidong <cyd <at> stupidchicken.com>:Emacs Bugs <bug-gnu-emacs <at> gnu.org>.
Full text available.bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:bug#734; Package emacs.
Full text available.
Received: (at unknown) by unknown; unknown
X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02
(2007-08-08) on rzlab.ucr.edu
X-Spam-Level:
X-Spam-Status: No, score=-8.0 required=4.0 tests=BAYES_00,RCVD_IN_DNSWL_MED
autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02
Received: (at submit) by emacsbugs.donarmstrong.com; 16 Aug 2008 23:35:43 +0000
Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10])
by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7GNZefK025176
for <submit <at> emacsbugs.donarmstrong.com>; Sat, 16 Aug 2008 16:35:41 -0700
Received: from mail.gnu.org ([199.232.76.166]:51220 helo=mx10.gnu.org)
by fencepost.gnu.org with esmtp (Exim 4.67)
(envelope-from <nikos.ap <at> gmail.com>)
id 1KUVHs-000189-2a
for emacs-pretest-bug <at> gnu.org; Sat, 16 Aug 2008 19:34:24 -0400
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60)
(envelope-from <nikos.ap <at> gmail.com>)
id 1KUVJ2-0005KU-52
for emacs-pretest-bug <at> gnu.org; Sat, 16 Aug 2008 19:35:39 -0400
Received: from wx-out-0506.google.com ([66.249.82.233]:64405)
by monty-python.gnu.org with esmtp (Exim 4.60)
(envelope-from <nikos.ap <at> gmail.com>)
id 1KUVJ1-0005KK-Sz
for emacs-pretest-bug <at> gnu.org; Sat, 16 Aug 2008 19:35:35 -0400
Received: by wx-out-0506.google.com with SMTP id h28so675373wxd.24
for <emacs-pretest-bug <at> gnu.org>; Sat, 16 Aug 2008 16:35:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=gamma;
h=domainkey-signature:received:received:from:to:cc:subject:date
:message-id:mime-version:content-type;
bh=REN1UlQcDxOwTEYaptye91C93TVJAPh1OIzO1cB4PK8=;
b=p73kEZUgDxZydOmXaA1YPcR0oIe5T2DmxXbTdky3auFFL17PKDc4KiMI3s33O0/MC0
3p7Kgfs7K4eZXIk5z4F/eYzgYx/QSA4DoyUcO2sxOo9L+fGmThJZAan0wX3lKeYC6Qwa
7KTn6e0TVVXXjIEBEAv8p1SGkEBjD1dpqF42Y=
DomainKey-Signature: a=rsa-sha1; c=nofws;
d=gmail.com; s=gamma;
h=from:to:cc:subject:date:message-id:mime-version:content-type;
b=aj4KEHkns1BHmS+i/dOdanUaVNGYjll0WFmcwrhXVU9qlSaw/JT25siK0kexQgnrZu
yKI6gzm7JnB+8AGbk4ONwsSF+y4EJWug418vy7fSS5UqiVECp9rtxBk5WKKmLg0rvG63
rDK8jM+D8a2LjzYXsB/5v3lXCUlUt0dRvGTFM=
Received: by 10.70.26.8 with SMTP id 8mr5283128wxz.13.1218929734465;
Sat, 16 Aug 2008 16:35:34 -0700 (PDT)
Received: from knotter.earthlink.net ( [68.161.107.145])
by mx.google.com with ESMTPS id 8sm5034606hsp.4.2008.08.16.16.35.33
(version=TLSv1/SSLv3 cipher=RC4-MD5);
Sat, 16 Aug 2008 16:35:33 -0700 (PDT)
From: Nikos Apostolakis <nikos.ap <at> gmail.com>
To: emacs-pretest-bug <at> gnu.org
Cc: rfrancoise <at> debian.org
Subject: 23.0.60; Interactively use a list argument to replace-string + missing documentation
Date: Sat, 16 Aug 2008 19:37:06 -0400
Message-ID: <87skt45y71.fsf <at> knotter.earthlink.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2)
I learned from a post in gnu.emacs.help that the second argument to
replace-string can be a list of strings. In this case the elements of
the list are used in cyclic order. It appears that this feature can't
be used when the function is used interactively. I think this can be
a very useful feature and should probably be accessible interactively.
Also this behavior is not documented in the doc string or the info page
of replace-string -- although it is documented in the info page for
perform-replace function.
Thanks,
Nikos
Nikos Apostolakis <nikos.ap <at> gmail.com>:Emacs Bugs <bug-gnu-emacs <at> gnu.org>.
Full text available.bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:bug#734; Package emacs.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.