From: "Stefan-W. Hahn" <info@s-hahn.de>
To: emacs-orgmode@gnu.org
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 [thread overview]
Message-ID: <20130127114827.GT29284@pille.home> (raw)
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.
next reply other threads:[~2013-01-27 11:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-27 11:48 Stefan-W. Hahn [this message]
2013-01-27 19:10 ` Bug: C-c C-c does not handle dynamic blocks correctly [7.9.3d (release_7.9.3d-894-gfe805e)] Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130127114827.GT29284@pille.home \
--to=info@s-hahn.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).