* reverse-region-wordwise
@ 2003-09-18 12:12 Roland Winkler
2003-09-18 16:22 ` reverse-region-wordwise Kevin Rodgers
0 siblings, 1 reply; 4+ messages in thread
From: Roland Winkler @ 2003-09-18 12:12 UTC (permalink / raw)
Is there somewhere a function reverse-region-wordwise or do I have
to write it by myself?
Thanks,
Roland
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: reverse-region-wordwise
2003-09-18 12:12 reverse-region-wordwise Roland Winkler
@ 2003-09-18 16:22 ` Kevin Rodgers
2003-09-19 10:14 ` reverse-region-wordwise Roland Winkler
0 siblings, 1 reply; 4+ messages in thread
From: Kevin Rodgers @ 2003-09-18 16:22 UTC (permalink / raw)
Roland Winkler wrote:
> Is there somewhere a function reverse-region-wordwise or do I have
> to write it by myself?
I think you'll have to roll your own, but you could probably get what
you need by making just a few changes to reverse-region in sort.el.
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: reverse-region-wordwise
2003-09-18 16:22 ` reverse-region-wordwise Kevin Rodgers
@ 2003-09-19 10:14 ` Roland Winkler
2003-09-19 16:17 ` reverse-region-wordwise Kevin Rodgers
0 siblings, 1 reply; 4+ messages in thread
From: Roland Winkler @ 2003-09-19 10:14 UTC (permalink / raw)
Kevin Rodgers <ihs_4664@yahoo.com> writes:
> Roland Winkler wrote:
>
> > Is there somewhere a function reverse-region-wordwise or do I have
> > to write it by myself?
>
> I think you'll have to roll your own, but you could probably get what
>
> you need by making just a few changes to reverse-region in sort.el.
Yes and no. I haven't decided yet which features I actually would
like to have. In particular, how should this function handle
different wordbreak characters like whitespace and newline?
Roland
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: reverse-region-wordwise
2003-09-19 10:14 ` reverse-region-wordwise Roland Winkler
@ 2003-09-19 16:17 ` Kevin Rodgers
0 siblings, 0 replies; 4+ messages in thread
From: Kevin Rodgers @ 2003-09-19 16:17 UTC (permalink / raw)
Roland Winkler wrote:
> Kevin Rodgers <ihs_4664@yahoo.com> writes:
>>Roland Winkler wrote:
>>>Is there somewhere a function reverse-region-wordwise or do I have
>>>to write it by myself?
>>
>>I think you'll have to roll your own, but you could probably get what
>>you need by making just a few changes to reverse-region in sort.el.
>
> Yes and no. I haven't decided yet which features I actually would
> like to have. In particular, how should this function handle
> different wordbreak characters like whitespace and newline?
Well, what are the choices?
1. Preserve the whitespace verbatim between words, so that
a b c
d e
f
becomes
f
e d
c b a
2. Preserve the shape of the paragraph, so that it becomes
f e d
c b
a
I think (1) would be easier to implement and makes a more sensible
default, so I'd start there. Then you could implement (2) as an option
(e.g. controlled by a prefix arg).
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-09-19 16:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-18 12:12 reverse-region-wordwise Roland Winkler
2003-09-18 16:22 ` reverse-region-wordwise Kevin Rodgers
2003-09-19 10:14 ` reverse-region-wordwise Roland Winkler
2003-09-19 16:17 ` reverse-region-wordwise Kevin Rodgers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).