From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Outline cycling does not preserve point's position Date: Tue, 10 Sep 2013 10:16:06 +0200 Message-ID: References: <0A62C6DE-B3AD-458A-9AB4-92B61A6D3D63@gmail.com> <86ppsi75st.fsf@somewhere.org> <87eh8yo0el.fsf@bzg.ath.cx> <87li365ixg.fsf@gmail.com> <87d2oi57fg.fsf@gmail.com> <7CB7B681-DD2E-446C-AE45-DDCA204EE95C@gmail.com> <5855E8E1-9730-4A29-89FF-E35C64E54EDD@gmail.com> <20130910073257.GO20690@kuru.dyndns-at-home.com> <20130910075345.GP20690@kuru.dyndns-at-home.com> <25A21DB7-B2E5-47BB-8A64-594A15CB24B8@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: multipart/signed; boundary="Apple-Mail=_4101903D-96CE-4C4F-B0FB-5E780AAADA69"; protocol="application/pgp-signature"; micalg=pgp-sha1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJJ7Q-0003BS-7J for emacs-orgmode@gnu.org; Tue, 10 Sep 2013 04:16:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJJ7H-0005Yw-P0 for emacs-orgmode@gnu.org; Tue, 10 Sep 2013 04:16:16 -0400 Received: from mail-ea0-x22b.google.com ([2a00:1450:4013:c01::22b]:57932) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJJ7H-0005Yr-E9 for emacs-orgmode@gnu.org; Tue, 10 Sep 2013 04:16:07 -0400 Received: by mail-ea0-f171.google.com with SMTP id n15so3690907ead.30 for ; Tue, 10 Sep 2013 01:16:06 -0700 (PDT) In-Reply-To: <25A21DB7-B2E5-47BB-8A64-594A15CB24B8@gmail.com> 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: Suvayu Ali Cc: Nicolas Goaziou , emacs-orgmode@gnu.org --Apple-Mail=_4101903D-96CE-4C4F-B0FB-5E780AAADA69 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 10.9.2013, at 09:58, Carsten Dominik = wrote: >=20 > On 10.9.2013, at 09:53, Suvayu Ali = wrote: >=20 >> On Tue, Sep 10, 2013 at 09:32:57AM +0200, Suvayu Ali wrote: >>> On Tue, Sep 10, 2013 at 08:03:32AM +0200, Carsten Dominik wrote: >>>>=20 >>>> One more thought: What if the paragraph motion commands did use = elements, but >>>> ignored the hierarchy. So they jump to the next headline, = paragraph, table, src block, item? >>>>=20 >>>> I think this would feel similar to what paragraph motion does in = text mode. >>>=20 >>> This is a great suggestion! >>=20 >> Actually it is not trivial to do this I think. It requires a lot of >> special handling. Effectively you have to "flatten" the element tree >> (since there are greater elements, and more fundamental elements). = One >> might then say: aha, just use the leaf nodes. But again that does = not >> work. >>=20 >> A few examples: although a regular paragraph (whatever that might >> be :-p) could be a leaf, what about a list? Do we want traversing = list >> items or entire lists with this new implementation? >=20 > Individual items >=20 >> For a list with one >> line entries, going over entire lists might be desired, on the other >> hand a user might expect to traverse entries when going through a = list >> with multi-line or multi-paragraph entries. Then there are tables, = do >> you traverse rows (which are elements AFAIU) or entire tables; >=20 > entire tables. >=20 >> and so >> on. >=20 > I do not think this is is difficult as you are saying. Sorry for replying to myself. I want to put a different light on this. The question is: What are people using C-arrow for? I think the main application is reasonably fast motion and selection in a *linear* way. Is this correct, or do people disagree here with me? The amazing element motion commands Nicolas has implement correspond to sexp motion, as he has said himself. Maybe C-M-f and C-M-b are the better binding match for these? - Carsten >=20 > Cheers >=20 > - Carsten >=20 >>=20 >> As you see this is a rather subjective issue. I have a few thoughts >> though. We could discuss this on the list and give a default >> implementation based on the consensus, but it would be nice to give = an >> easy way to _write_ a custom paragraph motion command using elements. = I >> am not sure what that might be though :-p. I will try to think about >> this some more. >>=20 >> Cheers, >>=20 >> --=20 >> Suvayu >>=20 >> Open source is the future. It sets us free. >=20 --Apple-Mail=_4101903D-96CE-4C4F-B0FB-5E780AAADA69 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- iEUEARECAAYFAlIu1UYACgkQ9hweYzZiJkzCZwCePrv32igwzshicT0LO6l9yyX9 WnMAlRpL9KLIuW9T2c7A/STdSouIUfI= =dwZC -----END PGP SIGNATURE----- --Apple-Mail=_4101903D-96CE-4C4F-B0FB-5E780AAADA69--