[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: Karl Voit
Subject: Re: [O] Editing HTML blocks: no special environment to edit here
Date: Thu, 22 Aug 2013 15:03:49 +0200
User-agent: slrn/0.9.9 (Linux)

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
>> ... 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?

mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
       > get Memacs from https://github.com/novoid/Memacs <

https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github

reply via email to

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