On Feb 23, 2:43 am, Pierre <pierre.guil...@gmail.com> wrote:

Hi,

> brilliant ! 0.5.2 works really well ! the toggle idea is very nice : i
> sense that i'm going to use both inline and external plots.
>
> if i may add something to the list of bug reports, i'd say that python-
> send-region and python-send-defun apparently do nothing. When i want
> to send a part of a file (and C-c C-c is not appropriate), i use the
> following function, it's very very silly but it works:
>
> (defun sage-send-current-line ()
> "send the current line to sage and moves point to the beginning of the
> next line"
> (interactive)
> (message (concat "SAGE executing " (current-line-string)))
> (process-send-string (get-buffer "*SAGE-main*")
>                      (concat (current-line-string) "\n" ))
> (next-line)
> (beginning-of-line))
>
> i bind this to C-c C-e (reminds me of C-x C-e for lisp evaluation, and
> everything related to sage ought to start with C-c...) and it becomes
> quite easy to send 4 or 5 lines to sage (thanks to the moving
> cursor!). For a very large function definition, it would still be good
> to have python-send-defun working.

Sounds good to me. For those people with trac access I just created a
sage-mode component which defaults to being assigned to Nick. This
will hopefully make it easier to find and track sage-mode related
issues for Nick and sooner than later sage-mode should ship with Sage
per default anyway :)

> cheers
> pierre

Cheers,

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

Reply via email to