From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: [BABEL] Commands for navigation Date: Sat, 04 Sep 2010 18:34:19 +0530 Message-ID: <81zkvx1wz0.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=58161 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrsQT-0002Ww-Li for emacs-orgmode@gnu.org; Sat, 04 Sep 2010 09:04:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrsPz-0005hL-QB for emacs-orgmode@gnu.org; Sat, 04 Sep 2010 09:04:28 -0400 Received: from mail-pz0-f41.google.com ([209.85.210.41]:64329) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrsPz-0005hC-IW for emacs-orgmode@gnu.org; Sat, 04 Sep 2010 09:04:27 -0400 Received: by pzk33 with SMTP id 33so1625203pzk.0 for ; Sat, 04 Sep 2010 06:04:26 -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: emacs-orgmode@gnu.org 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. 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). ps: Quick navigation to babel guard lines could be useful in conjunction with speed keys (when supported) org-babel-previous-src-block: Search failed: "^\\([ ]*\\)#\\+begin_src[ ]+\\([^ ]+\\)[ ]*\\([^\": ]*\"[^\" *]*\"[^\": ]*\\|[^\": ]*\\)\\([^ ]*\\) \\([^]+? \\)[ ]*#\\+end_src" org-babel-next-src-block: Search failed: "^\\([ ]*\\)#\\+begin_src[ ]+\\([^ ]+\\)[ ]*\\([^\": ]*\"[^\" *]*\"[^\": ]*\\|[^\": ]*\\)\\([^ ]*\\) \\([^]+? \\)[ ]*#\\+end_src" Jambunathan K.