John H Palmieri wrote: > On Dec 2, 3:24 pm, Jason Grout <jason-s...@creativetrax.com> wrote: >> Dan Drake wrote: >>> On Wed, 02 Dec 2009 at 11:47AM -0800, John H Palmieri wrote: >>>> By the way, I discovered accidentally that from the command line (not >>>> the notebook) if you type: >>>> sage: ed # or %ed or %edit >>> Oh man, that is great. Often I am trying to type in a multi-line >>> statement and I mess something up and can't figure out how to fix it, >>> since there's no going back a line, or parenthesis highlighting, >>> etc...this is great! >> This is great. However, there is a warning message printed out for me. >> Everything seems to work, but the warning message looks odd. > > Well, clearly you should be using emacs instead of vi :)
Aah, the answer to all of life's problems! :) % export EDITOR=emacs % sage ---------------------------------------------------------------------- | Sage Version 4.2.1, Release Date: 2009-11-14 | | Type notebook() for the GUI, and license() for information. | ---------------------------------------------------------------------- sage: ed IPython will make a temporary file named: /tmp/ipython_edit_2rTlsW.py Editing... done. Executing edited code... 'def f(x):\n return sum(range(x))\n' sage: Jason -- 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