From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Deniz Dogan Newsgroups: gmane.emacs.devel Subject: Re: line-move-down-up Date: Tue, 19 Apr 2011 11:34:19 +0200 Message-ID: References: <87fwpfpr7e.fsf@uwakimon.sk.tsukuba.ac.jp> <87d3kjpnef.fsf@uwakimon.sk.tsukuba.ac.jp> <86A92122-FB88-43D9-B187-423835B6F671@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1303205693 14843 80.91.229.12 (19 Apr 2011 09:34:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 19 Apr 2011 09:34:53 +0000 (UTC) Cc: Emacs Dev To: Ivan Andrus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 19 11:34:46 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QC7KY-00048X-HE for ged-emacs-devel@m.gmane.org; Tue, 19 Apr 2011 11:34:46 +0200 Original-Received: from localhost ([::1]:43291 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QC7KY-0007Wm-0z for ged-emacs-devel@m.gmane.org; Tue, 19 Apr 2011 05:34:46 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:58997) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QC7KU-0007QS-GU for emacs-devel@gnu.org; Tue, 19 Apr 2011 05:34:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QC7KS-0004Qh-Sd for emacs-devel@gnu.org; Tue, 19 Apr 2011 05:34:42 -0400 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:32813) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QC7KS-0004Qb-N1 for emacs-devel@gnu.org; Tue, 19 Apr 2011 05:34:40 -0400 Original-Received: by iyh42 with SMTP id 42so6633086iyh.0 for ; Tue, 19 Apr 2011 02:34:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=GFMxvUVaE93TPBG2419mVoheftRfvrjyyj+vtbHVhmU=; b=MxL6INABVG9vQOVjAhGVwYa0TPGw4M/P7TxTnhJsRqvgi5KqG8F+Pq/y9iOtLQCXo2 4wGNLTkYnmno5fzQdTo8zIQssUq+X1gXLFch3NzL8Pxo3Axvu9lTmMufsJiv13NSVvQR 8f4ZgLp7hTC3KDkP3e3SSVMPa7CvHD6cfNpV4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=EMmdsRR1I8evfqrvcbGegsWX6bcl14n7ySO8G/3IWi+DTj3o66ikFy60svSlNDOYWL O5QbUhlELsLXuWFHrFKA9riOx/r651d0/KYB4YmmxYHDFlwy3TIpqOraEzWn3twTeq4W 3O71Cqt652R/LGzPKRVIa988/YNnGRPvavwdo= Original-Received: by 10.42.108.7 with SMTP id f7mr7958354icp.460.1303205679513; Tue, 19 Apr 2011 02:34:39 -0700 (PDT) Original-Received: by 10.42.227.202 with HTTP; Tue, 19 Apr 2011 02:34:19 -0700 (PDT) In-Reply-To: <86A92122-FB88-43D9-B187-423835B6F671@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.210.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:138570 Archived-At: 2011/4/19 Ivan Andrus : > On Apr 18, 2011, at 5:56 PM, Alin Soare wrote: > > 2011/4/18 Stephen J. Turnbull >> >> Alin Soare writes: >> >> > > look better: >> > >> > (define-key global-map [(meta up)] (lambda (&optional n) (interactive >> "P") >> > (line-move-down (if (numberp n) (- n) -1)))) >> >> Yeah, sorry about that. >> >> > But, yes. You are right. >> > >> > Transpose-lines does the job, but not as I wish. >> >> Of course it doesn't. All defaults suck for somebody. That's what >> .emacs is for. >> >> If you want to impose the burden of maintenance on the team, you need >> to explain why your version is an improvement for a lot of people. > > I used the meta + up-down, using the model of spreadsheets of org-mode, that > I use. It is the most convenient conbination for me. > > If I use C-x C-t, the cursor goes down, while the line goes up. I cannot > move the line the second time. > > And this only transposes the line, not move the line. > > I need move, not transpose, and I cannot find this in emacs. > > I also use this functionality, but I get it from drag-stuff.el (not written > by me) which has the advantage of being on http://tromey.com/elpa/ . It > also has functionality for dragging words and region, though I rarely use > it. The only problem it has (for me) is that it interferes with org-mode's > M-up/down, but you can fix that by setting `drag-stuff-except-modes'. > I have thought about adding the ability to drag defun's and such, but so far > haven't taken the time. I can't find drag-stuff when I do M-x package-list-packages. Where can I find it? -- Deniz Dogan