In bibtex mode, trying to reformat a bibtex file with the bibtex-convert-alien command always fails. The error message is Wrong type argument: number-or-marker-p, nil
Created attachment 144015 [details, diff] Patch for bibtex.el It looks like bibtex.el was not fully converted to Emacs 22: function "sit-for" used to have 3 arguments in Emacs 21, now it has only 2. Attached patch should fix the problem.
> It looks like bibtex.el was not fully converted to Emacs 22: function "sit-for" > used to have 3 arguments in Emacs 21, now it has only 2. I applied the patch to /usr/share/emacs/22.1/lisp/textmodes/bibtex.el and restarted emacs. Still the same problem. Grep tells me there's still a line in the file with (sit-for 1) i.e. only one argument. ->?
(In reply to comment #2) > I applied the patch to /usr/share/emacs/22.1/lisp/textmodes/bibtex.el and > restarted emacs. Still the same problem. Please try again, and do an explicit "M-x load-library RET bibtex.el RET" before.
Submitted upstream: <http://permalink.gmane.org/gmane.emacs.bugs/17543>. Since Emacs 22.2 is already in pretest, we won't fix this in Gentoo for 22.1. Thank you for reporting.
(In reply to comment #3) > (In reply to comment #2) > > I applied the patch to /usr/share/emacs/22.1/lisp/textmodes/bibtex.el and > > restarted emacs. Still the same problem. > > Please try again, and do an explicit "M-x load-library RET bibtex.el RET" > before. > Thank you - now it works fine.
This bug has been fixed in CVS upstream. emacs-cvs-22.1.9999 should be fine now, as well as the upcoming emacs-cvs-22.1.92 and emacs-22.2.