From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: [ANN] Editable HTML export of Org-mode files Date: Thu, 16 Aug 2012 13:08:08 +0800 Message-ID: <874no3v2yv.fsf@ericabrahamsen.net> References: <87pq6ua0kk.fsf@gmx.com> <87mx1wbzun.fsf@ericabrahamsen.net> <87txw4b2w4.fsf@gmx.com> <87sjbn4su4.fsf@gmx.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:54864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1sJq-0007yg-Lk for emacs-orgmode@gnu.org; Thu, 16 Aug 2012 01:08:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T1sJp-0005lR-6B for emacs-orgmode@gnu.org; Thu, 16 Aug 2012 01:08:30 -0400 Received: from plane.gmane.org ([80.91.229.3]:56736) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1sJo-0005lI-RY for emacs-orgmode@gnu.org; Thu, 16 Aug 2012 01:08:29 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1T1sJl-0003Nv-75 for emacs-orgmode@gnu.org; Thu, 16 Aug 2012 07:08:25 +0200 Received: from 114.252.255.138 ([114.252.255.138]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Aug 2012 07:08:25 +0200 Received: from eric by 114.252.255.138 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Aug 2012 07:08:25 +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 On Thu, Aug 16 2012, Eric Schulte wrote: >>> Every time I edited a block and clicked "save", it just deleted the >>> whole block. I got these errors in ~/.elnodelogs/elnode-error: >>> >> >> I'm not sure what could be causing this problem. Did the test suite run >> successfully for you? > > I've now added a POST test to the test suite. So if your problem > persists you should now see a failing test, and conversely if you are > now passing the test suite this problem should be eliminated. So yes, I did run the tests the first time, and you're right that, without the "post" test, they went just fine. The documents were also altered on-disk (ie, the chunks really were deleted). I updated org-ehtml to get the new tests, and the "post" test failed thusly: --8<---------------cut here---------------start------------->8--- F org-ehtml-post-request (ert-test-failed ((should (string-match "foo" html)) :form (string-match "foo" #("\n

foo\n

" 0 17 (fontified t front-sticky (field inhibit-line-move-field-capture) rear-nonsticky t field output inhibit-line-move-field-capture t) 17 21 (fontified t front-sticky (field inhibit-line-move-field-capture) rear-nonsticky t field output inhibit-line-move-field-capture t))) :value nil)) --8<---------------cut here---------------end--------------->8--- This is still with my regular emacs environment. Then I restarted emacs -Q and used your batch.el file. I'm still getting the same problem, unfortunately: the editable blocks disappear when I hit "save". I realized I don't actually know whether this is supposed to edit the simple.org or simple.html files: anyway, the text disappears from the org file, but not from the html file. Here's the output of *Messages*: --8<---------------cut here---------------start------------->8--- For information about GNU Emacs and the GNU system, type C-h C-a. Mark set [2 times] deleting server process Added to /home/eric/.elnodelogs/elnode-error found the server process - NOT deleting Added to /home/eric/.elnodelogs/elnode-error ---------------------start-relevant-output--------------------- Added to /home/eric/.elnodelogs/elnode-error [5 times] Added to /home/eric/.elnodelogs/org-ehtml Added to /home/eric/.elnodelogs/elnode-error [11 times] Added to /home/eric/.elnodelogs/org-ehtml Added to /home/eric/.elnodelogs/elnode-error [9 times] Added to /home/eric/.elnodelogs/org-ehtml OVERVIEW Loading vc-git...done Saving file /home/eric/.emacs.d/org-ehtml/test/examples/simple.org... Wrote /home/eric/.emacs.d/org-ehtml/test/examples/simple.org Added to /home/eric/.elnodelogs/elnode-error Saving file /tmp/org-22133iXI... Wrote /tmp/org-22133iXI OVERVIEW Exporting... [2 times] HTML export done, pushed to kill ring and clipboard Added to /home/eric/.elnodelogs/elnode-error [8 times] Added to /home/eric/.elnodelogs/org-ehtml OVERVIEW Saving file /home/eric/.emacs.d/org-ehtml/test/examples/simple.org... Wrote /home/eric/.emacs.d/org-ehtml/test/examples/simple.org Added to /home/eric/.elnodelogs/elnode-error Saving file /tmp/org-22133vhO... Wrote /tmp/org-22133vhO Exporting... [2 times] HTML export done, pushed to kill ring and clipboard Added to /home/eric/.elnodelogs/elnode-error [5 times] Making completion list... deleting server process ; here I called (elnode-stop 3333) explicitly) Added to /home/eric/.elnodelogs/elnode-error found the server process - NOT deleting Added to /home/eric/.elnodelogs/elnode-error nil --8<---------------cut here---------------end--------------->8--- And the elnode error file: --8<---------------cut here---------------start------------->8--- 20120816123716: elnode--sentinel 'deleted.' for process *elnode-webserver-proc* with buffer *elnode-webserver* 20120816123716: Elnode server stopped 20120816123751: elnode--sentinel 'open from 127.0.0.1.' for process *elnode-webserver-proc* <127.0.0.1:41647> with buffer nil 20120816123751: Elnode status: *elnode-webserver-proc* <127.0.0.1:41647> open from 127.0.0.1 20120816123751: elnode--sentinel 'open from 127.0.0.1.' for process *elnode-webserver-proc* <127.0.0.1:41649> with buffer nil 20120816123752: Elnode status: *elnode-webserver-proc* <127.0.0.1:41649> open from 127.0.0.1 20120816123752: filter: calling handler on *elnode-webserver-proc* <127.0.0.1:41647> 20120816123752: starting HTTP response on *elnode-webserver-proc* <127.0.0.1:41647> 20120816123752: Elnode-child-process init *elnode-webserver-proc* <127.0.0.1:41647> 20120816123752: filter: handler returned on *elnode-webserver-proc* <127.0.0.1:41647> 20120816123752: Elnode-child-process-filter http state: open data length: 4096 on *elnode-webserver-proc* <127.0.0.1:41647> 20120816123752: Elnode-child-process-filter http state: open data length: 4096 on *elnode-webserver-proc* <127.0.0.1:41647> 20120816123753: Elnode-child-process-filter http state: open data length: 1286 on *elnode-webserver-proc* <127.0.0.1:41647> 20120816123753: Elnode-child-process-sentinel Status @ finished: open -> exit on *elnode-webserver-proc* <127.0.0.1:41647> 20120816123753: elnode--http-end ending socket *elnode-webserver-proc* <127.0.0.1:41647> 20120816123753: elnode--sentinel 'deleted.' for process *elnode-webserver-proc* <127.0.0.1:41647> with buffer *elnode-request-41647* 20120816123753: Elnode status: *elnode-webserver-proc* <127.0.0.1:41647> deleted 20120816123755: filter: calling handler on *elnode-webserver-proc* <127.0.0.1:41649> 20120816123755: starting HTTP response on *elnode-webserver-proc* <127.0.0.1:41649> 20120816123755: elnode--process-send-eof on *elnode-webserver-proc* <127.0.0.1:41649> 20120816123755: elnode--http-end ending socket *elnode-webserver-proc* <127.0.0.1:41649> 20120816123755: elnode--sentinel 'deleted.' for process *elnode-webserver-proc* <127.0.0.1:41649> with buffer *elnode-request-41649* 20120816123755: Elnode status: *elnode-webserver-proc* <127.0.0.1:41649> deleted 20120816123755: filter: handler returned on *elnode-webserver-proc* <127.0.0.1:41649> 20120816123842: elnode--sentinel 'open from 127.0.0.1.' for process *elnode-webserver-proc* <127.0.0.1:41660> with buffer nil 20120816123842: Elnode status: *elnode-webserver-proc* <127.0.0.1:41660> open from 127.0.0.1 20120816123842: filter: calling handler on *elnode-webserver-proc* <127.0.0.1:41660> 20120816123843: starting HTTP response on *elnode-webserver-proc* <127.0.0.1:41660> 20120816123843: elnode--process-send-eof on *elnode-webserver-proc* <127.0.0.1:41660> 20120816123843: elnode--http-end ending socket *elnode-webserver-proc* <127.0.0.1:41660> 20120816123843: elnode--sentinel 'deleted.' for process *elnode-webserver-proc* <127.0.0.1:41660> with buffer *elnode-request-41660* 20120816123843: Elnode status: *elnode-webserver-proc* <127.0.0.1:41660> deleted 20120816123843: filter: handler returned on *elnode-webserver-proc* <127.0.0.1:41660> 20120816123909: elnode--sentinel 'open from 127.0.0.1.' for process *elnode-webserver-proc* <127.0.0.1:41664> with buffer nil 20120816123909: Elnode status: *elnode-webserver-proc* <127.0.0.1:41664> open from 127.0.0.1 20120816123909: filter: calling handler on *elnode-webserver-proc* <127.0.0.1:41664> 20120816123910: starting HTTP response on *elnode-webserver-proc* <127.0.0.1:41664> 20120816123910: elnode--process-send-eof on *elnode-webserver-proc* <127.0.0.1:41664> 20120816123910: elnode--http-end ending socket *elnode-webserver-proc* <127.0.0.1:41664> 20120816123910: elnode--sentinel 'deleted.' for process *elnode-webserver-proc* <127.0.0.1:41664> with buffer *elnode-request-41664* 20120816123910: Elnode status: *elnode-webserver-proc* <127.0.0.1:41664> deleted 20120816123910: filter: handler returned on *elnode-webserver-proc* <127.0.0.1:41664> 20120816123943: elnode--sentinel 'deleted.' for process *elnode-webserver-proc* with buffer *elnode-webserver* 20120816123943: Elnode server stopped --8<---------------cut here---------------end--------------->8--- -- GNU Emacs 24.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.11) of 2012-08-14 on pellet 7.8.11