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?
Thank you,
Mirko
* 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.
On Wed, Dec 24, 2008 at 2:39 AM, Helmut Eller heller@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@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