Re: [jdee-devel] Right way to handle functions renamed in emacs.
Brought to you by:
paullandes
From: Carlos K. <cko...@pi...> - 2008-01-16 03:06:21
|
This might be a question of where to draw the line on the emacs version that is supported. There seem to be big backwards-compatibility issues all around between emacs 21 and 22. Time marches on; when does one decide that, like Netscape 4, emacs 21 is no longer to be supported? It would be nice to be able to write code against one standard. I use only one distro (gentoo), so I cannot speak for all camps. At Wed, 16 Jan 2008 14:13:54 +1300, Len Trigg wrote: > > > Lisp coding style question. In emacs 22, turn-on-font-lock-if-enabled > has been renamed to turn-on-font-lock-if-desired. This function is > called by jde-java-font-lock.el. > > In general, what is the recommended way of making fixes for this? > > * Just update to the new function name. Obviously bad. > > * If turn-on-font-lock-if-desired doesn't exist, define it as an alias > to turn-on-font-lock-if-enabled. If this is OK, why didn't the emacs > people do this themselves. Seems bad to be defining functions not in > the jde namespace. > > * Define jde-turn-on-font-lock-if-desired as an alias to whichever of > the functions is defined. Seems unwieldy. > > * Replace calls to turn-on-font-lock-if-enabled with something like: > (if (fboundp 'turn-on-font-lock-if-desired) > (turn-on-font-lock-if-desired) > (turn-on-font-lock-if-enabled)) > Would have to be done in each location (not a problem in this case) > > * Some other method? > > > Cheers, > Len. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > jdee-devel mailing list > jde...@li... > https://lists.sourceforge.net/lists/listinfo/jdee-devel |