help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Anyone have a 'move-line' function?


From: Bastien
Subject: Re: Anyone have a 'move-line' function?
Date: Wed, 03 May 2006 01:33:22 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

Joe Smith <jes@martnet.com> writes:

> So if there's something already done, or I've missed something
> obvious (most likely), I'll study that before I keep banging 
> away.

Is C-o what you want?  It moves down a line, keeping the point where
it is.  Strangely enough, C-u - 1 C-o seems not to move up a line.

,----[ open-line ]
| open-line is an interactive compiled Lisp function in `simple.el'.
| It is bound to C-o, <insertline>.
| (open-line N)
| 
| Insert a newline and leave point before it.
| If there is a fill prefix and/or a `left-margin', insert them
| on the new line if the line would have been blank.
| With arg N, insert N newlines.
`----

-- 
Bastien


reply via email to

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