From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Outline cycling does not preserve point's position Date: Mon, 09 Sep 2013 13:49:14 +0200 Message-ID: <87wqmqjjut.fsf@bzg.ath.cx> References: <868uz8sufg.fsf@somewhere.org> <86vc2cqvnb.fsf@somewhere.org> <86y57676t1.fsf@somewhere.org> <89E7FDB6-0F5A-4362-959C-C4B9844A235C@gmail.com> <86txhu7696.fsf@somewhere.org> <0A62C6DE-B3AD-458A-9AB4-92B61A6D3D63@gmail.com> <86ppsi75st.fsf@somewhere.org> <87eh8yo0el.fsf@bzg.ath.cx> <87li365ixg.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36019) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VIzyP-0001pX-Ti for emacs-orgmode@gnu.org; Mon, 09 Sep 2013 07:49:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VIzyH-0006R9-Qx for emacs-orgmode@gnu.org; Mon, 09 Sep 2013 07:49:41 -0400 Received: from plane.gmane.org ([80.91.229.3]:47678) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VIzyH-0006R3-KA for emacs-orgmode@gnu.org; Mon, 09 Sep 2013 07:49:33 -0400 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VIzyG-0001OH-3K for emacs-orgmode@gnu.org; Mon, 09 Sep 2013 13:49:32 +0200 In-Reply-To: <87li365ixg.fsf@gmail.com> (Nicolas Goaziou's message of "Mon, 09 Sep 2013 13:32:59 +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: Nicolas Goaziou Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org, Sebastien Vauban , Carsten Dominik Hi Nicolas, Nicolas Goaziou writes: >>> We could have org-ctrldown and friends the same way we have org-shift* >>> commands. org-ctrldown would use `org-forward-element' when on some >>> Org element, and `forward-paragraph' elsewhere. > > "elsewhere" doesn't make sense here since point is _always_ on an element > (except on the first blank lines in a buffer). Right. But you got the idea: use `org-forward-element' when moving within structural elements of various kinds make sense and use `forward-paragraph' otherwise. >>> I acknowledge binding C-down to `org-forward-element' instead of >>> `forward-paragraph' is a bit disruptive, and maybe not ideal in all >>> situations. >> >> Yes, it produces unexpected results. > > I find it pretty predictable. May you elaborate on that? It is predictable, but sometimes counter-intuitive: for example, when on the first headline, C-up will throw an error instead of moving to the top of the buffer. Also, it is predictable but not reversible: hitting C-down three times then C-up three times will not always go back to the point where the user was at the beginning. -- Bastien