emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[BUG] Dynamic blocks not recognized by org-element


From: Nick Dokos
Subject: [BUG] Dynamic blocks not recognized by org-element
Date: Tue, 26 Apr 2022 02:53:03 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0

Starting with `emacs -Q', I create a simple file with the following contents:

--8<---------------cut here---------------start------------->8---
* Clocktable

#+BEGIN: clocktable :maxlevel 3 :emphasize nil :scope file
#+END: clocktable
--8<---------------cut here---------------end--------------->8---

I position the cursor on the #+BEGIN line and evaluate
`(org-element-at-point)'. I expected to get a dynamic-block, but I get a
paragraph:

(paragraph
 (:begin 15 :end 74 :contents-begin 15 :contents-end 74 :post-blank 0 :post-affiliated 15 :mode planning :granularity element :parent
         (section
          (:begin 15 :end 92 :contents-begin 15 :contents-end 92 :robust-begin 15 :robust-end 90 :post-blank 0 :post-affiliated 15 :mode section :granularity element :parent
                  (headline
                   (:raw-value "Clocktable" :begin 1 :end 92 :pre-blank 1 :contents-begin 15 :contents-end 92 :robust-begin 17 :robust-end 90 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 1 :title "Clocktable"))))))

Looks like a bug to me.


Emacs  : GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.31, cairo version 1.17.4) of 2022-02-12 Package: Org mode version 9.5.3 (release_9.5.3-452-g407104 @ /home/nick/src/emacs/org/org-mode/lisp/)
--
Nick





reply via email to

[Prev in Thread] Current Thread [Next in Thread]