emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Dan Davison <davison@stats.ox.ac.uk>
To: Leo <sdl.web@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Poll: Who is using these commands
Date: Sun, 09 May 2010 14:13:37 -0400	[thread overview]
Message-ID: <87pr15gcz2.fsf@stats.ox.ac.uk> (raw)
In-Reply-To: <m1iq6xjb71.fsf@cam.ac.uk> (Leo's message of "Sun, 09 May 2010 17:23:46 +0100")

Leo <sdl.web@gmail.com> writes:

> On 2010-05-09 16:59 +0100, Nick Dokos wrote:
>> I disagree: they are not parenthesis movement bindings - they are
>> structure-navigation bindings. For example, C-M-f is forward-sexp.
>> In lisp, an sexp has some relationship to parentheses, but it is
>> incidental; in other programming modes, an sexp is whatever makes
>> sense in that language and these commands are redefined appropriately.
>
> Perhaps you haven't noticed. SEXP is a useful abstract. For example,
> it allows you to move across some_long_function_name in C and even in
> the message-mode I'm currently using, not just parenthesis. Situation
> like this will arise when editing org files too.

Yes, so in other words C-M-f can be used to jump over atoms, and in many
modes that has the useful effect of jumping over words containing '_'
'-' etc. I haven't seen any disagreement yet over the general principle
of treating headings as SEXPs, so I think the issue here is: is Org
happy to declare that a childless heading is atomic? And if we are happy
with that, are we left with a convenient way to skip over
something-like-this or something_like_this when they occur in Org-mode?

An alternative view would be that when point is at the beginning of a
heading C-M-f skips over the subtree, and otherwise C-M-f skips over one
"Org atom", however defined.

Dan



> It is a key binding that you
> can rely on in various modes and they happen to do the right thing.
>
> They are not re-defined, in most modes once you have a proper syntax
> table, they just work. On the other hand, the defun abstraction is not
> as universal as sexp so redefine them is fine.
>
> C-M-f and C-M-b are keys that I use extensively.
>
> I haven't used C-M-n and C-M-p much.
>
>> I think it is entirely appropriate to use these bindings to navigate
>> structure in org-mode as well.
>
> I am not against binding suitable keys to structure movement.
>
> Leo

  parent reply	other threads:[~2010-05-09 18:13 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-08  9:14 Poll: Who is using these commands Carsten Dominik
2010-05-08 11:56 ` Vagn Johansen
2010-05-08 12:22 ` Darlan Cavalcante Moreira
2010-05-08 13:28 ` Mikael Fornius
2010-05-08 14:06 ` Bastien
2010-05-08 15:53 ` Eric Schulte
2010-05-08 18:12   ` Benjamin Andresen
2010-05-08 21:47   ` Carsten Dominik
2010-05-08 16:17 ` Memnon Anon
2010-05-08 16:44 ` Sebastian Rose
2010-05-08 17:46   ` Scot Becker
2010-05-08 20:26     ` Stephan Schmitt
2010-05-08 18:04 ` Scott Randby
2010-05-08 22:35   ` Eric S Fraga
2010-05-08 22:46   ` Russell Adams
2010-05-08 20:22 ` Friedrich Delgado Friedrichs
2010-05-08 22:03   ` Scott Randby
2010-05-08 23:42     ` Daniel Clemente
2010-05-09 11:43     ` Carsten Dominik
2010-05-09 12:39       ` Ecce Berlin
2010-05-09 13:08       ` Sebastian Rose
2010-05-09 14:26       ` Leo
2010-05-09 14:42         ` Stephan Schmitt
2010-05-09 15:24         ` Carsten Dominik
2010-05-09 17:27           ` Sebastian Rose
2010-05-09 18:03           ` Leo
2010-05-09 15:59         ` Nick Dokos
2010-05-09 16:23           ` Leo
2010-05-09 17:33             ` Sebastian Rose
2010-05-09 18:06               ` Leo
2010-05-09 18:13             ` Dan Davison [this message]
2010-05-09 18:59           ` Dan Davison
2010-05-09 19:00           ` Dan Davison
2010-05-10  5:07             ` Carsten Dominik
2010-05-09 19:22       ` Scott Randby
2010-05-10  6:33     ` Carsten Dominik
2010-05-11  1:04       ` Scott Randby
2010-05-11  5:22       ` Russell Adams
2010-05-11  8:00       ` Andrew Burrow
2010-05-11 23:45       ` Scott Randby
2010-05-12  1:18         ` Eric Schulte
2010-05-12  2:16           ` Livin Stephen Sharma
2010-05-08 22:21 ` Bernt Hansen
2010-05-08 23:38 ` Sebastian Hofer
2010-05-09  3:28 ` Daniel Martins
2010-05-09  5:10   ` Vincent Belaïche
2010-05-10  8:39 ` Ulf Stegemann
2010-05-10  8:50 ` Jörg Hagmann
2010-05-11  8:13 ` Andrew Burrow
2010-05-11 12:01 ` Matt Lundin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pr15gcz2.fsf@stats.ox.ac.uk \
    --to=davison@stats.ox.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=sdl.web@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).