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 ... " "))))
  custom-initialize-reset(inferior-sage-prompt (rx line-start (1+
(and ... " "))))
  custom-declare-variable(inferior-sage-prompt (rx line-start (1+
(and ... " "))) "Regular expression matching the SAGE prompt." :group
sage :type regexp)
  (defcustom inferior-sage-prompt (rx line-start (1+ ...)) "Regular
expression matching the SAGE prompt." :group (quote sage) :type (quote
regexp))
  eval-buffer(#<buffer  *load*<2>> nil "sage" nil t)
  load-with-code-conversion("/opt/sage/data/emacs/sage.el" "sage" nil
t)
  require(sage "sage")
  eval-buffer(#<buffer  *load*> nil "~/.emacs" nil t)
  load-with-code-conversion("/home/chris/.emacs" "~/.emacs" t t)
  load("~/.emacs" t t)

---snip---

As far as I can see, the regular expression defining the
inferior-sage-prompt in sage.el causes the error. The syntax of
the line seems intact (number of opened/closed brackets, quotation
marks, ...). Alas, I'm not much of an elisp expert as to see the
problem here. Could be an api change in rx between emacs21
and emacs22 or something. The wrong-number-of-arguments
error message points into this direction (just guessing).

I got a report that with 'emacs22 --debug-init', there is no problem
showing and sage-mode can be loaded fine (thanks to dox_drum).

---

Environment info:

Sage version: 4.3.1
sage-mode version: 0.6
Emacs version: 21.4a+1-5.6
OS: Debian GNU/Linux 5.0.3 "Lenny"
Architectures: amd64
GCC version: (Debian 4.3.2-1.1) 4.3.2

Best regards, xtian

-- 
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