This directory contains files for running Gnuplot from within emacs. This package was assembled by Bruce Ravel <email@example.com>. See the homepage at http://xafs.org/BruceRavel/GnuplotMode
|INSTALL||thorough installation instructions|
|ChangeLog||a log of changes by version number|
|gnuplot.el||gnuplot mode for emacs|
|gnuplot-gui.el||a GUI for setting command arguments interactively|
|info-look.20.2.el||programmer’s interface to info files, old version|
|info-look.20.3.el||programmer’s interface to info files, new version|
|dot.el||a short lisp file used by the Makefile|
|gnuplot.info||info version of gnuplot 3.6 help|
|gpelcard.tex||quick reference card for gnuplot mode (latex)|
|dotemacs||example .emacs lines for enabling gnuplot mode|
files inherited from the gnuplot distribution for making gnuplot-mode
Gnuplot-mode has been included with Gnuplot since the 3.7 distribution. The installation instructions for the free-standing distribution have been modified to be consistent with that.
- Unpack the gnuplot.tar.gz and cd to the gnuplot directory.
configure. If configure doesn’t work for you, see note 7 below.
make. If you use XEmacs, run
make EMACS=xemacs(or change the EMACS variable to
xemacsin the Makefile, the run
- Move the lisp files to the system site_lisp directory if you are installing as root. If you are installing as a normal user move the .elc files to a place where emacs, i.e. your personal emacs directory.
- Insert the contents of the dotemacs file into your .emacs file or into the system’s emacs start-up file to enable gnuplot mode.
- The function
gnuplot-info-lookup-symbollooks at the Gnuplot info file that comes with this package or that can be made from the Gnuplot distribution. For that function to work, the file gnuplot.info must be placed somewhere where info can find it, for example
/usr/infoA line like this in your .emacs allows you to put gnuplot.info any place convenient:
(add-to-list 'Info-default-directory-list "/path/to/file")
- To make the reference card, do
- gnuplot-mode is designed for use with version 3.7 of gnuplot. It should work very well with any of the 3.6 beta versions. Only some of the specialized features will not work with version 3.5 – the GUI interface to setting command arguments is an example.
- To use gnuplot-mode with Emacs on Windows 95 or 98 see the instructions in the directory Win9x.
- The installation materials used by gnuplot-mode come from the gnuplot distribution.
- If “configure” doesn’t work for you, the file “Makefile.dst” can be used. In that case do, “make -f Makefile.dst” and carry on from there.
- If you do not have the custom library installed, you will get several harmless warnings when compiling gnuplot.el. Most of gnuplot-mode will work even without the custom library installed.
- The file info-look.el provides the on-line help functionality.
Without it, things like on-line help and keyword completion will
not work. Using a tool that is a standard part of Emacs is a good
idea, but this one gets complicated. This file became part of
Emacs with version 20. It changed between 20.2 and 20.3. And it
does not come with XEmacs. What’s more, the version from 20.2 has
a bug and the newer version does not work with Emacs 19. So, this
distribution comes with two versions of info-look.el, the version
from Emacs 20.2 patched to work correctly and the version from
Emacs 20.3. Here’s what happens when you run make:
- If you use Emacs 19 or XEmacs 19, then the Makefile will compile the 20.2 version.
- If you use Emacs 20.2 or lower, the Makefile will compile the 20.2 version.
- If you use XEmacs 20 or higher, the Makefile will compile the 20.3 version.
- If you use Emacs 20.3 or higher, the Makefile won’t compile any version.
- The gnuplot-mode distribution comes with the version of the gnuplot info file that gets made by gnuplot 3.7. Use it rather than the old one. If you really must use the older info file, see the document string for the variable `gnuplot-info-hook’. If you already have the info file installed on your computer, you will not need the one that comes with gnuplot-mode.
- The interactive graphical graphical interface to setting command arguments contained in gnuplot-gui.el is experimental. It is incomplete and may make mistakes. Hopefully, you will find it useful. It requires that you are using a version of emacs with the widget library installed or that you have installed it yourself. Version numbers in the 20’s of Emacs and XEmacs ship with the widget library. For version numbers in the 19’s, it can be obtained at http://www.dina.kvl.dk/~abraham/custom/
The todo list
- Use ELPA
- New functionality for gnuplot 4?
- Update info interface
- Using gnuplot-mode on windows is problematic. John Handy says:
You probably get nagged quite a bit about this. Some have been running into issues with gnuplot-mode and Windows and I’m wondering if you have any comments. I use it just fine on Linux, but it seems that Windows users are not able to send data to gnuplot successfully.
Org-mode also uses gnuplot-mode and this org-plot and org-mode babel+gnuplot are not working correctly on Windows.
Any thoughts? I’m hoping to include any results in the Org-mode wiki for gnuplot use: http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-gnuplot.php
If you’re interested, here are some of the threads I’m referring to: http://newsgroups.derkeiler.com/Archive/Comp/comp.emacs/2007-07/msg00159.html http://firstname.lastname@example.org/msg14544.html http://groups.google.com/group/gnu.emacs.help/browse_thread/thread/53489131c79f62b3
If you’d like to see my summary of the issues to the org-mode mailing list, it’s here: http://thread.gmane.org/gmane.emacs.orgmode/30235
- Evans Winner points out that: ”
make-local-hookseems to have been removed from Emacs 24. I found that it was a show-stopper until I commented the call out – this was line 1866 in my copy of the source.”
- Jim Mehl says: “I usually put
pause -1lines in my gnuplot scripts. I have to be careful to comment these out if I execute the script within emacs. It just hangs. Is there a way out?”
When run in a terminal the pauses let me review the screen, then proceed (like many gnuplot demo scripts). When I run this script within emacs 23.1.1 with gnuplot-mode (gnuplot 4.5), emacs becomes unresponsive. I cannot switch buffers. I can switch to another window and kill emacs (usually undesirable).
lot [-5:5] sin(x)/x pause -1 plot [-5:5] (sin(x)/x)**2 pause -1