From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [BABEL] Commands for navigation Date: Wed, 08 Sep 2010 00:24:38 -0600 Message-ID: <877hiw21n0.fsf@gmail.com> References: <81zkvx1wz0.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=53339 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OtE5d-0007Zd-D9 for emacs-orgmode@gnu.org; Wed, 08 Sep 2010 02:25:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OtE5c-0003MD-4Y for emacs-orgmode@gnu.org; Wed, 08 Sep 2010 02:25:01 -0400 Received: from mail-pw0-f41.google.com ([209.85.160.41]:44695) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OtE5b-0003M8-Td for emacs-orgmode@gnu.org; Wed, 08 Sep 2010 02:25:00 -0400 Received: by pwj6 with SMTP id 6so3377405pwj.0 for ; Tue, 07 Sep 2010 23:24:58 -0700 (PDT) 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: Jambunathan K Cc: emacs-orgmode@gnu.org Hi, Jambunathan K writes: > I think the navigation commands should wrap around to beginning or end > of file as necessary possibly after throwing an error. The error > messages down below need to be replaced with more user-friendly > messages. When I see anything such big or as cryptic I get apprehensive > that something is broken badly. > I've updated these two function so that they will now throw more informative error messages. > > Is there a quick way to place the cursor at the beginning or end of > the babel block? I could think of two options - > > 1. Augment C-c C-v p and C-c C-v n to jump to the beg/end of the current > block > > 2. Overload C-c C-u (within org-mode) to also mean jump to the enclosing > structural block. > > Given a choice I would lean towards (2). > I would lean towards (2) as well, however I can also see the value of maintaining the behavior of C-c C-u /regardless/ of the local context. As a temporary (and maybe sufficient to be a permanent) solution I've bound C-c C-v u to `org-babel-goto-src-block-head'. > > ps: Quick navigation to babel guard lines could be useful in > conjunction with speed keys (when supported) > Makes sense, and the above command could easily be rebound in a personal configuration to an easier key-sequence than the default provided. Cheers -- Eric