emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-forward-element looses selection on code blocks
@ 2013-07-24 14:41 Sebastien Vauban
  2013-07-24 15:35 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastien Vauban @ 2013-07-24 14:41 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hello,

Up to quite recently, I could select ("region") code blocks or multiple
consecutive paragraphs by pressing <C-down> which ran `forward-paragraph'.

Now that <C-down> is mapped to `org-forward-element':

- I can't select any code block anymore via <C-down> (well line by line with
  <down>).

- I can't select consecutive paragraphs from following subtrees.

I think I can live with the latter, but I find the former very inconvenient.

Is there a plan to fix it in `org-forward-element' (IOW, do we consider that
as a bug or a feature, or not at all?), or must I remap <C-down> back to its
old command?

Best regards,
  Seb

-- 
Sebastien Vauban

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

* Re: org-forward-element looses selection on code blocks
  2013-07-24 14:41 org-forward-element looses selection on code blocks Sebastien Vauban
@ 2013-07-24 15:35 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2013-07-24 15:35 UTC (permalink / raw)
  To: Sebastien Vauban; +Cc: public-emacs-orgmode-mXXj517/zsQ



Hello,

"Sebastien Vauban" <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
writes:

> Up to quite recently, I could select ("region") code blocks or multiple
> consecutive paragraphs by pressing <C-down> which ran `forward-paragraph'.
>
> Now that <C-down> is mapped to `org-forward-element':
>
> - I can't select any code block anymore via <C-down> (well line by line with
>   <down>).
> - I can't select consecutive paragraphs from following subtrees.

This second item is inherent to the structure of the document. You can
use `org-down-element' to move into the next subtree.

> Is there a plan to fix it in `org-forward-element' (IOW, do we consider that
> as a bug or a feature, or not at all?), or must I remap <C-down> back to its
> old command?

I don't think the bug comes from `org-forward-element'.

If you use C-space in the middle of the block and then M-x
org-forward-element, the block will be marked. If you do the same with
C-<down> instead of M-x org-forward-element, it will not be marked.

There is a similar problem with `org-end-of-line' (it will lose region
if called through C-e, but not with M-x org-end-of-line), also on source
blocks.

I don't know the root of this evil.

Anyhow, you can remap <C-down> to whatever suits you.


Regards,

-- 
Nicolas Goaziou

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

end of thread, other threads:[~2013-07-24 15:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-24 14:41 org-forward-element looses selection on code blocks Sebastien Vauban
2013-07-24 15:35 ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).