emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Re: freemind export?
@ 2013-11-04  8:46 Christof Spitz
  2013-11-04 14:35 ` Jambunathan K
  0 siblings, 1 reply; 8+ messages in thread
From: Christof Spitz @ 2013-11-04  8:46 UTC (permalink / raw)
  To: Jambunathan K; +Cc: emacs-orgmode@gnu.org

Does freeplane do the placing or is it due to a POSITION switch in the
mm-file? Could you post the exported mm-file please for comparison,
please?

Thanks
Von: Jambunathan K
Gesendet: 04.11.2013 07:37
An: Christof Spitz
Cc: emacs-orgmode@gnu.org
Betreff: Re: freemind export?
Christof Spitz <christof.spitz@gmail.com> writes:

> #+TITLE: SUBJEKT
> #+AUTHOR: Christof
> #+OPTIONS: H:4
>
> * Headline 1
>
> ** Sub 1.1
> ** Sub 1.2
>
> * Headline 2
>
> ** Sub 2.1
> ** Sub 2.2
>
> Branch "Headline 2" should be place to the left of the central SUBJECT
> in Freemind.

It is getting placed rightly.

Here is the screenshot of what I get (with no additional customizations
at my end).  I use freeplane, btw.

As for styles, you need to customize your styles in Freemind exporter
and move over the XML to ox-freemind.el.  If you have a specific
question wrt style, I can help.  But I need to be convinced that you are
using the right exporter i.e., no installation issues etc etc etc.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: freemind export?
  2013-11-04  8:46 freemind export? Christof Spitz
@ 2013-11-04 14:35 ` Jambunathan K
  2013-11-04 15:58   ` Christof Spitz
  0 siblings, 1 reply; 8+ messages in thread
From: Jambunathan K @ 2013-11-04 14:35 UTC (permalink / raw)
  To: Christof Spitz; +Cc: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 237 bytes --]


See the attachment.

You can search for right and left in the XML produced.  First headline
goes right, second headline goes left, third one goes right, so on and
so forth.

If you could locate the bug I am willing to circulate a fix.


[-- Attachment #2: freemind.mm --]
[-- Type: application/x-freemind, Size: 1707 bytes --]

[-- Attachment #3: Type: text/plain, Size: 347 bytes --]


Christof Spitz <christof.spitz@gmail.com> writes:

> Does freeplane do the placing or is it due to a POSITION switch in the
> mm-file? Could you post the exported mm-file please for comparison,
> please?
>
> Thanks
> Von: Jambunathan K
> Gesendet: 04.11.2013 07:37
> An: Christof Spitz
> Cc: emacs-orgmode@gnu.org
> Betreff: Re: freemind export?

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: freemind export?
  2013-11-04 14:35 ` Jambunathan K
@ 2013-11-04 15:58   ` Christof Spitz
  2013-11-05  1:35     ` Jambunathan K
  0 siblings, 1 reply; 8+ messages in thread
From: Christof Spitz @ 2013-11-04 15:58 UTC (permalink / raw)
  To: Jambunathan K; +Cc: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1659 bytes --]

Thanks

here is a part of your mm-xml-code:

<node COLOR="#00b439" ID="sec-1-1" POSITION="right" FOLDED="false">
<font NAME="SansSerif" SIZE="16"/>
<edge STYLE="bezier" WIDTH="thin"/>
<richcontent TYPE="NODE">
<html>
<head>
</head>
<body>
<p>Sub 1.1
</p>
</body>
</html>
</richcontent>
</node>

and here is mine, containing no formatting attributes:

      <node>
<richcontent TYPE="NODE">
  <html>
    <head>
    </head>
    <body>
      <p>Sub 1.1
      </p>
    </body>
  </html>
</richcontent>
      </node>

I was not able to change the setting of "org-freemind-style-map-function",
didn't understand the syntax. Seems you have another setting there that
makes use of your predefined styles.

1. could you send me the variable settings of the exporter in your .emacs?
2. could you send me / or point me to the latest version of ox-freemind.el
that you are using?

I am not a programmer, so I don't much about what is going on in the lisp
code.

Thanks for helping,
Christof


2013/11/4 Jambunathan K <kjambunathan@gmail.com>

>
> See the attachment.
>
> You can search for right and left in the XML produced.  First headline
> goes right, second headline goes left, third one goes right, so on and
> so forth.
>
> If you could locate the bug I am willing to circulate a fix.
>
>
>
> Christof Spitz <christof.spitz@gmail.com> writes:
>
> > Does freeplane do the placing or is it due to a POSITION switch in the
> > mm-file? Could you post the exported mm-file please for comparison,
> > please?
> >
> > Thanks
> > Von: Jambunathan K
> > Gesendet: 04.11.2013 07:37
> > An: Christof Spitz
> > Cc: emacs-orgmode@gnu.org
> > Betreff: Re: freemind export?
>
>

[-- Attachment #2: Type: text/html, Size: 3470 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: freemind export?
  2013-11-04 15:58   ` Christof Spitz
@ 2013-11-05  1:35     ` Jambunathan K
  2013-11-09  0:09       ` Christof Spitz
  0 siblings, 1 reply; 8+ messages in thread
From: Jambunathan K @ 2013-11-05  1:35 UTC (permalink / raw)
  To: Christof Spitz; +Cc: emacs-orgmode@gnu.org

Christof Spitz <christof.spitz@gmail.com> writes:

> 1. could you send me the variable settings of the exporter in your .
> emacs? 

No customization at my end.

emacs -Q -l ~/.emacs-minimal


--8<---------------cut here---------------start------------->8---
kjambunathan@debian-6:~$ cat .emacs-minimal

(add-to-list 'load-path "~/src/org-mode/lisp/")
(require 'org-loaddefs)

(add-to-list 'load-path "~/src/org-mode/contrib/lisp/")
(require 'ox-freemind)

--8<---------------cut here---------------end--------------->8---

C-c C-e f f

> 2. could you send me / or point me to the latest version of
> ox-freemind.el that you are using?

I am using whatever that comes with Org-mode right now, with only change:
Do a add (require 'cl).

My version: 
http://repo.or.cz/w/org-mode/org-kjn.git

http://repo.or.cz/w/org-mode/org-kjn.git/blob_plain/01db56d04ad8842da74c358ae6e27fe8147f6808:/contrib/lisp/ox-freemind.el


Org-mode version: 

http://orgmode.org/w/?p=org-mode.git;a=blob_plain;f=contrib/lisp/ox-freemind.el;hb=HEAD

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: freemind export?
  2013-11-05  1:35     ` Jambunathan K
@ 2013-11-09  0:09       ` Christof Spitz
  2013-11-09  3:59         ` bug#15840: libxml-parse-xml-region: Raise runtime error, don't return nil Jambunathan K
  0 siblings, 1 reply; 8+ messages in thread
From: Christof Spitz @ 2013-11-09  0:09 UTC (permalink / raw)
  To: Jambunathan K; +Cc: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1624 bytes --]

Deas Jambunathan,

I found the bug: Windows-Emacs was missing the libxml2 library. I got the
libxml2-2.7.8.-w32-bin.zip, copied the content of /bin into Emacs' /bin
directory and now the formatting works.

I think it would be nice to have the level 0 node (title) formatted as <p
style="text-align: center"> but that can probably done by using the style
system.

BTW: Freeplane messes the UTF-8 characters up when importing, that's why I
use freemind.

Thanks for your work,
Christof




2013/11/5 Jambunathan K <kjambunathan@gmail.com>

> Christof Spitz <christof.spitz@gmail.com> writes:
>
> > 1. could you send me the variable settings of the exporter in your .
> > emacs?
>
> No customization at my end.
>
> emacs -Q -l ~/.emacs-minimal
>
>
> --8<---------------cut here---------------start------------->8---
> kjambunathan@debian-6:~$ cat .emacs-minimal
>
> (add-to-list 'load-path "~/src/org-mode/lisp/")
> (require 'org-loaddefs)
>
> (add-to-list 'load-path "~/src/org-mode/contrib/lisp/")
> (require 'ox-freemind)
>
> --8<---------------cut here---------------end--------------->8---
>
> C-c C-e f f
>
> > 2. could you send me / or point me to the latest version of
> > ox-freemind.el that you are using?
>
> I am using whatever that comes with Org-mode right now, with only change:
> Do a add (require 'cl).
>
> My version:
> http://repo.or.cz/w/org-mode/org-kjn.git
>
>
> http://repo.or.cz/w/org-mode/org-kjn.git/blob_plain/01db56d04ad8842da74c358ae6e27fe8147f6808:/contrib/lisp/ox-freemind.el
>
>
> Org-mode version:
>
>
> http://orgmode.org/w/?p=org-mode.git;a=blob_plain;f=contrib/lisp/ox-freemind.el;hb=HEAD
>

[-- Attachment #2: Type: text/html, Size: 2717 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#15840: libxml-parse-xml-region: Raise runtime error, don't return nil
  2013-11-09  0:09       ` Christof Spitz
@ 2013-11-09  3:59         ` Jambunathan K
  2013-11-09  7:44           ` Christof Spitz
  0 siblings, 1 reply; 8+ messages in thread
From: Jambunathan K @ 2013-11-09  3:59 UTC (permalink / raw)
  To: Christof Spitz; +Cc: 15840, emacs-orgmode


Christof

Christof Spitz <christof.spitz@gmail.com> writes:

> I found the bug: Windows-Emacs was missing the libxml2 library. I got
> the libxml2-2.7.8.-w32-bin.zip, copied the content of /bin into Emacs'
> /bin directory and now the formatting works.

This should have been very difficult to track down. 

ox-freemind.el does invoke `libxml-parse-xml-region'.  I think Emacs
should raise a runtime error (and not return nil) if the above API is
called but libxml is unavailable.

ps: This bug is a good excuse to audit "other" such wrapper calls (if
there are any) and make sure that they don't fall silently.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: libxml-parse-xml-region: Raise runtime error, don't return nil
  2013-11-09  3:59         ` bug#15840: libxml-parse-xml-region: Raise runtime error, don't return nil Jambunathan K
@ 2013-11-09  7:44           ` Christof Spitz
  2013-11-09 11:53             ` bug#15840: " Jambunathan K
  0 siblings, 1 reply; 8+ messages in thread
From: Christof Spitz @ 2013-11-09  7:44 UTC (permalink / raw)
  To: Jambunathan K; +Cc: bug-gnu-emacs, emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 809 bytes --]

Emacs did return a runtime error, it was simply my mistake not to have
noticed it in the Message buffer.


2013/11/9 Jambunathan K <kjambunathan@gmail.com>

>
> Christof
>
> Christof Spitz <christof.spitz@gmail.com> writes:
>
> > I found the bug: Windows-Emacs was missing the libxml2 library. I got
> > the libxml2-2.7.8.-w32-bin.zip, copied the content of /bin into Emacs'
> > /bin directory and now the formatting works.
>
> This should have been very difficult to track down.
>
> ox-freemind.el does invoke `libxml-parse-xml-region'.  I think Emacs
> should raise a runtime error (and not return nil) if the above API is
> called but libxml is unavailable.
>
> ps: This bug is a good excuse to audit "other" such wrapper calls (if
> there are any) and make sure that they don't fall silently.
>
>
>
>
>
>

[-- Attachment #2: Type: text/html, Size: 1269 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#15840: libxml-parse-xml-region: Raise runtime error, don't return nil
  2013-11-09  7:44           ` Christof Spitz
@ 2013-11-09 11:53             ` Jambunathan K
  0 siblings, 0 replies; 8+ messages in thread
From: Jambunathan K @ 2013-11-09 11:53 UTC (permalink / raw)
  To: Christof Spitz; +Cc: 15840, emacs-orgmode

Christof Spitz <christof.spitz@gmail.com> writes:

> Emacs did return a runtime error

This is what Emacs does.  

From xml.c: 96
	  message1 ("libxml2 library not found");

and message1 (based on other uses elsewhere) seems to be used for
ordinary echo area messages (like prompt strings etc) as opposed to an
"error" message.

----------------------------------------------------------------

It is easy to check though.

I don't have access to a Windows machine.  It should really be an error
and not a simple informative message.  Try this:

1. Remove libxml
2. M-x toggle-debug-on-error RET
3. Export to freemind

Do you now get a backtrace buffer?  

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-11-09 11:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-04  8:46 freemind export? Christof Spitz
2013-11-04 14:35 ` Jambunathan K
2013-11-04 15:58   ` Christof Spitz
2013-11-05  1:35     ` Jambunathan K
2013-11-09  0:09       ` Christof Spitz
2013-11-09  3:59         ` bug#15840: libxml-parse-xml-region: Raise runtime error, don't return nil Jambunathan K
2013-11-09  7:44           ` Christof Spitz
2013-11-09 11:53             ` bug#15840: " Jambunathan K

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).