From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org-forward-element looses selection on code blocks Date: Wed, 24 Jul 2013 17:35:54 +0200 Message-ID: <8738r455t1.fsf@gmail.com> References: <86y58wvx4y.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33920) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V216k-00082V-UP for emacs-orgmode@gnu.org; Wed, 24 Jul 2013 11:36:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V216g-000275-CP for emacs-orgmode@gnu.org; Wed, 24 Jul 2013 11:36:06 -0400 Received: from plane.gmane.org ([80.91.229.3]:51062) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V216g-00026x-58 for emacs-orgmode@gnu.org; Wed, 24 Jul 2013 11:36:02 -0400 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1V216b-0008GG-O5 for emacs-orgmode@gnu.org; Wed, 24 Jul 2013 17:35:57 +0200 In-Reply-To: <86y58wvx4y.fsf@somewhere.org> (Sebastien Vauban's message of "Wed, 24 Jul 2013 16:41:01 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastien Vauban Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org Hello, "Sebastien Vauban" writes: > Up to quite recently, I could select ("region") code blocks or multiple > consecutive paragraphs by pressing which ran `forward-paragraph'. > > Now that is mapped to `org-forward-element': > > - I can't select any code block anymore via (well line by line with > ). > - 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 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- 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 to whatever suits you. Regards, -- Nicolas Goaziou