Dear Nick > > This coloring feature is very cool. I activated it right after > > reading your > > e-mail... Until I launch emacs... Then I realize that emacs will not > > recognize > > anything - and in particular the prompt - anymore. Is it possible to > > deactivate to feature dynamically from sage itself, for example when > > we issue > > the import sage_emacs as emacs ?
> I have partway done this in my tree, ie it will wait for a prompt, > detect colors, and issue a %colors NoColor command. Whenever I post a > new spkg it will be there, but it's not a priority. Thanks for your quick answer. I didn't imagine that ipython/sage accept during the session a "%colors NoColor" so that I didn't even try it. Otherwise I would not have sent my email. This was just what I was asking. I'm deeply sorry for my stupidity... I should think twice before sending an e-mail. > But in general this is not the way to go: parsing ANSI and associated > color commands in emacs is supported but slow, according to a few > blogs I have read. Why not customize font-lock-mode declarations for > inferior-sage-mode? Much better. Sure. I've already done this. Cheers, Florent --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---