From: Nicolas Goaziou <n.goaziou@gmail.com>
To: news1142@Karl-Voit.at
Cc: emacs-orgmode@gnu.org
Subject: Re: Editing HTML blocks: no special environment to edit here
Date: Thu, 22 Aug 2013 15:59:18 +0200 [thread overview]
Message-ID: <87a9k9ygg9.fsf@gmail.com> (raw)
In-Reply-To: <2013-08-22T14-47-51@devnull.Karl-Voit.at> (Karl Voit's message of "Thu, 22 Aug 2013 15:03:49 +0200")
Karl Voit <devnull@Karl-Voit.at> writes:
> Hello Nick!
>
> * Nick Dokos <ndokos@gmail.com> wrote:
>> Karl Voit <devnull@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
next prev parent reply other threads:[~2013-08-22 13:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-21 9:12 Editing HTML blocks: no special environment to edit here Karl Voit
2013-08-22 8:55 ` Karl Voit
2013-08-22 8:57 ` Nicolas Goaziou
2013-08-22 11:07 ` Karl Voit
2013-08-22 12:02 ` Nick Dokos
2013-08-22 13:03 ` Karl Voit
2013-08-22 13:59 ` Nicolas Goaziou [this message]
2013-08-22 14:46 ` Karl Voit
2013-08-22 16:38 ` Suvayu Ali
2013-08-22 17:44 ` Editing HTML blocks: no special environment to edit here - solved Karl Voit
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a9k9ygg9.fsf@gmail.com \
--to=n.goaziou@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=news1142@Karl-Voit.at \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.