From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Re: Org Special Ctrl A/E, option "reversed" Date: Wed, 15 Jul 2009 13:52:46 -0400 Message-ID: <18374.1247680366@gamaville.dokosmarshall.org> References: <4A5D515B.1030609@gmail.com> <4A5D6D9B.9070307@online.de> <4A5E048F.60203@gmail.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MR8gr-00054f-QH for emacs-orgmode@gnu.org; Wed, 15 Jul 2009 13:54:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MR8gn-000535-87 for emacs-orgmode@gnu.org; Wed, 15 Jul 2009 13:54:49 -0400 Received: from [199.232.76.173] (port=51102 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MR8gn-000532-2i for emacs-orgmode@gnu.org; Wed, 15 Jul 2009 13:54:45 -0400 Received: from vms173005pub.verizon.net ([206.46.173.5]:51919) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MR8gm-0001e1-9v for emacs-orgmode@gnu.org; Wed, 15 Jul 2009 13:54:44 -0400 Received: from gamaville.dokosmarshall.org ([98.110.172.159]) by vms173005.mailsrvcs.net (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPA id <0KMU00HAF4BI6223@vms173005.mailsrvcs.net> for emacs-orgmode@gnu.org; Wed, 15 Jul 2009 12:52:35 -0500 (CDT) In-reply-to: Message from Brian van den Broek of "Wed, 15 Jul 2009 12:32:15 EDT." <4A5E048F.60203@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Brian van den Broek Cc: bastienguerry@googlemail.com, emacs-orgmode@gnu.org, Rainer Stengele Brian van den Broek wrote: > Bastien: > > As you are wearing the Carsten-hat for the moment, it strikes me that > Rainer's expectation that a documented value for the variable would be > available in the customization value-menu is reasonable. Perhaps the > reversed option ought to be added to that menu? Alas, I can't > patch---it really is but a bit of elisp that I've got. > Here's the defcustom for this variable (found by C-h v org-special-ctrl-a/e and then clicking on the file link in the *Help* buffer): ,---- | (defcustom org-special-ctrl-a/e nil | "Non-nil means `C-a' and `C-e' behave specially in headlines and items. | | When t, `C-a' will bring back the cursor to the beginning of the | headline text, i.e. after the stars and after a possible TODO keyword. | In an item, this will be the position after the bullet. | When the cursor is already at that position, another `C-a' will bring | it to the beginning of the line. | | `C-e' will jump to the end of the headline, ignoring the presence of tags | in the headline. A second `C-e' will then jump to the true end of the | line, after any tags. | | When set to the symbol `reversed', the first `C-a' or `C-e' works normally, | and only a directly following, identical keypress will bring the cursor | to the special positions. | | This may also be a cons cell where the behavior for `C-a' and `C-e' is | set separately." | :group 'org-edit-structure | :type '(choice | (const :tag "off" nil) | (const :tag "after stars/bullet and before tags first" t) | (const :tag "true line boundary first" reversed) | (cons :tag "Set C-a and C-e separately" | (choice :tag "Special C-a" | (const :tag "off" nil) | (const :tag "after stars/bullet first" t) | (const :tag "before stars/bullet first" reversed)) | (choice :tag "Special C-e" | (const :tag "off" nil) | (const :tag "before tags first" t) | (const :tag "after tags first" reversed))))) | `---- As you can see, the reversed setting is available from the value menu, under the tag "true line boundary first". So it is there, but perhaps not obviously. HTH, Nick PS BTW, I share your general dislike of the customization interface, but I have always thought that I am in the minority on that.