emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Move selection up, down


From: Lennart Borgman (gmail)
Subject: Re: Move selection up, down
Date: Wed, 20 Aug 2008 01:48:38 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

Drew Adams wrote:
>>>>> What will you do with `transpose-word', for instance, when 
>>>>> there is an active region? I don't follow the suggestion.
>>>>> How about some examples?
>>>> Move the next or previous word (depending on which side of 
>>>> the region you are on) to the other side of the region.
>>>> Is not that a natural
>>>> extension?
>>> Dunno. I would expect it instead to swap the region and the 
>>> next or previous word, leaving the separator chars between
>>> them. `transpose-word' recognizes intervening non-word chars
>>> (any number), and swaps the words around them.
>> Isn't that the same thing?
> 
> It depends on what you meant. If that's what you meant, then it's the same
> thing. ;-) 
> 
> But just moving the next or previous word to the other side of the region is
> different from swapping their places around the separators.
> 
> region sep word
> 
> 1. word region sep 
> (word moved to other side of region)
> 
> 2. word sep region
> (word and region swapped around separator)
> 
> I thought perhaps you meant #1. I described #2.

I think #1 would not be consistent with word definitions etc.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]