It seems in the function of org-freemind-write-mm-buffer, in the following code segment, the treatment of sub-node level may have some problem. If the level is one level more than its parent’s level, the function will abort, abandoning the expert. I’d wish that it would be more robust to do the export regardless the unusual level number, and just give clearer warning.

 

 

(when (> next-level current-level)

                  (if (not (and org-odd-levels-only

                                (/= (mod current-level 2) 0)

                                (= next-level (+ 2 current-level))))

                      (setq skipping-odd nil)

                    (setq skipping-odd t)

                    (setq skipped-odd (1+ skipped-odd)))

                  (unless (or (= next-level (1+ current-level))

                              skipping-odd)

                    (if (or org-odd-levels-only

                            (/= next-level (+ 2 current-level)))

                        (error "Next level step > +1 for node ending at line %s" (line-number-at-pos))

                      (error "Next level step = +2 for node ending at line %s, forgot org-odd-levels-only?"

                             (line-number-at-pos)))

                    ))

 

Attached is an example to demonstrate the problem.

 

Id like to know the authors (Lennart Borgman) intension before I attempt to modify it.

 

Yu Shen

yubrshen@gmail.com