[slime-devel] emacs-nt+slime+cygwin+clisp: how to set the DISPLAY variable?

Mirko Vukovic mirko.vukovic at gmail.com
Wed Dec 24 20:20:25 UTC 2008


On Wed, Dec 24, 2008 at 2:39 AM, Helmut Eller <heller at common-lisp.net> wrote:
> * Mirko Vukovic [2008-12-24 04:39+0100] writes:
>
>> Hello,
>>
>> I am running emacs +slime (2008-09-28) on windows and clisp on cygwin.
>>
>> I would like to use gnuplot.  If I call gnuplot from clisp which comes
>> with cygwin, it opens a gnuplot window.
>>
>> But not if I call it from slime. gnuplot states : unable to open
>> display ''.  Looking at environment variables that Emacs gets and
>> passes to subprocesses, there is no DISPLAY variable.  So it seems
>> that gnuplot did not get a value of DISPLAY.
>>
>> I guess I could create a windows variable DISPLAY so that emacs
>> inherits it and passes it to its subprocesses (and clisp).  But is
>> there a way to do that from within slime?
>
> In Emacs, you can use the function setenv to create an environment
> variable.  At least on Unix, it's also passed down to subprocesses.
>
> Alternatively, you could use gnuplot's -display command line option.
> CLISP also seems to have a SYS::SETENV function.
>
> If you use the slime-lisp-implementations variable, you can also modify
> the environment that is used for the subprocess.  But the other options
> are probably simpler.
>
> Helmut.
>
>
> _______________________________________________
> slime-devel site list
> slime-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/slime-devel
>

Thank you Helmut.

I used the sys::get/setenv and they work wonderfully.

Mirko




More information about the slime-devel mailing list