From: Thien-Thi Nguyen <ttn@gnuvola.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Move line
Date: Sun, 01 Jun 2008 07:48:55 +0200 [thread overview]
Message-ID: <87lk1p7liw.fsf@ambire.localdomain> (raw)
In-Reply-To: <slrng43me2.64g.joostkremers@j.kremers4.news.arnhem.chello.nl> (Joost Kremers's message of "31 May 2008 23:03:20 GMT")
⎛⎞ Joost Kremers <joostkremers@yahoo.com>
⎝⎠ 31 May 2008 23:03:20 GMT
it's much simpler and shorter, and does something completely different...
I think OP wants some fusion of transpose-lines plus "save-excursion",
something like:
(defun transpose-lines/stay-put ()
(let ((col (current-column)))
(forward-line 1)
(transpose-lines 1)
(forward-line -1)
(forward-char col)))
thi
next prev parent reply other threads:[~2008-06-01 5:48 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-31 15:57 Move line rock69
2008-05-31 16:53 ` rock69
2008-05-31 21:15 ` Eli Zaretskii
2008-05-31 21:22 ` Lennart Borgman (gmail)
2008-06-01 3:14 ` Eli Zaretskii
[not found] ` <mailman.12500.1212268508.18990.help-gnu-emacs@gnu.org>
2008-05-31 23:03 ` Joost Kremers
2008-06-01 5:48 ` Thien-Thi Nguyen [this message]
2008-05-31 21:51 ` Peter Dyballa
2008-06-01 5:39 ` William Xu
2008-06-01 5:57 ` Bastien
2008-06-02 12:34 ` Ken Goldman
-- strict thread matches above, loose matches on Subject: below --
2008-06-01 7:39 martin rudalics
2008-06-01 7:54 ` Lennart Borgman (gmail)
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=87lk1p7liw.fsf@ambire.localdomain \
--to=ttn@gnuvola.org \
--cc=help-gnu-emacs@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.