Re: [jdee-devel] Problems with Emacs CVS snapshot
Brought to you by:
paullandes
From: Carlos K. <cko...@pi...> - 2008-09-03 17:20:39
|
Take 2: sending to the whole list this time. Can we define avl-tree-* functions if they do not already exist? My elisp is atrocious, but in Common Lisp I envision something like: (handler-case (symbol-function 'avl-tree-something) (undefined-function () (setf (symbol-function 'avl-tree-something) (symbol-function 'avltree-something)))) We could have a bunch of these as top-level forms (one for each avl-tree-* function we need to use). They would detect if #'avl-tree-something is undefined, and if so, define it to be the same function as #'avltree-something. It's the same principle as the following javascript, which redefines the function definition of document.getElementById() in non-compliant browsers, so that you can call getElementById() even in IE5, with no tedious inline browser version checking: // redefine getElementById() if necessary if(! document.getElementById) { document.getElementById = getDocElement; } // this becomes the function definition of getElementById() only if // the above if() evaluates to true function getDocElement(elemID) { if(document.all) { return document.all[elemID]; } else { alert('Your browser is totally caveman! Upgrade it please!'); } } Carlos Konstanski On Wed, 3 Sep 2008, Phillip Lord wrote: > Date: Wed, 03 Sep 2008 16:50:55 +0100 > From: Phillip Lord <phi...@ne...> > To: "Borgman, Lennart" <Len...@as...> > Cc: jde...@li... > Subject: Re: [jdee-devel] Problems with Emacs CVS snapshot > > > Lennart > > I think it's ELIB that was not in Emacs w32 (which would be right) -- what Lin > is saying that Emacs W32 now comes with the various bits from ELIB in Emacs > w32 base. ELIB, as a seperate entity, has now been decommissioned. > > In general, a good idea, but a pain in this case. Especially as I have no idea > what xemacs is doing. > > I guess that there is a decision to be made here; maintaining backward support > is going to be a pain, but relying on a snapshot Emacs is not idea -- > avl-tree.el is on my windows box for example, but not my ubuntu. > > Phil > > > >>>>>> "LB" == Borgman, Lennart <Len...@as...> writes: > > LB> Can you tell me why you thought before that it was not in > LB> Emacs+EmacsW32? Or did I misunderstand you? > > > LB> -----Original Message----- From: Lin Li [mailto:sd...@gm...] Sent: > LB> 3 september 2008 16:23 To: Borgman, Lennart Cc: Phillip Lord; > LB> jde...@li... Subject: Re: [jdee-devel] Problems with > LB> Emacs CVS snapshot > > > LB> ELIB was developed as a library of ADTs in Emacs lisp, however, > LB> according to the information on GNU website, it is not being maintained > LB> anymore and all its functionalities are implemented in vanilla emacs. > > > LB> On Wed, Sep 3, 2008 at 4:13 PM, Borgman, Lennart < Len...@as...> wrote: > > > >> -----Original Message----- > LL> Hi, Philip. I did some more investigation. If I am not > >> mistaken, JDEE > LL> still uses the avl tree implementation from ELIB. > >> However in EmacsW32, > LL> it is not installed by default, > > > LB> Can that be right? Emacs+EmacsW32 is built from Emacs CVS sources so if > LB> this AVL tree is in vanilla Emacs it is in Emacs+EmacsW32 too. > > >> and there is an AVL tree implementation > LL> in vanilla emacs, but the functions are all named as > >> "avl-tree-*" as > LL> opposed to "avltree-*" in ELIB. I renamed these functions in > LL> jde-parse.el and it compiles. could you please test it more? > > > > > -- > Phillip Lord, Phone: +44 (0) 191 222 7827 > Lecturer in Bioinformatics, Email: phi...@ne... > School of Computing Science, http://homepages.cs.ncl.ac.uk/phillip.lord > Claremont Tower Room 909, skype: russet_apples > Newcastle University, msn: ms...@ru... > NE1 7RU > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > jdee-devel mailing list > jde...@li... > https://lists.sourceforge.net/lists/listinfo/jdee-devel > Carlos |