all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Stephen J. Turnbull" <stephen@xemacs.org>
To: A Soare <as1789@gmail.com>
Cc: emacs-devel@gnu.org
Subject: line-move-down-up
Date: Mon, 18 Apr 2011 23:30:29 +0900	[thread overview]
Message-ID: <87fwpfpr7e.fsf@uwakimon.sk.tsukuba.ac.jp> (raw)
In-Reply-To: <loom.20110418T152532-633@post.gmane.org>

A Soare writes:
 > 
 > (defun line-move-down (n)
 >   (let ((column (current-column))

Oops, no interactive declaration.  I gather you haven't even tried
these functions at home?  Proposing two global bindings is a little
early I suppose....

Besides, if I understand what the function actually does, it's mostly
subsumed by transpose-lines, which already has a binding C-x C-t, and
(at least in the Emacsen I'm using) a nifty feature of exchanging the
lines containing point and mark respectively when the argument is 0.




  parent reply	other threads:[~2011-04-18 14:30 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-18 13:26 line-move-down-up A Soare
2011-04-18 13:36 ` line-move-down-up Deniz Dogan
2011-04-18 13:40   ` line-move-down-up A Soare
2011-04-18 14:51     ` line-move-down-up A Soare
2011-04-18 15:31       ` line-move-down-up Deniz Dogan
2011-04-18 15:37         ` line-move-down-up A Soare
2011-04-18 14:30 ` Stephen J. Turnbull [this message]
2011-04-18 14:53   ` line-move-down-up A Soare
     [not found]   ` <BANLkTimKts-mZSMmbeo=rOCeP8+Un2aZjA@mail.gmail.com>
     [not found]     ` <87d3kjpnef.fsf@uwakimon.sk.tsukuba.ac.jp>
2011-04-18 15:56       ` line-move-down-up Alin Soare
2011-04-18 19:24         ` line-move-down-up Davis Herring
2011-04-20 17:22           ` line-move-down-up Alin Soare
2011-04-19  8:20         ` line-move-down-up Ivan Andrus
2011-04-19  9:34           ` line-move-down-up Deniz Dogan
2011-04-21  9:28             ` line-move-down-up Ivan Andrus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fwpfpr7e.fsf@uwakimon.sk.tsukuba.ac.jp \
    --to=stephen@xemacs.org \
    --cc=as1789@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.