Re: [Ebib-users] error at startup
Brought to you by:
joostkremers
From: Joost K. <joo...@fa...> - 2007-03-19 11:00:45
|
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 |