Skip to content

Doesn't work with the Gnu port of emacs for Windows. #38

Open
@EmmanuelCharpentier

Description

@EmmanuelCharpentier

What does work : using the cygwin port of emacs along with the cygwin version of sage.

What I tried :

  • Install the Gnu "native" port of emacs to Windows (works)
  • Compile Sage on Cygwin (works, sort-of : I can start sage (via a shell script) from the Windows command line and pass it whatever arguments I need, but sage -n jupyter fails, for entirely different reasons...)
  • Install sage_shell_mode on emacs (works)
  • run sage in sage_shell_mode : this fails, because I cant't think of a way to tell sage_shell_mode to start a shell script.

I have been able to build a cmd.exe shell script that starts sage in cygwin (with any argument it needs), passes keyboard input to Sage and prints answers in the Windows console. But sage_shell_mode does not accept it, and asks me to set sage-shell-sage-root and sage-shell:sage-executable correctly.

I suppose that this function wants an executable, not a script. I tried to pass cmd.exe /c <my_path>\\sage.cmd to sage-shell-sage-executable, to no avail.

Do you see a workaround for this ? I don't. And the previous solution essentially amounts to running the whole thing (Sage + Emacs + AUCTeX) on top of a Cygwin machine : not fun, and not efficient.

Icing on this unappetizing cake : I have to do that on a machine where I have no admin rights (dont ask : my administration has reasons unknown to Reason...;-). That's why I have to recompile Sage : the marvelous installer of Erik M. Bray needs admin rights.

Suggestions ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions