all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Moving paragraphs instead of lines
@ 2008-02-14 11:18 Rick Moynihan
  2008-02-17 17:16 ` Adam Spiers
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Rick Moynihan @ 2008-02-14 11:18 UTC (permalink / raw)
  To: emacs-orgmode

When the cursor is positioned within a paragraph would M-<up> and 
M-<down> not be better set to move the current paragraph above or below 
it's surrounding paragraphs respectively?

e.g.  When the point is positioned in the following outline, would a 
M-<up> not be better moving the foo paragraph above the bar one, rather 
than just repositioning the 6-foo line?

* Outline

bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar
bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar
bar bar bar bar bar

foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo
foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo
foo foo foo foo foo foo | <-- point

I could see such operations being restricted to only operate with the 
current outline level.  I realise the M-<up>/<down> behaviour when on an 
outline is correct, but I see little need in repositioning lines within 
a paragraph if the user is using M-q to wrap paragraphs, as I do. 
Moving the paragraph here would surely make more sense.


R.

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

* Re: Moving paragraphs instead of lines
  2008-02-14 11:18 Moving paragraphs instead of lines Rick Moynihan
@ 2008-02-17 17:16 ` Adam Spiers
  2008-02-19  4:33 ` Bastien
  2008-02-22 11:09 ` Carsten Dominik
  2 siblings, 0 replies; 4+ messages in thread
From: Adam Spiers @ 2008-02-17 17:16 UTC (permalink / raw)
  To: emacs-orgmode

On Thu, Feb 14, 2008 at 11:18:22AM +0000, Rick Moynihan wrote:
> When the cursor is positioned within a paragraph would M-<up> and 
> M-<down> not be better set to move the current paragraph above or below 
> it's surrounding paragraphs respectively?
> 
> e.g.  When the point is positioned in the following outline, would a 
> M-<up> not be better moving the foo paragraph above the bar one, rather 
> than just repositioning the 6-foo line?
> 
> * Outline
> 
> bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar
> bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar
> bar bar bar bar bar
> 
> foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo
> foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo
> foo foo foo foo foo foo | <-- point
> 
> I could see such operations being restricted to only operate with the 
> current outline level.  I realise the M-<up>/<down> behaviour when on an 
> outline is correct, but I see little need in repositioning lines within 
> a paragraph if the user is using M-q to wrap paragraphs, as I do. 
> Moving the paragraph here would surely make more sense.

If anything, I would actually vote for the entire outline heading
being moved within the outline structure, since emacs already provides
plenty of functionality with regards to normal text editing
(`transpose-lines', `transpose-paragraphs', `mark-paragraph' etc.).

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

* Re: Moving paragraphs instead of lines
  2008-02-14 11:18 Moving paragraphs instead of lines Rick Moynihan
  2008-02-17 17:16 ` Adam Spiers
@ 2008-02-19  4:33 ` Bastien
  2008-02-22 11:09 ` Carsten Dominik
  2 siblings, 0 replies; 4+ messages in thread
From: Bastien @ 2008-02-19  4:33 UTC (permalink / raw)
  To: Rick Moynihan; +Cc: emacs-orgmode

I guess the rationale behind making M-<up/down> to move lines was to get
a similar behavior for this command whatever the context:

- inside a list
- inside a table
- inside a subtree headlines
- inside normal paragraphs

But I have the feeling that the current behavior for M-<up/down> inside
normal paragraphs is a bit too much... but this is just a feeling.  

Rick Moynihan <rick@calicojack.co.uk> writes:

> When the cursor is positioned within a paragraph would M-<up> and
> M-<down> not be better set to move the current paragraph above or
> below it's surrounding paragraphs respectively?
>
> e.g.  When the point is positioned in the following outline, would a
> M-<up> not be better moving the foo paragraph above the bar one,
> rather than just repositioning the 6-foo line?
>
> * Outline
>
> bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar
> bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar
> bar bar bar bar bar
>
> foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo
> foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo
> foo foo foo foo foo foo | <-- point
>
> I could see such operations being restricted to only operate with the
> current outline level.  I realise the M-<up>/<down> behaviour when on
> an outline is correct, but I see little need in repositioning lines
> within a paragraph if the user is using M-q to wrap paragraphs, as I
> do. Moving the paragraph here would surely make more sense.

-- 
Bastien

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

* Re: Moving paragraphs instead of lines
  2008-02-14 11:18 Moving paragraphs instead of lines Rick Moynihan
  2008-02-17 17:16 ` Adam Spiers
  2008-02-19  4:33 ` Bastien
@ 2008-02-22 11:09 ` Carsten Dominik
  2 siblings, 0 replies; 4+ messages in thread
From: Carsten Dominik @ 2008-02-22 11:09 UTC (permalink / raw)
  To: Rick Moynihan; +Cc: emacs-orgmode

Paragraph definitions are complex in Org-mode, because of
plain lists, tables etc.  I think that moving paragraphs in this way
would lead to surprising results too often, so I will not implement
this suggestion.

Thanks.

- Carsten

On Feb 14, 2008, at 12:18 PM, Rick Moynihan wrote:

> When the cursor is positioned within a paragraph would M-<up> and M- 
> <down> not be better set to move the current paragraph above or  
> below it's surrounding paragraphs respectively?
>
> e.g.  When the point is positioned in the following outline, would a  
> M-<up> not be better moving the foo paragraph above the bar one,  
> rather than just repositioning the 6-foo line?
>
> * Outline
>
> bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar  
> bar
> bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar  
> bar
> bar bar bar bar bar
>
> foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo  
> foo
> foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo  
> foo
> foo foo foo foo foo foo | <-- point
>
> I could see such operations being restricted to only operate with  
> the current outline level.  I realise the M-<up>/<down> behaviour  
> when on an outline is correct, but I see little need in  
> repositioning lines within a paragraph if the user is using M-q to  
> wrap paragraphs, as I do. Moving the paragraph here would surely  
> make more sense.
>
>
> R.
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

end of thread, other threads:[~2008-02-22 11:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-14 11:18 Moving paragraphs instead of lines Rick Moynihan
2008-02-17 17:16 ` Adam Spiers
2008-02-19  4:33 ` Bastien
2008-02-22 11:09 ` Carsten Dominik

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.