2009/4/1 Nick Alexander <ncalexan...@gmail.com>: > >> which seems harmless. The (only) reason I switched to a .py suffix >> was that I could not get sage-mode to work in emacs....but that is a >> different thread! > > Please explain.
I went through various attempts a few days ago. Currently I have these relevant files in ~/.emacs: (add-to-list 'load-path (expand-file-name "/home/masgaj/lisp")) (require 'python) (require 'pyrex "pyrex-mode") (require 'sage "sage-mode") (setq sage-command "/home/masgaj/bin/sage") and in /home/masgaj/lisp I have magma-mode.el magma-mode.elc pari2-51.el.in pari.el pari.elc pariemacs2-51.txt pyrex-mode.el pyrex-mode.elc python.el python.el~ sage-build.el sage-build.elc sage.el sage.elc sage-flymake.el sage-flymake.elc sage-imenu.el sage-imenu.elc sage-load.el sage-load.elc sage-mode.el sage-test.el sage-view.el sli-tools0-9.el sli-tools0-9.elc Now, when I start emacs I get an error message: Wrong number of arguments: #[(regexp) "\301\302 DD\207" [regexp rx-to-string quote] 3 ("/usr/share/emacs/21.3/lisp/emacs-lisp/rx.elc" . 11482)], 3 To ensure normal operation, you should investigate the cause of the error in your initialization file and remove it. Start Emacs with the `--debug-init' option to view a complete error backtrace Editing .py files is fine (it says "using the CPYthon shell" and is in python mode), but editing .sage files is just in text mode. I think it does work to tell emacs to use python mode for all .sage files, but that would not involve installing anything. I have no interest in (for example) starting up sage from within emacs, or runing sage in an emacs shell. John > > Nick > > > > --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---