On 28-Jan-10, at 6:51 AM, xtian wrote:

Using sage-mode  0.6 with emacs21, I'm getting the
following parse errors (produced with 'emacs --debug-init')
on startup, i.e. when SAGE_ROOT/data/emacs/sage.el
gets loaded:

---snip---

Debugger entered--Lisp error: (wrong-number-of-arguments #[(regexp)
"ÁÂ DD‡" [regexp rx-to-string quote] 3 ("/usr/share/emacs/21.4/lisp/
emacs-lisp/rx.elc" .
11479)] 2)
 #[(regexp) "ÁÂ DD‡" [regexp rx-to-string quote] 3 ("/usr/share/emacs/
21.4/lisp/emacs-lisp/rx.elc" . 11479)](line-start (1+ (and (or "sage:"
">>>" "....." "..." "(Pdb)" "ipdb>" "(gdb)") " ")))
 (rx line-start (1+ (and ... " ")))
 eval((rx line-start (1+ (and ... " "))))

Hmm, difficult to say. It does appear to be an rx incompatibility. Try custom-set-variable inferior-sage-prompt to the following string:

"\\(?:^\\(?:\\(?:(\\(?:[Pg]db)\\)\\|\\.\\.\\.\\(?:\\.\\.\\)?\\|>>>\\| ipdb>\\|sage:\\) \\)+\\)"

That should at least get you past that. It would be better to know what the rx differences are, but I'm sorry I don't have time for that right now.

Nick

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to