From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Yu Shen (MCBU)" Subject: A bug of org-freemind.el in org-mode package 3.34c Date: Wed, 27 Jan 2010 06:31:37 +0800 Message-ID: <49DFAE0B9FAF3E4E9BCFC07862B1D46801868048@ITLHZEXCH01.us.utstar.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01CA9ED7.52B6B899" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NZtwq-0005T8-UU for emacs-orgmode@gnu.org; Tue, 26 Jan 2010 17:31:49 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NZtwm-0005P3-MI for emacs-orgmode@gnu.org; Tue, 26 Jan 2010 17:31:48 -0500 Received: from [199.232.76.173] (port=35081 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NZtwm-0005Oj-Ds for emacs-orgmode@gnu.org; Tue, 26 Jan 2010 17:31:44 -0500 Received: from mx-outbound01.utstar.com ([208.252.218.71]:35304 helo=ala-mail2.utstar.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NZtwl-0003oJ-Db for emacs-orgmode@gnu.org; Tue, 26 Jan 2010 17:31:43 -0500 Content-class: urn:content-classes:message List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Cc: lennart.borgman@gmail.com, yubrshen@gmail.com This is a multi-part message in MIME format. ------_=_NextPart_001_01CA9ED7.52B6B899 Content-Type: multipart/alternative; boundary="----_=_NextPart_002_01CA9ED7.52B6B899" ------_=_NextPart_002_01CA9ED7.52B6B899 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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.=20 =20 =20 (when (> next-level current-level) (if (not (and org-odd-levels-only (/=3D (mod current-level 2) 0) (=3D next-level (+ 2 current-level)))) (setq skipping-odd nil) (setq skipping-odd t) (setq skipped-odd (1+ skipped-odd))) (unless (or (=3D next-level (1+ current-level)) skipping-odd) (if (or org-odd-levels-only (/=3D next-level (+ 2 current-level))) (error "Next level step > +1 for node ending at line %s" (line-number-at-pos)) (error "Next level step =3D +2 for node ending at line %s, forgot org-odd-levels-only?" (line-number-at-pos))) )) =20 Attached is an example to demonstrate the problem. =20 I'd like to know the author's (Lennart Borgman) intension before I attempt to modify it.=20 =20 Yu Shen yubrshen@gmail.com ------_=_NextPart_002_01CA9ED7.52B6B899 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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

          =             &= nbsp;         (/=3D (mod current-level 2) 0)

          =             &= nbsp;         (=3D next-level (+ 2 current-level))))

          =             (setq skipping-odd nil)

          =           (setq skipping-odd t)

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

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

          =             &= nbsp;       skipping-odd)

   =             &= nbsp;    (if (or org-odd-levels-only

          =             &= nbsp;     (/=3D next-level (+ 2 current-level)))

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

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

          =             &= nbsp;      (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

------_=_NextPart_002_01CA9ED7.52B6B899-- ------_=_NextPart_001_01CA9ED7.52B6B899 Content-Type: application/octet-stream; name="test.org" Content-Transfer-Encoding: base64 Content-Description: test.org Content-Disposition: attachment; filename="test.org" KiBUb3AgbGV2ZWwNCioqKiBOb3QgdGhlIDJuZCBsZXZlbA0KDQo= ------_=_NextPart_001_01CA9ED7.52B6B899 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ------_=_NextPart_001_01CA9ED7.52B6B899--