[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Bug: C-c C-c does not handle dynamic blocks correctly [7.9.3d (relea
From: |
Stefan-W. Hahn |
Subject: |
[O] 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 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
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.
...
(let ((case-fold-search t))
(if (not (save-excursion
(re-search-forward "^[ \t]*#\\+END:?[ \t]*$" limit t)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
;; Incomplete block: parse it as a paragraph.
(org-element-paragraph-parser limit affiliated)
(let ((block-end-line (match-beginning 0)))
...
#+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.
This behaviour has been changed, perhaps this is a bug.
(In the org-versin delivered with Emacs 24.2.50.1 the parser code
from 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
--
Stefan-W. Hahn It is easy to make things.
It is hard to make things simple.
- [O] Bug: C-c C-c does not handle dynamic blocks correctly [7.9.3d (release_7.9.3d-894-gfe805e)],
Stefan-W. Hahn <=