From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Editing HTML blocks: no special environment to edit here Date: Thu, 22 Aug 2013 15:59:18 +0200 Message-ID: <87a9k9ygg9.fsf@gmail.com> References: <2013-08-21T10-42-23@devnull.Karl-Voit.at> <2013-08-22T10-53-22@devnull.Karl-Voit.at> <87eh9mxfu5.fsf@gmail.com> <2013-08-22T12-00-35@devnull.Karl-Voit.at> <87ob8qx7ap.fsf@gmail.com> <2013-08-22T14-47-51@devnull.Karl-Voit.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41946) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCVPr-0006ym-6C for emacs-orgmode@gnu.org; Thu, 22 Aug 2013 09:59:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VCVPl-00029a-RY for emacs-orgmode@gnu.org; Thu, 22 Aug 2013 09:59:11 -0400 Received: from mail-we0-x230.google.com ([2a00:1450:400c:c03::230]:34442) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCVPl-00029J-Kx for emacs-orgmode@gnu.org; Thu, 22 Aug 2013 09:59:05 -0400 Received: by mail-we0-f176.google.com with SMTP id q56so1682264wes.21 for ; Thu, 22 Aug 2013 06:59:04 -0700 (PDT) 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") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: news1142@Karl-Voit.at Cc: emacs-orgmode@gnu.org Karl Voit writes: > Hello Nick! > > * Nick Dokos wrote: >> Karl Voit 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 =C2=ABC-c '=C2=BB. >>> >>> 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: > > =C2=ABorg-edit-special=C2=BB is defined in =C2=ABorg.el=C2=BB: > > The line =C2=AB(case (org-element-type element)=C2=BB 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))))=20 > > This way, the main routines are not executed. Instead, the line =C2=AB(if > (eq (org-element-type...=C2=BB gets evaluated next. > > In short: =C2=AB#+BEGIN_HTML=C2=BB is not of element type =C2=ABelement= =C2=BB and thus > ignored by =C2=ABorg-edit-special=C2=BB. > > 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, --=20 Nicolas Goaziou