Karl Voit <devn...@karl-voit.at> writes:

> Hello Nick!
>
> * Nick Dokos <ndo...@gmail.com> wrote:
>> Karl Voit <devn...@karl-voit.at> writes:
>>
>>> However, I did a fresh "git pull" (release_8.0.7-384-g6fdc23) and
>>> still get this behavior:
>>>
>>> #+BEGIN_HTML
>>>   bar
>>> #+END_HTML
>>> ... cannot be edited via «C-c '».
>>>
>>> Or: what else can I check on my side?
>>
>> Maybe you can edebug-defun the function org-edit-special and step
>> through it to see where it goes astray in the html case.
>
> First time I used edebug! Great experience :-)
>
> OK, so I guess I nailed it down to the line which goes wrong:
>
> «org-edit-special» is defined in «org.el»:
>
> The line «(case (org-element-type element)» does not result
> positively. Instead, it results to:
>
> Result: (paragraph (:begin 182 :end 188 :contents-begin 182
> :contents-end 188 :post-blank 0 :post-affiliated 182 :parent
> (special-block (:type "HTML" :begin 169 :end 200 :hiddenp nil
> :contents-begin 182 :contents-end 188 :post-blank 1 :post-affiliated
> 169 :parent nil)))) 
>
> This way, the main routines are not executed. Instead, the line «(if
> (eq (org-element-type...» gets evaluated next.
>
> In short: «#+BEGIN_HTML» is not of element type «element» and thus
> ignored by «org-edit-special».
>
> I hope, I did not misinterpret the debugging result.
>
> In case my interpretation is correct, it still seems to be a bug of
> Org-mode and not my setup. So why does your setup work properly?

It only means that you didn't load `html' back-end. So the parser cannot
recognize "html" blocks as export blocks.


Regards,

-- 
Nicolas Goaziou

Reply via email to