From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jiri Pejchal" Newsgroups: gmane.emacs.devel Subject: Re: Move selection up, down Date: Wed, 20 Aug 2008 09:45:09 +0200 Message-ID: References: <1422fa24-05d5-436b-82e2-b436af0a00a3@m3g2000hsc.googlegroups.com> <48AB3F8C.4020703@gmail.com> <00b201c9024b$54d92710$0200a8c0@us.oracle.com> <48AB5019.1090608@gmail.com> <00b801c90252$5c847c10$0200a8c0@us.oracle.com> <48AB578C.8060407@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1219218334 28986 80.91.229.12 (20 Aug 2008 07:45:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Aug 2008 07:45:34 +0000 (UTC) Cc: Drew Adams , Emacs Devel To: "Lennart Borgman (gmail)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 20 09:46:21 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KViOY-0000ou-2K for ged-emacs-devel@m.gmane.org; Wed, 20 Aug 2008 09:46:18 +0200 Original-Received: from localhost ([127.0.0.1]:35915 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KViNa-0003Pl-S0 for ged-emacs-devel@m.gmane.org; Wed, 20 Aug 2008 03:45:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KViNW-0003NB-Nw for emacs-devel@gnu.org; Wed, 20 Aug 2008 03:45:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KViNU-0003JS-Lw for emacs-devel@gnu.org; Wed, 20 Aug 2008 03:45:13 -0400 Original-Received: from [199.232.76.173] (port=57710 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KViNU-0003JE-HG for emacs-devel@gnu.org; Wed, 20 Aug 2008 03:45:12 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:4822) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KViNU-0005hU-8l for emacs-devel@gnu.org; Wed, 20 Aug 2008 03:45:12 -0400 Original-Received: from mail-gx0-f12.google.com ([209.85.217.12]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KViNS-0003tn-HJ for emacs-devel@gnu.org; Wed, 20 Aug 2008 03:45:10 -0400 Original-Received: by gxk5 with SMTP id 5so5981344gxk.18 for ; Wed, 20 Aug 2008 00:45:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Zz2mldBmYT0fqgXZst+HIQZ3KB4TwfFj6NWDNqcZqiQ=; b=GAqfvSfZB9xfvNTEf32py1qndLwH3SKYpBmcJNcnPLEdBmfA+cxajU9YaZMKrkB6bJ 8XkW6gyPJRkiUSRO/IXAHH78rkTl8OWxwRzZx91TTzsP7KtXD6f+Zad9pJNEGlv0/CoI VxbYMpBcyxquV0MJqLCgyMkH6JTTMNfnDPdHI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=XtVE80JkqaLLsHSsZcmnGHgaQXUo1xN22amybZmwB6JZ7WYFq3wPV+xeW8I9CRvDbi ++nIlOe0RKuT91GedDRpPmg1zC+m0D1xRsU6jWMnw3dV19zu1rBJNJP/Ia7mTwlLglv3 7/QrB8sAtm4yUVZASvHDkL/RCa50k72BsKerg= Original-Received: by 10.151.42.20 with SMTP id u20mr13482001ybj.70.1219218309358; Wed, 20 Aug 2008 00:45:09 -0700 (PDT) Original-Received: by 10.151.83.21 with HTTP; Wed, 20 Aug 2008 00:45:09 -0700 (PDT) In-Reply-To: <48AB578C.8060407@gmail.com> Content-Disposition: inline X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:102712 Archived-At: On Wed, Aug 20, 2008 at 1:30 AM, Lennart Borgman (gmail) wrote: > 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? > >> Sounds OK to me, but I don't have much of a opinion one way or the other. It >> might require users to sometimes deactivate the region to get today's effect, >> but that's no biggee. >> >> Presumably, the region would be kept active, so you could repeat the operation - >> e.g. `transpose-line' would move the region down a line each time. (That's >> another difference from today's commands - they deactivate the region.) Just to make it clear the netbeans implementation is actually only line oriented. If the selection span less than one line the move/copy operations works on the line with cursor. If the selection span more than one line it operates on those lines. Alt-Shift Left/Right/Up/Down Shift lines left/right/up/down Ctrl-Shift-Up/D Copy lines up/down Jiri Pejchal