From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Feature suggestion: context sensitive movement Date: Sat, 20 Jun 2009 21:26:10 +0200 Message-ID: <86D9A2F7-D027-44DF-930A-9AAC89E0770A@gmail.com> References: <20524da70906181254y5fc43f9dh564f8aa0fe3c6a59@mail.gmail.com> <62CD457A-F0C3-4BDB-B6FA-CD707C2D43AF@gmail.com> <20524da70906191033q3d06d339nf821fe902422846f@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v935.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MI6Cj-0006Xd-B8 for emacs-orgmode@gnu.org; Sat, 20 Jun 2009 15:26:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MI6Ce-0006Is-5m for emacs-orgmode@gnu.org; Sat, 20 Jun 2009 15:26:20 -0400 Received: from [199.232.76.173] (port=38047 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MI6Ce-0006Ie-2b for emacs-orgmode@gnu.org; Sat, 20 Jun 2009 15:26:16 -0400 Received: from mx20.gnu.org ([199.232.41.8]:36499) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MI6Cd-0006we-N9 for emacs-orgmode@gnu.org; Sat, 20 Jun 2009 15:26:15 -0400 Received: from mail-ew0-f220.google.com ([209.85.219.220]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MI6Cd-0007kE-2U for emacs-orgmode@gnu.org; Sat, 20 Jun 2009 15:26:15 -0400 Received: by ewy20 with SMTP id 20so342309ewy.42 for ; Sat, 20 Jun 2009 12:26:14 -0700 (PDT) In-Reply-To: <20524da70906191033q3d06d339nf821fe902422846f@mail.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: Samuel Wales Cc: emacs-orgmode@gnu.org On Jun 19, 2009, at 7:33 PM, Samuel Wales wrote: > These look very useful. Is there one for moving to the parent item, no. You can make it with (org-beginning-of-item-list) (backward-char 1) (org-begining-if-item) or something like this (untested). > and is there one for moving to the item first line analogous to > back-to-heading? Yes, org-beginning-of-item HTH - Carsten > > My idea is to write a command that does something approx. like this: > > ;;; (cond > ;;; ((org-at-item-p) (org-item-up)) ;parent > ;;; ((org-in-item-p) (org-back-to-item-heading)) > ;;; ((org-at-heading-p) (outline-up-heading)) > ;;; (t (outline-back-to-heading))) > > Thanks. > > On Thu, Jun 18, 2009 at 23:17, Carsten Dominik > wrote: >>> Are there any functions to navigate plain lists? >> >> org-beginning-of-item >> org-end-of-item >> org-next-item >> org-previous-item >> org-beginning-of-item-list >> >> You could make you bindings below work for lists as well by >> checking context >> with >> >> >> org-at-item-p ;; first line only >> org-in-item-p ;; does not have to be first line >> org-at-heading-p >> > > > > -- > Myalgic encephalomyelitis denialism is causing death and severe > suffering, > worse than MS. Conflicts of interest are destroying research. / > You/ can > get the disease at any time permanently. Do science and justice > matter to > you? http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm