From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [ANN] Editable HTML export of Org-mode files Date: Thu, 16 Aug 2012 07:36:05 -0600 Message-ID: <87a9xvgdo6.fsf@gmx.com> References: <87pq6ua0kk.fsf@gmx.com> <87mx1wbzun.fsf@ericabrahamsen.net> <87txw4b2w4.fsf@gmx.com> <87sjbn4su4.fsf@gmx.com> <874no3v2yv.fsf@ericabrahamsen.net> <87d32ribbv.fsf@gmx.com> <87pq6rqotx.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T20wh-0003UZ-76 for emacs-orgmode@gnu.org; Thu, 16 Aug 2012 10:21:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T20wb-0006t5-28 for emacs-orgmode@gnu.org; Thu, 16 Aug 2012 10:21:11 -0400 Received: from mailout-us.gmx.com ([74.208.5.67]:35960 helo=mailout-us.mail.com) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1T20wa-0006sc-RY for emacs-orgmode@gnu.org; Thu, 16 Aug 2012 10:21:04 -0400 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: Eric Abrahamsen Cc: emacs-orgmode@gnu.org Eric Abrahamsen writes: > On Thu, Aug 16 2012, Eric Schulte wrote: > >> Eric Abrahamsen writes: >> >>> 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). >> >> Interesting. > > [...] > >> Even thought this test is failing, it does show that your elnode server >> is returning the HTML in response to your POST requests. It looks like >> it only fails because your Emacs exports *foo* as foo instead >> of as foo. >> >>> >>> 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: >> > > [...] > >> I've just pushed up some changes to the git repository which add new >> require statements. Hopefully the errors above were caused by some >> required functions not being loaded at run time. If the newest from git >> doesn't work fix these problems, please try running >> >> emacs -Q -l batch.el >> >> with this updated version of batch.el, and let me know what is printed >> in the *Messages* buffer in the line which starts as "params:". > > The same test failed in the same way, Fair enough, this must be a legitimate difference in our HTML export, I'll make the test appropriately more permissive. > so I loaded up the new batch.el file, and here's the "params" line: > > params:(("path" . "/simple.org") ("end" . "577") ("beg" . "156") ("org" > . "")) > > Hope that's enlightening! > Yes, very enlightening. It means that the server-side and Emacs Lisp side are working as expected. However, for some reason, when you hit [SAVE] the information submitted by your browser includes an empty text field (this is the "org" pair above). This must be a JavaScript issue related to some difference between browsers. Can I ask, what browser you are using? I've done all of my testing with browsers in the Firefox family (Firefox and conkeror). Thanks! > > E -- Eric Schulte http://cs.unm.edu/~eschulte