Emacs/Calc/GNUPlot/gnuplot-mode problem on Windows XP



Interfacing my Emacs, Emacs Calculator, and gnuplot-mode with GNUPlot on Windows does not seem to be working for me.

When, for example, I do a 'g f' in calc to plot a function, a gnuplot window is created (minimised), but no graph window appears. The text window of GNUPlot does not contain any commands, but simply:

Terminal type set to 'windows'
gnuplot>

While in this state, Emacs is completely blocked, no screen redrawing, etc. Closing the GNUPlot window and then killing the pgnuplot.exe process unblocks Emacs.

Are there any special incantations needed to get this to work? I am setting:

(setq calc-gnuplot-name "c:/path/to/pgnuplot.exe")

as well as:

(add-hook 'gnuplot-load-hook
'(lambda ()
(setq gnuplot-program
"c:/path/to/pgnuplot.exe")))

My Windows PATH is also prefixed with the GNUPlot bin directory.

The versions of Emacs and GNUPlot I am using are:

Emacs 22.1.1 (i386-mingw-nt5.1.2600)
GNUPlot Version 4.2 patchlevel 0 (March 2007)

I have also tried gnuplot-mode in Emacs 21 with no real success, except that I was once able to get a single line (plot) command through to GNUPlot which displayed a sine graph before freezing up (requiring the above steps to unfreeze). I think that the same would have happened in Emacs 22 if I had tried the same sequence of steps there.

It is as if the comms stream between the two processes is blocking and control is not returning to Emacs.

Does anyone have any ideas on what the problem and possible solutions could be?

Thanks,
David Trudgett

.



Relevant Pages

  • Re: Google Instant Search = *bummer*
    ... What about Emacs? ... & fringing due to reflections up and down the cables from impedance ... gnuplot> set term regis ...
    (rec.arts.sf.fandom)
  • Re: How to Setup X11 for SSH Connections???
    ... configure your ssh-client to support X forwarding with a ... it should be totally transparant to use emacs from that moment. ... > I frequently ssh into my school account from my home linux machine. ... I'm currently trying to use gnuplot which requires X to run. ...
    (comp.os.linux)
  • Re: Gnuplot doc compilation with MacTeX
    ... gnuplot-specific file as part of your latex package, ... as far as I know gnuplot didn't try anything similar when I ... Apparently your local configuration is telling it to install into ... Otherwise the install fails because in fact I have no Emacs directories ...
    (comp.graphics.apps.gnuplot)
  • Re: Gnuplot doc compilation with MacTeX
    ... In order to get gnuplot to install without ... Does this make gnuplot being installed without any lisp support or does ... it just tell gnuplot that no lisp files are currently available (and ... The file in question is one that teaches Emacs how ...
    (comp.graphics.apps.gnuplot)
  • Re: Great SWT Program
    ... mostly solve the blind-typing problem that I definitely recall emacs ... Except of course that you need to know some arcane command language ... Hitting tab should insert a tab ... one-line "window" in which the rest of what I type appears, ...
    (comp.lang.java.programmer)