* bug#734: 23.0.60; Interactively use a list argument to replace-string + missing documentation
@ 2008-08-16 23:37 Nikos Apostolakis
2019-09-30 6:06 ` Lars Ingebrigtsen
0 siblings, 1 reply; 3+ messages in thread
From: Nikos Apostolakis @ 2008-08-16 23:37 UTC (permalink / raw)
To: emacs-pretest-bug; +Cc: rfrancoise
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#734: 23.0.60; Interactively use a list argument to replace-string + missing documentation
@ 2008-08-28 19:52 Chong Yidong
0 siblings, 0 replies; 3+ messages in thread
From: Chong Yidong @ 2008-08-28 19:52 UTC (permalink / raw)
To: Nikos Apostolakis; +Cc: 734
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#734: 23.0.60; Interactively use a list argument to replace-string + missing documentation
2008-08-16 23:37 Nikos Apostolakis
@ 2019-09-30 6:06 ` Lars Ingebrigtsen
0 siblings, 0 replies; 3+ messages in thread
From: Lars Ingebrigtsen @ 2019-09-30 6:06 UTC (permalink / raw)
To: Nikos Apostolakis; +Cc: rfrancoise, 734
Nikos Apostolakis <nikos.ap@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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-09-30 6:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-28 19:52 bug#734: 23.0.60; Interactively use a list argument to replace-string + missing documentation Chong Yidong
-- strict thread matches above, loose matches on Subject: below --
2008-08-16 23:37 Nikos Apostolakis
2019-09-30 6:06 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.