all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* `C-x r t' to ignore last line if empty
@ 2009-03-14 20:06 Bastien
  2009-03-14 20:37 ` Leo
  0 siblings, 1 reply; 4+ messages in thread
From: Bastien @ 2009-03-14 20:06 UTC (permalink / raw)
  To: emacs-devel

When using the command `string-rectangle', I think it makes sense 
to ignore the last line if the cursor is at the beginning of an empty
line.

Opinions?

-- 
 Bastien




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: `C-x r t' to ignore last line if empty
  2009-03-14 20:06 `C-x r t' to ignore last line if empty Bastien
@ 2009-03-14 20:37 ` Leo
  2009-03-14 22:13   ` Bastien
  0 siblings, 1 reply; 4+ messages in thread
From: Leo @ 2009-03-14 20:37 UTC (permalink / raw)
  To: emacs-devel

On 2009-03-14 20:06 +0000, Bastien wrote:
> When using the command `string-rectangle', I think it makes sense 
> to ignore the last line if the cursor is at the beginning of an empty
> line.
>
> Opinions?

It seems this will introduce some unnecessary complexity. The current
behaviour is intuitive at least.

-- 
.:  Leo  :.  [ sdl.web AT gmail.com ]  .: I use Emacs :.

               www.git-scm.com
    git - the one true version control system





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: `C-x r t' to ignore last line if empty
  2009-03-14 20:37 ` Leo
@ 2009-03-14 22:13   ` Bastien
  2009-03-15  2:05     ` Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: Bastien @ 2009-03-14 22:13 UTC (permalink / raw)
  To: emacs-devel

Leo <sdl.web@gmail.com> writes:

> On 2009-03-14 20:06 +0000, Bastien wrote:
>> When using the command `string-rectangle', I think it makes sense 
>> to ignore the last line if the cursor is at the beginning of an empty
>> line.
>>
>> Opinions?
>
> It seems this will introduce some unnecessary complexity. The current
> behaviour is intuitive at least.

I don't find it intuitive.

I find Org's behavior for `C-c :' more intuitive

For example:
                              
A-----------------------------+
|                             |
+-----------------------------+
B

Imagine the rectangle above is selected/highlighted.

In Org, C-c : will insert ":" in front of the highlighted rectangle,
considering that the line starting with B is not part of the rectangle.

In other Emacs mode, `C-x r t : RET' will insert ":" in front of the
highlighted rectangle *and* of the line where point B is.  

I find this confusing.  

-- 
 Bastien




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: `C-x r t' to ignore last line if empty
  2009-03-14 22:13   ` Bastien
@ 2009-03-15  2:05     ` Stefan Monnier
  0 siblings, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2009-03-15  2:05 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-devel

> In other Emacs mode, `C-x r t : RET' will insert ":" in front of the
> highlighted rectangle *and* of the line where point B is.
> I find this confusing.

I know what you're talking about, but changing it will make the
rectangle commands behave inconsistently, which is not much better,
I think.


        Stefan




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-03-15  2:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-14 20:06 `C-x r t' to ignore last line if empty Bastien
2009-03-14 20:37 ` Leo
2009-03-14 22:13   ` Bastien
2009-03-15  2:05     ` Stefan Monnier

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.