From: Karl Voit <devnull@Karl-Voit.at>
To: emacs-orgmode@gnu.org
Subject: Re: Editing HTML blocks: no special environment to edit here
Date: Thu, 22 Aug 2013 15:03:49 +0200 [thread overview]
Message-ID: <2013-08-22T14-47-51@devnull.Karl-Voit.at> (raw)
In-Reply-To: 87ob8qx7ap.fsf@gmail.com
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?
--
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
next prev parent reply other threads:[~2013-08-22 13:04 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 [this message]
2013-08-22 13:59 ` Nicolas Goaziou
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2013-08-22T14-47-51@devnull.Karl-Voit.at \
--to=devnull@karl-voit.at \
--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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).