From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xin Shi Subject: Re: Problem with org-info.js? Date: Sat, 27 Jun 2009 21:03:09 -0400 Message-ID: <5236d6f90906271803t1fed63d1k862b8c6c2a186696@mail.gmail.com> References: <5236d6f90906251156o2942bb33ta6372482b9326b2c@mail.gmail.com> <87zlbwhunu.fsf@kassiopeya.MSHEIMNETZ> <5236d6f90906261414v6f4434f8t4fa77873372e555e@mail.gmail.com> <87ab3utwcu.fsf@kassiopeya.MSHEIMNETZ> <5236d6f90906271245o590cdab3m726477353de80236@mail.gmail.com> <877hyxz6rf.fsf@kassiopeya.MSHEIMNETZ> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0023080014==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MKine-00067W-Og for emacs-orgmode@gnu.org; Sat, 27 Jun 2009 21:03:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MKina-0005zL-BD for emacs-orgmode@gnu.org; Sat, 27 Jun 2009 21:03:18 -0400 Received: from [199.232.76.173] (port=50443 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MKina-0005z9-14 for emacs-orgmode@gnu.org; Sat, 27 Jun 2009 21:03:14 -0400 Received: from mail-bw0-f209.google.com ([209.85.218.209]:55991) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MKinZ-0006FW-AL for emacs-orgmode@gnu.org; Sat, 27 Jun 2009 21:03:13 -0400 Received: by bwz5 with SMTP id 5so132614bwz.42 for ; Sat, 27 Jun 2009 18:03:09 -0700 (PDT) In-Reply-To: <877hyxz6rf.fsf@kassiopeya.MSHEIMNETZ> 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: Sebastian Rose Cc: emacs-orgmode --===============0023080014== Content-Type: multipart/alternative; boundary=001636c5b2440f4546046d5e23a6 --001636c5b2440f4546046d5e23a6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi Sebastian, Thanks for the explanation! I guess one reason for me to spot that is I use org to publish all my working notes into HTML and use it on our group meetings all the time :) By the way, for the org-info-src.js and org-info.js, is the "white spaces" only difference between them? We can probly keep the version number in the org-info.js, so that people are easier to follow. Thanks again! Xin On Sat, Jun 27, 2009 at 5:49 PM, Sebastian Rose wrote: > Xin Shi writes: > > Hi Sebastian, > > > > Thanks for your quick fix. > > > > Just curious, what was the problem before? > > > getElementsByTagName() is not recursive when called on certain HTML > elements. I had to use `document.getElementsByTagName("a");' instead to > catch links inside list elements. Before I did that for each sections > block level elements (the headline and the
). > > I wonder how no one noticed that for such a long time :) links in a list > is not too strange... > > > > > Shall I just download the new js file? > > Yes. Nothing else has changed, just added that fix. > > It looks as if some more stuff has changed sometimes, because I minify > the script. That leads to bigger chunks if you diff it. The diff of the > org-info-src.js file shows what has actually changed. > > > Best wishes > > Sebastian > --001636c5b2440f4546046d5e23a6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Sebastian,

Thanks for the explanation! I guess one reason for me = to spot that is I use org to publish all my working notes into HTML and use= it on our group meetings all the time :)

By the way, for the org-i= nfo-src.js and org-info.js, is the "white spaces" only difference= between them? We can probly keep the version number in the org-info.js, so= that people are easier to follow.

Thanks again!

Xin


=A0

On Sat, Jun 27, 2009 at 5:49 PM, Sebastian Rose <sebastian_rose@gmx.de>= wrote:
Xin Shi <shixin111@gmail.com= > writes:
> Hi Sebastian,
>
> Thanks for your quick fix.
>
> Just curious, what was the problem before?


getElementsByTagName() is not recursive when called on certain HTML elements. I had to use `document.getElementsByTagName("a");' = instead to
catch links inside list elements. Before I did that for each sections
block level elements (the headline and the <div id=3D"text-sec-2.2&= quot;...>).

I wonder how no one noticed that for such a long time :) links in a list is not too strange...



> Shall I just download the new js file?

Yes. Nothing else has changed, just added that fix.

It looks as if some more stuff has changed sometimes, because I minify
the script. That leads to bigger chunks if you diff it. The diff of the
org-info-src.js file shows what has actually changed.


Best wishes

=A0 Sebastian

--001636c5b2440f4546046d5e23a6-- --===============0023080014== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0023080014==--