[Top][All Lists]

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

Re: [O] Editing HTML blocks: no special environment to edit here

From: Nicolas Goaziou
Subject: Re: [O] Editing HTML blocks: no special environment to edit here
Date: Thu, 22 Aug 2013 15:59:18 +0200

Karl Voit <address@hidden> writes:

> Hello Nick!
> * Nick Dokos <address@hidden> wrote:
>> Karl Voit <address@hidden> writes:
>>> However, I did a fresh "git pull" (release_8.0.7-384-g6fdc23) and
>>> still get this behavior:
>>>   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.


Nicolas Goaziou

reply via email to

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