emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: Bug in `open-rectangle'?


From: Kim F. Storm
Subject: Re: Bug in `open-rectangle'?
Date: Wed, 20 Jul 2005 10:29:58 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Mathias Dahl <address@hidden> writes:

> It seems to me that `open-rectangle' has a bug, or is not documented
> correctly. Try the following:
>
> Enter the following text:
>
>     This is a block of text.  This is a block of text.  This is a block
>     of text.  This is a block of text.  This is a block of text.  This
>     is a block of text.  This is a block of text.
>
> Place cursor at the beginning of the first line of text and set the
> mark (C-SPC).
>
> Go down two lines (C-n C-n) and move forward one character (C-f).
>
> Execute `open-rectangle' (C-x r o) to "move" the block of text one
> column to the right.
>
> The text is "moved" as it should but cursor is also moved to where you
> set the mark.

This is how open-rectangle works...  
It positions point in the opened rectangle.

>
> Now, it seems strange to me that it should move point, but there might
> be some good reason for that so I will leave that for the moment.

I suppose the reason is that you can start enter some text in the
opened rectangle immediately.

> What I do not like is that I cannot get back to where I was, neither
> using `exchange-point-and-mark' (C-x C-x), nor using C-u C-SPC
> (`set-mark-command' with prefix argument).
>
> Is this a bug?

I don't think so.


BTW, if you enable cua-mode, you can use C-RET to start a rectangle.
Then you can use M-o to "open-rectangle" -- which keeps the cursor
at the same position as before.

But if you want to indent some text by a few blanks, try this:

C-RET C-n C-n SPC SPC C-RET

-- 
Kim F. Storm <address@hidden> http://www.cua.dk





reply via email to

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