From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Voit Subject: Re: Editing HTML blocks: no special environment to edit here Date: Thu, 22 Aug 2013 15:03:49 +0200 Message-ID: <2013-08-22T14-47-51@devnull.Karl-Voit.at> 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> Reply-To: news1142@Karl-Voit.at Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55589) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCUYa-0002cH-1K for emacs-orgmode@gnu.org; Thu, 22 Aug 2013 09:04:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VCUYU-00065O-Qw for emacs-orgmode@gnu.org; Thu, 22 Aug 2013 09:04:07 -0400 Received: from plane.gmane.org ([80.91.229.3]:52523) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCUYU-00065G-J8 for emacs-orgmode@gnu.org; Thu, 22 Aug 2013 09:04:02 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VCUYS-0005Kb-1K for emacs-orgmode@gnu.org; Thu, 22 Aug 2013 15:04:00 +0200 Received: from mail.michael-prokop.at ([88.198.6.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 22 Aug 2013 15:04:00 +0200 Received: from news1142 by mail.michael-prokop.at with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 22 Aug 2013 15:04:00 +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: emacs-orgmode@gnu.org 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 «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