From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Stefan-W. Hahn" Subject: Bug: C-c C-c does not handle dynamic blocks correctly [7.9.3d (release_7.9.3d-894-gfe805e)] Date: Sun, 27 Jan 2013 12:48:27 +0100 Message-ID: <20130127114827.GT29284@pille.home> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50433) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TzQj0-0000FR-Re for emacs-orgmode@gnu.org; Sun, 27 Jan 2013 06:48:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TzQiz-0002hy-U1 for emacs-orgmode@gnu.org; Sun, 27 Jan 2013 06:48:38 -0500 Received: from moutng.kundenserver.de ([212.227.126.187]:60065) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TzQiz-0002hV-LA for emacs-orgmode@gnu.org; Sun, 27 Jan 2013 06:48:37 -0500 Content-Disposition: inline List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hello, if trying to update a dynamic clocktable with "C-c C-c", point on "#+BEGIN", I get the error message: "user-error: C-c C-c can do nothing useful at this location" The clocktable looks like: #+BEGIN: clocktable #+END: clocktable This is the definition describe in the manual. I tracked this down to #+begin_src emacs-lisp (defun org-element-dynamic-block-parser (limit affiliated) "Parse a dynamic block. =2E.. (let ((case-fold-search t)) (if (not (save-excursion (re-search-forward "^[ \t]*#\\+END:?[ \t]*$" limit t))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^=20 ;; Incomplete block: parse it as a paragraph. (org-element-paragraph-parser limit affiliated) (let ((block-end-line (match-beginning 0))) =2E.. #+end_src If clocktable is defined with "+END: clocktable" the parser recognizes it as a paragraph, not a clocktable. If I write #+BEGIN: clocktable #+END: than the evaluation with "C-c C-c" will work.=20 This behaviour has been changed, perhaps this is a bug. (In the org-versin delivered with Emacs 24.2.50.1 the parser code =66rom org-element.el is not used; this version works like described in the manual wwith "#+END: clocktable".) My installation: Emacs : GNU Emacs 24.2.50.1 (i486-pc-linux-gnu, GTK+ Version 2.20.1) of 2012-10-13 on cw-bkp0, modified by Debian Package: Org-mode version 7.9.3d (release_7.9.3d-894-gfe805e) Kind regards, Stefan --=20 Stefan-W. Hahn It is easy to make things. It is hard to make things simple.