emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: emacs-orgmode@gnu.org
Subject: Re: [ANN] Editable HTML export of Org-mode files
Date: Thu, 16 Aug 2012 13:08:08 +0800	[thread overview]
Message-ID: <874no3v2yv.fsf@ericabrahamsen.net> (raw)
In-Reply-To: 87sjbn4su4.fsf@gmx.com

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 "<i>foo</i>" html))
      :form
      (string-match "<i>foo</i>"
		    #("\n<p><em>foo</em>\n</p>" 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

  reply	other threads:[~2012-08-16  5:08 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-13 22:28 [ANN] Editable HTML export of Org-mode files Eric Schulte
2012-08-14  7:44 ` Bastien
2012-08-14  9:40 ` Rasmus
2012-08-14 10:01   ` Bastien
2012-08-14 12:56     ` Eric Schulte
2012-08-14 21:45       ` Bastien
2012-08-15 15:31         ` Eric Schulte
2012-08-15  3:25 ` Eric Abrahamsen
2012-08-15 15:17   ` Eric Schulte
2012-08-15 23:51     ` Eric Schulte
2012-08-16  5:08       ` Eric Abrahamsen [this message]
2012-08-16  6:45         ` Eric Schulte
2012-08-16  7:27           ` Eric Abrahamsen
2012-08-16 13:36             ` Eric Schulte
2012-08-16 14:41               ` Eric Abrahamsen
2012-08-16 15:08                 ` Eric Schulte
2012-08-16  2:06 ` Ista Zahn
2012-08-16  6:31   ` Eric Schulte
2012-08-16 15:58     ` Ista Zahn
2012-08-16 16:36       ` Eric Schulte
2012-08-16 17:44         ` Achim Gratz
2012-08-16 20:05           ` Eric Schulte
2012-08-16 19:43         ` Ista Zahn
2012-08-16 20:11           ` Eric Schulte
2012-08-16 20:50             ` Ista Zahn
2012-10-02  5:23 ` Eric S Fraga
2012-10-05  3:23   ` Eric Schulte
2012-10-21 18:27 ` Simon Thum
2012-10-22 20:38   ` Eric Schulte
2012-10-24 19:19     ` Simon Thum
2012-10-28 15:19       ` Eric Schulte
2012-10-28 15:35         ` Simon Thum
2012-10-29  8:29           ` Nitin Agarwal
2012-10-30  9:37             ` Nitin Agarwal
2012-10-30 16:56             ` Eric Schulte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874no3v2yv.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).