[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/gnuplot 483a71f 103/184: Update documentation on installin
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/gnuplot 483a71f 103/184: Update documentation on installing, and tweak Makefile.dst |
Date: |
Sun, 29 Aug 2021 11:03:25 -0400 (EDT) |
branch: elpa/gnuplot
commit 483a71f68f86b11a49e14f7cade3913e2db2eaff
Author: joddie <jonxfield@gmail.com>
Commit: joddie <jonxfield@gmail.com>
Update documentation on installing, and tweak Makefile.dst
---
INSTALL | 51 ------------------
INSTALL.org | 81 +++++++++++++++++++++++++++++
Makefile.dst | 30 ++++++-----
README.org | 167 ++++++++++++++++++++---------------------------------------
4 files changed, 156 insertions(+), 173 deletions(-)
diff --git a/INSTALL b/INSTALL
deleted file mode 100644
index 887a892..0000000
--- a/INSTALL
+++ /dev/null
@@ -1,51 +0,0 @@
-
-To install gnuplot-mode:
-
-1. If you got gnuplot-mode from a release tarball, do the following
- at the command line:
-
- > ./configure
- > make
-
- If you're working from a git checkout of the gnuplot-mode
- repository, you will first need to do
-
- > autoreconf
- > automake --add-missing
-
- before the "configure; make" step above.
-
- If you use XEmacs, add "EMACS=xemacs" to the "./configure" command.
- If you use Emacs.app on Mac OS X, add
- "EMACS=/Applications/Emacs.app/Contents/MacOS/Emacs".
- You can also use the "--with-lispdir" option to select where you
- want to install the Elisp files.
-
- If "configure" doesn't work for you, the file "Makefile.dst" can be
- used. In that case do, "make -f Makefile.dst".
-
-2. Either run "make install", or move the .el and .elc files to a
- place where emacs can find them, for example
- /usr/share/emacs/site-lisp or your personal emacs directory.
-
-3. Insert the contents of the `dotemacs' file into your .emacs file
- or system start-up file to enable gnuplot mode.
-
-4. The function `gnuplot-info-lookup-symbol' looks 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/info. A 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")
-
-
-The "configure; make" sequence may not work on all systems,
-particularly Win32 systems. The long-winded way of making the .elc
-gpelcard.ps files is to edit each of the .el files with emacs and do
-`M-x byte-compile-file'. Then "latex gpelcard.tex" and
-"dvips gpelcard.dvi".
-
-Problems? Contact gnuplot-mode's author Bruce Ravel
-<bruceravel1@gmail.com> or submit an issue on github:
-http://github.com/bruceravel/gnuplot-mode
diff --git a/INSTALL.org b/INSTALL.org
new file mode 100644
index 0000000..93299f7
--- /dev/null
+++ b/INSTALL.org
@@ -0,0 +1,81 @@
+
+* Installing gnuplot-mode from Git repository or .tar.gz
+ The easiest way to install gnuplot-mode in a recent Emacs is to use
+ the Emacs package system with the MELPA repository, or the el-get
+ package (described in README.org). Either method will install the
+ most recent gnuplot-mode from the
[[https://github.com/bruceravel/gnuplot-mode][Github repository]]. If you want
to
+ install gnuplot-mode yourself from a cloned repository, read on.
+
+ 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.
+
+** Normal installation (configure + make)
+ 1. Type ~./configure~.
+
+ If configure doesn't work for you, you can use ~Makefile.dst~
+ instead: see [[Installing without configure or make]] below.
+
+ You can specify the Emacs executable to use for byte-compiling
+ by using the ~EMACS~ environment variable: for example
+ ~./configure EMACS=xemacs~ to use XEmacs. On Mac OS X, if your
+ Emacs application is located at ~/Applications/Emacs.app~, you
+ should do ~./configure
+ EMACS=/Applications/Emacs.app/Contents/MacOS/Emacs~
+
+ You can also specify the ~--with-lispdir=~ switch to change
+ where ~make install~ will put the compiled Lisp files, for
+ example to install them in your ~.emacs.d~ directory.
+
+ If you build this from a shell within Emacs itself and get
+ strange issues with load paths or environment variables, build
+ it in a separate terminal
+
+ 2. Run ~make~. There will be some compilation warnings, but they
+ should be harmless.
+
+ 3. To make the reference card, run ~make pdf~ or ~make ps~.
+
+ 4. Run ~make install~, or manually 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 can find them, e.g. your personal ~.emacs.d~.
+
+** Installing without configure or make
+ If ~configure~ fails for some reason, you can use the included
+ ~Makefile.dst~ file by doing ~make -f Makefile.dst~. This makefile
+ doesn't include an install target, so you'll have to install the
+ ~.elc~ files manually. It does have targets to build the
+ gnuplot-mode reference card (~pdf~, ~ps~ or ~all~).
+
+ The "configure; make" sequence may not work on all systems,
+ particularly Win32 systems. The long-winded way of making the .elc
+ and gpelcard.ps files is to edit each of the .el files with emacs
+ and do ~M-x byte-compile-file~. Then ~latex gpelcard.tex~ and
+ ~dvips gpelcard.dvi~, or ~pdflatex gpelcard.tex~.
+
+* Post-installation setup
+ 1. Insert the contents of the ~dotemacs.el~ file into your
+ ~.emacs~ or into the system's emacs start-up file to enable
+ gnuplot mode.
+
+ 2. The function ~gnuplot-info-lookup-symbol~ looks 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/info~ A 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")~
+
+* Build-system files
+ The included ~configure~, ~aclocal.m4~ and ~Makefile.in~ files were
+ generated from ~configure.ac~ and ~Makefile.am~ using GNU autotools
+ 2.69. If you want to regenerate them for some reason, do the
+ following:
+
+ : autoreconf
+ : automake --add-missing
+
+* Problems?
+ Contact gnuplot-mode's author Bruce Ravel <bruceravel1@gmail.com> or
+ submit an issue on github: http://github.com/bruceravel/gnuplot-mode
diff --git a/Makefile.dst b/Makefile.dst
index 4d5b887..1f22dc4 100644
--- a/Makefile.dst
+++ b/Makefile.dst
@@ -1,33 +1,39 @@
+# -*- mode: makefile -*-
-## set this variable to "xemacs" if you use XEmacs
+## Set this variable to "xemacs" if you use XEmacs
EMACS = emacs
## You will probably not need to change anything below this line
BYTE = $(EMACS) -batch -q -no-site-file -l dot.el -f batch-byte-compile
-.PHONY: all default clean
+.PHONY: all default clean pdf ps
-default:
- $(MAKE) gnuplot.elc gnuplot-gui.elc gnuplot-context.elc
+default: gnuplot.elc gnuplot-gui.elc gnuplot-context.elc
-gnuplot.elc: gnuplot.el
+pdf: gpelcard.pdf
+
+ps: gpelcard.ps
+
+all: gnuplot.elc gnuplot-gui.elc gnuplot-context.elc gpelcard.pdf gpelcard.ps
+
+gnuplot.elc: gnuplot.el
$(BYTE) gnuplot.el
-gnuplot-gui.elc: gnuplot-gui.el
+gnuplot-gui.elc: gnuplot-gui.el
$(BYTE) gnuplot-gui.el
-gnuplot-context.elc: gnuplot-context.el
+gnuplot-context.elc: gnuplot-context.el
$(BYTE) gnuplot-context.el
-gpelcard.ps: gpelcard.dvi
+gpelcard.ps: gpelcard.dvi
dvips -o gpelcard.ps gpelcard.dvi
-gpelcard.dvi: gpelcard.tex
- latex gpelcard.tex
+gpelcard.pdf: gpelcard.tex
+ pdflatex gpelcard.tex
-all:
- $(MAKE) gnuplot.elc gnuplot-gui.elc gpelcard.ps
+gpelcard.dvi: gpelcard.tex
+ latex gpelcard.tex
clean:
rm -f *.elc gpelcard.dvi gpelcard.log gpelcard.aux
diff --git a/README.org b/README.org
index 1aa895c..ffc7cea 100644
--- a/README.org
+++ b/README.org
@@ -8,111 +8,58 @@ See the homepage at
[[http://xafs.org/BruceRavel/GnuplotMode]]
** Contents
- | File | Description |
- |--------------------+---------------------------------------------------|
- | README.org | this file |
- | INSTALL | thorough installation instructions |
- | gnuplot.el | gnuplot mode for emacs |
- | gnuplot-gui.el | a GUI for setting command arguments interactively |
- | gnuplot-context.el | context-sensitive completion and help lookup |
- | dot.el | a short lisp file used by the Makefile |
- | gnuplot.info | info version of gnuplot 4.6 help |
- | gpelcard.tex | quick reference card for gnuplot mode (latex) |
- | dotemacs.el | example .emacs lines for enabling gnuplot mode |
-
-*** Files inherited from the gnuplot distribution for making gnuplot-mode
- - Makefile.am
- - configure.ac
- - Makefile.dst
-
+ | File | Description |
+ |--------------------+------------------------------------------------------|
+ | README.org | this file |
+ | INSTALL.org | thorough installation instructions |
+ | gnuplot.el | gnuplot mode for emacs |
+ | gnuplot-gui.el | a GUI for setting command arguments interactively |
+ | gnuplot-context.el | context-sensitive completion and help lookup |
+ | gnuplot.info | info version of gnuplot 4.6 help |
+ | gpelcard.tex | quick reference card for gnuplot mode (latex) |
+ | dotemacs.el | example .emacs lines for enabling gnuplot mode |
+ | configure.ac | Definitions for `autoconf` |
+ | Makefile.am | Definitions for `automake` |
+ | Makefile.dst | Alternative makefile, avoiding configure & autotools |
+ | dot.el | a short lisp file used by Makefile.dst |
+ | configure | `configure` script generated from configure.ac |
+ | aclocal.m4 | m4 macros generated from configure.ac |
+ | Makefile.in | Makefile template generated from Makefile.am |
+ | install-sh | scripts needed by configure and make |
+ | missing | |
** Installation
-
*** Installing from MELPA
- gnuplot-mode can be installed directly from
- http://melpa.milkbox.net as the "gnuplot" package (note: not
- "gnuplot-mode", which is a different package). Note that MELPA
- always builds the latest commit to the ~master~ branch, which may
- be ahead of the official release.
+ In recent versions of Emacs, gnuplot-mode can be installed directly
+ from the [[http://melpa.milkbox.net][MELPA]] package repository as the
~gnuplot~ package (note:
+ not ~gnuplot-mode~, which is an alternative gnuplot package).
+
+ After [[http://melpa.milkbox.net/#installing][configuring Emacs to use
MELPA]], you should be able to
+ install gnuplot-mode by typing
+ : M-x install-package RET gnuplot RET
+
+ Or do ~M-x list-packages~ and search for "gnuplot" in the list.
-*** el-get users
- [[https://github.com/dimitri/el-get.git][El-get]] does contain
gnuplot-mode recipe. So to install simply call,
+*** Installing using el-get
+ [[https://github.com/dimitri/el-get.git][El-get]] includes a gnuplot-mode
recipe. So to install simply call,
- : M-x el-get-install RET gnuplot-mode
+ : M-x el-get-install RET gnuplot-mode
- Alternatively, you can place the following in your init file sothat
+ Alternatively, you can place the following in your init file so that
~el-get~ can install and load gnuplot-mode at Emacs start up.
: (el-get 'sync 'gnuplot-mode)
-*** Installing from the git repository
- To do a full install from a clone of the git repository you will
- need recent versions of GNU Autotools. This is for consistency
- with Gnuplot CVS, which has an autotools-based build system.
-
- Within the cloned repository, run ~autoreconf~ and
- ~automake --add-missing~. Then continue from step 2 of the instructions
- for "Installing from a .tar.gz distribution" below.
-
- Or you could just copy the three ~.el~ files to your ~.emacs.d~ and
- byte-compile them within Emacs. (Note that you /should/
- byte-compile them, especially ~gnuplot-context.el~, which is
- unacceptably slow when run interpreted).
-
-*** Installing from a .tar.gz distribution
- 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.
-
- 1. Unpack the /gnuplot.tar.gz/ and cd to the gnuplot directory.
-
- 2. Type ~./configure~. If configure doesn't work for you, see note 7
- below.
-
- You can specify the Emacs executable to use for byte-compiling
- by using the ~EMACS~ environment variable: for example
- ~./configure EMACS=xemacs~ to use XEmacs. On Mac OS X, if your
- Emacs application is located at ~/Applications/Emacs.app~, you
- should do ~./configure
- EMACS=/Applications/Emacs.app/Contents/MacOS/Emacs~
-
- You can also optionally specify the ~--with-lispdir=~ switch to
- change where ~make install~ will put the compiled Lisp files.
-
- Note that if you run a shell within Emacs, it is often a good
- idea /not/ to build this package from inside it. Run it in a
- separate terminal instead, or you may get strange environment
- variable and load path conflicts.
-
- 3. Run ~make~. There will be some compilation warnings, but they
- should be harmless.
-
- 4. Run ~make install~, or manually 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 ~e .elc files to a
- place where emacs, i.e. your personal emacs directory.
-
- 5. Insert the contents of the /dotemacs/ file into your /.emacs/ file
- or into the system's emacs start-up file to enable gnuplot mode.
-
- 6. The function ~gnuplot-info-lookup-symbol~ looks 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/info~ A 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")~
-
- 7. To make the reference card, run ~make pdf~ or ~make ps~.
-
+*** Installing from cloned repository or .tar.gz
+ See the file INSTALL.org for details.
** New features for gnuplot-mode 0.7
*** New syntax for gnuplot version 4
- gnuplot-mode supports the new curly-brace-block ~do~ and ~if~
- statements introduced in recent versions of gnuplot. The
- indentation code to handle these is pretty simple, but should work.
- Please report any bugs. The number of columns to offset inner
- blocks is controlled by the ~gnuplot-basic-offset~ variable.
+ This version of gnuplot-mode supports the new curly-brace-block
+ ~do~ and ~if~ statements introduced in recent versions of gnuplot.
+ The indentation code to handle these is pretty simple, but should
+ work. Please report any bugs. The number of columns to offset
+ inner blocks is controlled by the ~gnuplot-basic-offset~ variable.
*** Context-sensitive keyword completion
By default gnuplot-mode will try to parse your commands as you
@@ -134,28 +81,28 @@ See the homepage at
[[http://xafs.org/BruceRavel/GnuplotMode]]
*** Inline images
You can optionally have plots displayed inline in the Gnuplot
- comint process buffer. This is handy for trying things out without
- having to switch between Emacs and the Gnuplot display. Call
- ~gnuplot-inline-imge-mode~ or type ~C-c M-i~ to try it out. This
- feature is implemented using temporary ~.png~ files, and is also
- somewhat experimental. It requires Gnuplot to have ~png~ support
- and a GNU Emacs with image support. Please report bugs.
+ comint process buffer. This is handy for trying things out without
+ having to switch between Emacs and the Gnuplot display. Call
+ ~gnuplot-inline-imge-mode~ or type ~C-c M-i~ in a gnuplot-mode
+ buffer to try it out. This feature is implemented using temporary
+ ~.png~ files, and is also somewhat experimental. It requires
+ Gnuplot to have ~png~ support and a GNU Emacs with image support.
+ Please report bugs.
** NOTES
1. Version 0.7 of gnuplot-mode is designed for use with gnuplot
version 4.4 and up. It will also mostly work fine with older
- versions. If it doesn't work with newer versions, that's a bug
- ;-)
+ versions. If it doesn't work with newer versions, report a bug.
This version has mostly been tested under GNU Emacs 23 and 24.
- It should also work on GNU Emacs 22 and XEmacs 21. Earlier than
- that it may work, but has not been tested.
-
+ It should also work on GNU Emacs 22 and XEmacs 21. It may work
+ with earlier versions, but it has not been tested.
+
2. 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.
+ there.
3. The gnuplot-mode distribution comes with the version of the gnuplot
info file that gets made by gnuplot 4.6. Use it rather than the
@@ -178,18 +125,18 @@ See the homepage at
[[http://xafs.org/BruceRavel/GnuplotMode]]
it with an old version of gnuplot (pre version 4) it may make
mistakes. Most of gnuplot 4.6's command language is parsed
correctly, with the exception of the various =set terminal=
- commands.
+ commands.
6. Gnuplot's ~pause -1~ command, which waits for the user to press a
key, is problematic when running under Emacs. Sending =pause -1=
to the running gnuplot process will make Emacs appear to freeze.
(It isn't really crashed: typing =C-g= will unlock it and let you
continue). The workaround for now is to make Gnuplot output a
- string before pausing, by doing
-
-#+BEGIN_EXAMPLE
-pause -1 "Hit return"
-#+END_EXAMPLE
+ string before pausing, by doing
+
+ #+BEGIN_EXAMPLE
+ pause -1 "Hit return"
+ #+END_EXAMPLE
or similar. Thanks to Jim Mehl for reporting this issue.
- [nongnu] elpa/gnuplot 630c945 093/184: Clean up build process to be closer to gnuplot source tree., (continued)
- [nongnu] elpa/gnuplot 630c945 093/184: Clean up build process to be closer to gnuplot source tree., ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot c827a90 090/184: Load gnuplot-eldoc only if needed, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot cabfc6c 088/184: fix annoying delay in indentation with blinking paren mode, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 327d564 091/184: Fix indentation: only outdent a maximum of one closing brace per line, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 7046fe1 092/184: Misc cleanup and documentation, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot a25b290 094/184: Update README for new release., ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 0134457 098/184: Add configure scripts, etc. back to repository for easier building, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 1b8e0e3 095/184: Update included info file for Gnuplot 4.6, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot d5eb309 102/184: Merge pull request #17 from yyr/master, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot ae7c4b4 104/184: readme tweaks, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 483a71f 103/184: Update documentation on installing, and tweak Makefile.dst,
ELPA Syncer <=
- [nongnu] elpa/gnuplot 7350c9d 107/184: Use the syntax-propertize mechanism instead of after-change-functions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 4c5092a 115/184: Merge branch 'syntax-propertize', ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot edd779a 114/184: Fix context tests for syntax-propertize, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 156d6a9 120/184: Add option to send plot output to a dedicated buffer, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot ba3728a 113/184: Fix syntax-propertize rules for empty strings, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 08fe8e0 117/184: Try to make tests runnable on older Emacs, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 7f53432 132/184: Clarify `gnuplot-comint-complete` docstring, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 2442835 127/184: Use completion-at-point in comint buffers in recent Emacs, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot f3734b6 136/184: Add Jon as author, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 3f28986 134/184: Fix compiler warnings, comments and docstrings, ELPA Syncer, 2021/08/29