From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: [ANN] Editable HTML export of Org-mode files Date: Wed, 15 Aug 2012 11:25:52 +0800 Message-ID: <87mx1wbzun.fsf@ericabrahamsen.net> References: <87pq6ua0kk.fsf@gmx.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50872) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1UFA-00041W-5a for emacs-orgmode@gnu.org; Tue, 14 Aug 2012 23:26:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T1UF8-0007Vv-ET for emacs-orgmode@gnu.org; Tue, 14 Aug 2012 23:26:04 -0400 Received: from plane.gmane.org ([80.91.229.3]:38475) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1UF8-0007UT-3Z for emacs-orgmode@gnu.org; Tue, 14 Aug 2012 23:26:02 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1T1UF5-0008J5-P4 for emacs-orgmode@gnu.org; Wed, 15 Aug 2012 05:25:59 +0200 Received: from 221.216.164.134 ([221.216.164.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Aug 2012 05:25:59 +0200 Received: from eric by 221.216.164.134 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Aug 2012 05:25:59 +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 Tue, Aug 14 2012, Eric Schulte wrote: > Hi, > > I've recently put together a web server which runs in Emacs and exports > local Org-mode files to HTML in such a way that they may be edited from > within a web browser with the edits saved to local files on disk. The > code is available from github. > > repository ---- https://github.com/eschulte/org-ehtml > README ------- http://eschulte.github.com/org-ehtml > > This is a very thin Emacs Lisp and JavaScript wrapper around Nic > Ferrier's elnode Emacs web server [1], and Nicolas Goaziou's structured > Org-mode file representation and export engine. It requires Emacs 24 > and the development versions of both Org-mode and elnode. > > The code is fairly new so there are likely some kinks to be worked out > (backup your files before editing them with this web-server), but the > implementation is very simple and should be easy to modify. See the > README for information on how to make use of elnode's authentication > system, or how to have web edits automatically committed to a local > version control system. I gave this a very brief whirl, with the dev versions of emacs, org, elnode, and org-ehtml, and running the test server on simple.org as described in the README. Every time I edited a block and clicked "save", it just deleted the whole block. I got these errors in ~/.elnodelogs/elnode-error: 20120814213846: elnode--sentinel 'open from 127.0.0.1.' for process *elnode-webserver-proc*<1> <127.0.0.1:59834> with buffer nil 20120814213846: Elnode status: *elnode-webserver-proc*<1> <127.0.0.1:59834> open from 127.0.0.1 20120814213847: elnode--sentinel 'open from 127.0.0.1.' for process *elnode-webserver-proc*<1> <127.0.0.1:59836> with buffer nil 20120814213847: Elnode status: *elnode-webserver-proc*<1> <127.0.0.1:59836> open from 127.0.0.1 20120814213847: filter: calling handler on *elnode-webserver-proc*<1> <127.0.0.1:59834> 20120814213848: starting HTTP response on *elnode-webserver-proc*<1> <127.0.0.1:59834> 20120814213848: Elnode-child-process init *elnode-webserver-proc*<1> <127.0.0.1:59834> 20120814213848: filter: handler returned on *elnode-webserver-proc*<1> <127.0.0.1:59834> 20120814213848: Elnode-child-process-filter http state: open data length: 4096 on *elnode-webserver-proc*<1> <127.0.0.1:59834> 20120814213848: Elnode-child-process-filter http state: open data length: 4096 on *elnode-webserver-proc*<1> <127.0.0.1:59834> 20120814213848: Elnode-child-process-filter http state: open data length: 1286 on *elnode-webserver-proc*<1> <127.0.0.1:59834> 20120814213848: Elnode-child-process-sentinel Status @ finished: open -> exit on *elnode-webserver-proc*<1> <127.0.0.1:59834> 20120814213848: elnode--http-end ending socket *elnode-webserver-proc*<1> <127.0.0.1:59834> 20120814213848: elnode--sentinel 'deleted.' for process *elnode-webserver-proc*<1> <127.0.0.1:59834> with buffer *elnode-request-59834* 20120814213849: Elnode status: *elnode-webserver-proc*<1> <127.0.0.1:59834> deleted 20120814213854: filter: calling handler on *elnode-webserver-proc*<1> <127.0.0.1:59836> 20120814213854: starting HTTP response on *elnode-webserver-proc*<1> <127.0.0.1:59836> 20120814213854: elnode--process-send-eof on *elnode-webserver-proc*<1> <127.0.0.1:59836> 20120814213854: elnode--http-end ending socket *elnode-webserver-proc*<1> <127.0.0.1:59836> 20120814213855: elnode--sentinel 'deleted.' for process *elnode-webserver-proc*<1> <127.0.0.1:59836> with buffer *elnode-request-59836* 20120814213855: Elnode status: *elnode-webserver-proc*<1> <127.0.0.1:59836> deleted 20120814213855: filter: handler returned on *elnode-webserver-proc*<1> <127.0.0.1:59836> 20120814213940: elnode--sentinel 'open from 127.0.0.1.' for process *elnode-webserver-proc*<1> <127.0.0.1:59848> with buffer nil 20120814213940: Elnode status: *elnode-webserver-proc*<1> <127.0.0.1:59848> open from 127.0.0.1 20120814213940: filter: calling handler on *elnode-webserver-proc*<1> <127.0.0.1:59848> 20120814213940: starting HTTP response on *elnode-webserver-proc*<1> <127.0.0.1:59848> 20120814213940: elnode--process-send-eof on *elnode-webserver-proc*<1> <127.0.0.1:59848> 20120814213940: elnode--http-end ending socket *elnode-webserver-proc*<1> <127.0.0.1:59848> 20120814213940: elnode--sentinel 'deleted.' for process *elnode-webserver-proc*<1> <127.0.0.1:59848> with buffer *elnode-request-59848* 20120814213940: Elnode status: *elnode-webserver-proc*<1> <127.0.0.1:59848> deleted 20120814213941: filter: handler returned on *elnode-webserver-proc*<1> <127.0.0.1:59848> 20120814213954: elnode--sentinel 'open from 127.0.0.1.' for process *elnode-webserver-proc*<1> <127.0.0.1:59851> with buffer nil 20120814213954: Elnode status: *elnode-webserver-proc*<1> <127.0.0.1:59851> open from 127.0.0.1 20120814213955: filter: calling handler on *elnode-webserver-proc*<1> <127.0.0.1:59851> 20120814213955: starting HTTP response on *elnode-webserver-proc*<1> <127.0.0.1:59851> 20120814213955: elnode--process-send-eof on *elnode-webserver-proc*<1> <127.0.0.1:59851> 20120814213955: elnode--http-end ending socket *elnode-webserver-proc*<1> <127.0.0.1:59851> 20120814213955: elnode--sentinel 'deleted.' for process *elnode-webserver-proc*<1> <127.0.0.1:59851> with buffer *elnode-request-59851* 20120814213955: Elnode status: *elnode-webserver-proc*<1> <127.0.0.1:59851> deleted 20120814213955: filter: handler returned on *elnode-webserver-proc*<1> <127.0.0.1:59851> 20120814214032: elnode--sentinel 'deleted.' for process *elnode-webserver-proc*<1> with buffer *elnode-webserver* 20120814214032: Elnode server stopped I'd be happy to mess with this further if it would be helpful. E -- GNU Emacs 24.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.11) of 2012-08-06 on pellet 7.8.11