emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] A bug of org-freemind.el in org-mode package 3.34c


From: Yu Shen (MCBU)
Subject: [Orgmode] A bug of org-freemind.el in org-mode package 3.34c
Date: Wed, 27 Jan 2010 06:31:37 +0800

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

address@hidden

Attachment: test.org
Description: test.org


reply via email to

[Prev in Thread] Current Thread [Next in Thread]