Re: [Ebib-users] error at startup
Brought to you by:
joostkremers
From: Abel M. <abe...@fr...> - 2007-03-19 13:02:16
|
Dear Joost, Thank you for your quick answer! I've replaced add-to-listq as you've suggested. Now I'm getting this answer when I load ebib: Symbol's function definition is void: defentry It doesn't look that bad #8^) but it doesn't work yet. Regards, On Mon, Mar 19, 2007 at 11:59:23AM +0100, Joost Kremers wrote: > Hi, > > > I'm trying ebib with emacs 21.4.1 under a NetBSD environment. `ebib.el' is > > in the load-path. As I load ebib I get the following message: > > > > Wrong number of arguments: #[(list-var element &optional append) "^H J\235\203 > > ^@ J\207 > > \203^X^@\302 J^HC\"\202^\^@^H JBL\207" [element list-var append] 4 1381158]\ > > , 4 > > Mmm... that doesn't look good. ;-) > > > Really I can't figure out how to work in out. Any idea? > > Well, it seems that a fear I had is now becoming reality... I suspect the > problem is with the macro add-to-listq. In Emacs 22, add-to-list allows an > optional argument that XEmacs doesn't allow. I defined add-to-listq to work > around this. Now it seems that Emacs 21 also doesn't know about this > argument... > > A quick fix would be to replace the definition of add-to-listq in the > source file with the following (it appears at the top of the file, directly > after the license and copyright notice): > > (defmacro add-to-listq (listvar element &optional append fn) > (if (or (featurep 'xemacs) > (string< emacs-version "22")) > `(add-to-list (quote ,listvar) ,element ,append) > `(add-to-list (quote ,listvar) ,element ,append ,fn))) > > Not sure if this is the best way to test for the version of Emacs, but it > should work for you. > > HTH > > -- > Joost Kremers, PhD > University of Cologne > Institute for German Language and Literature > Albertus Magnus Platz > 50923 Cologne, Germany > Tel. +49 221 / 4703807 > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Ebib-users mailing list > Ebi...@li... > https://lists.sourceforge.net/lists/listinfo/ebib-users |