#10504: Sage in emacs fails for some functions
------------------------------+---------------------------------------------
   Reporter:  fmaltey         |       Owner:  was
       Type:  defect          |      Status:  new
   Priority:  major           |   Milestone:     
  Component:  user interface  |    Keywords:     
     Author:                  |    Upstream:  N/A
   Reviewer:                  |      Merged:     
Work_issues:                  |  
------------------------------+---------------------------------------------
 I can define this function in a xterm or in a emacs buffer linked to the
 sage shell buffer.

 I get an error when I type it in the *Sage Inferior* mode.

 {{{
 def test (n) :
   if n==2 :
     return 2
   else :
     return 3
 }}}
 In emacs I get the error around the "else :" line

 {{{
 ------------------------------------------------
   File "<ipython console>", line 4
     se :
       ^^

 SyntaxError: invalid syntax

 sage:     return 3

 -----------------------------------------------------
   File "<ipython console>", line 1
 SyntaxError: 'return' outside function (<ipython console>, line 1)
 }}}

 This error isn't in the sage*.el mode because I get the same problem in
 any shell buffer that I run with [Alt-x] shell [return] sage [return].

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10504>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to