emacs-orgmode
[Top][All Lists]
Advanced

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

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


From: Lennart Borgman
Subject: [Orgmode] Re: A bug of org-freemind.el in org-mode package 3.34c
Date: Tue, 26 Jan 2010 23:50:07 +0100

On Tue, Jan 26, 2010 at 11:31 PM, Yu Shen (MCBU) <address@hidden> wrote:
> 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.
>
>
>
> I’d like to know the author’s (Lennart Borgman) intension before I attempt
> to modify it.


Hi Yu,

My intention was just to help the user find errors. If the subnode
level is not just node level+1 then I expect that there is some
trouble with the org file (if not org-odd-levels-only).

If you think it is useful with bigger level steps then perhaps you
could make the check optional with a defcustom?

Kind regards,
L


> Yu Shen
>
> address@hidden

reply via email to

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