GNU bug report logs - #734
23.0.60; Interactively use a list argument to replace-string + missing documentation

Previous Next

Package: emacs;

Reported by: Nikos Apostolakis <nikos.ap <at> gmail.com>

Date: Sat, 16 Aug 2008 23:45:04 UTC

Severity: wishlist

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 734 in the body.
You can then email your comments to 734 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#734; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Nikos Apostolakis <nikos.ap <at> gmail.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

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




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#734; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Chong Yidong <cyd <at> stupidchicken.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #10 received at 734 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
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
Date: Thu, 28 Aug 2008 15:52:12 -0400
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.




Severity set to `wishlist' from `normal' Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> emacsbugs.donarmstrong.com. (Thu, 28 Aug 2008 20:00:04 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#734; Package emacs. (Mon, 30 Sep 2019 06:07:02 GMT) Full text and rfc822 format available.

Message #15 received at 734 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Nikos Apostolakis <nikos.ap <at> gmail.com>
Cc: rfrancoise <at> debian.org, 734 <at> debbugs.gnu.org
Subject: Re: bug#734: 23.0.60; Interactively use a list argument to
 replace-string + missing documentation
Date: Mon, 30 Sep 2019 08:06:51 +0200
Nikos Apostolakis <nikos.ap <at> gmail.com> writes:

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

The underlying function supports a complex list of replacements, but
`replace-match' does not: It's an interactive-only function, and
entering a list of strings interactively doesn't make much sense.

So I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 734 <at> debbugs.gnu.org and Nikos Apostolakis <nikos.ap <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 30 Sep 2019 06:08:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 28 Oct 2019 11:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 194 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.