You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- =M-x gnuplot-mode= - switch to =gnuplot-mode= in the current buffer
39
+
- =M-x gnuplot-make-buffer= - open a new buffer, which is not visiting a file, and
40
+
start =gnuplot-mode= in that buffer.
46
41
47
42
** Bindings
48
43
@@ -58,7 +53,7 @@ When =gnuplot-mode= is on, the following keybindings are available:
58
53
| C-c C-c | comment region |
59
54
| C-c C-o | set arguments for command at point |
60
55
| S-mouse-2 | set arguments for command under mouse cursor |
61
-
| C-c C-d | read the gnuplot info file |
56
+
| C-c C-d | read the gnuplot info manual |
62
57
| C-c C-e | show gnuplot buffer |
63
58
| C-c C-k | kill gnuplot process |
64
59
| C-c C-z | customize gnuplot-mode |
@@ -75,11 +70,11 @@ following:
75
70
76
71
** Context-sensitive keyword completion
77
72
78
-
By default gnuplot-mode will try to parse your commands as you type and suggest
73
+
By default =gnuplot-mode= will try to parse your commands as you type and suggest
79
74
only relevant completion candidates on typing =M-TAB= or =TAB=. For example, with
80
75
point after the =with= of a =plot= command, tab completion will suggest only
81
76
plotting styles. This also enables more specific help topic lookup in the
82
-
gnuplot info file.
77
+
Gnuplot info manual.
83
78
84
79
If the context-sensitivity annoys you, you can get simple non-context-sensitive
85
80
completion back by toggling =gnuplot-context-sensitive-mode=.
@@ -96,55 +91,46 @@ context sensitivity is enabled. Both are enabled by default.
96
91
97
92
** Inline Images
98
93
99
-
You can have plots displayed inline in the Gnuplot comint process buffer. This
94
+
You can have plots displayed inline in the Gnuplot Comint process buffer. This
100
95
is handy for trying things out without having to switch between Emacs and the
101
-
Gnuplot display. It requires Gnuplot to have =png= support and a GNU Emacs with
102
-
image support. Call =gnuplot-external-display-mode= in a gnuplot-mode buffer to
103
-
disable the feature.
96
+
Gnuplot display. It requires Gnuplot and Emacs to have =png= support. Call
97
+
=gnuplot-external-display-mode= in a gnuplot-mode buffer to disable the feature.
104
98
105
99
* Common issues
106
100
107
101
** Usage on Windows
108
102
109
103
Multiple users have reported issues when trying to work with =gnuplot.el= on
110
-
Windows. Most notably, the gnuplot process hangs after sending a first line of
111
-
input (this is a common Emacs issue on Windows, see [[https://www.gnu.org/software/emacs/manual/html_mono/efaq-w32.html#Sub_002dprocesses][here]]).
112
-
113
-
A partial workaround was to use =pgnuplot.exe= as the =gnuplot-program=. However,
114
-
=pgnuplot.exe= is not included with gnuplot since version 5.0.
115
-
116
-
You currently have two solutions:
104
+
Windows. Most notably, the Gnuplot process hangs after sending a first line of
105
+
input (this is a common Emacs issue on Windows, see [[https://www.gnu.org/software/emacs/manual/html_mono/efaq-w32.html#Sub_002dprocesses][here]]). More information on
106
+
=gnuplot.el= and Windows can be found on these threads [[https://github.com/emacs-gnuplot/gnuplot/issues/15][1]] and [[https://github.com/emacs-gnuplot/gnuplot/pull/33][2]]. You currently have
107
+
two solutions:
117
108
118
109
1. Experiment using the =gnuplot-program= and =gnuplot-program-args= variables. For
119
-
instance, setting
110
+
instance the following setting has been reported to work (see [[https://github.com/emacs-gnuplot/gnuplot/pull/33/files][here]]).
has been reported to work (see [[https://github.com/emacs-gnuplot/gnuplot/pull/33/files][here]] for a reference).
127
-
128
-
2. Use the simpler [[https://github.com/mkmcc/gnuplot-mode][gnuplot-mode]] package that sends the entire buffer to gnuplot.
117
+
2. Try the simpler [[https://github.com/mkmcc/gnuplot-mode][gnuplot-mode]] package that sends the entire buffer to Gnuplot.
129
118
Since no =comint= is involved, it should function correctly, but you lose most
130
-
features of the =gnuplot.el= package. We would like to implement a send-buffer
131
-
without comint as well eventually.
132
-
133
-
More information on =gnuplot.el= and Windows can be found on these threads: [[https://github.com/emacs-gnuplot/gnuplot/issues/15][1]], [[https://github.com/emacs-gnuplot/gnuplot/pull/33][2]]
119
+
features of this package.
134
120
135
121
** Pause Command
136
122
137
123
Gnuplot's =pause -1= command, which waits for the user to press a key, is
138
-
problematic when running under Emacs. Sending =pause -1= to the running gnuplot
124
+
problematic when running under Emacs. Sending =pause -1= to the running Gnuplot
139
125
process will make Emacs appear to freeze. (It isn't really crashed: typing =C-g=
140
126
will unlock it and let you continue). The workaround for now is to make Gnuplot
141
127
output a string before pausing, by doing =pause -1 "Hit return"= or similar.
142
128
143
129
** Issue with Unicode Character Display
144
130
145
131
Some users have reported [[https://github.com/emacs-gnuplot/gnuplot/issues/39][issues when trying to display unicode characters]]. This
146
-
issue is likely due to your distribution bundling gnuplot with [[https://unix.stackexchange.com/questions/496206/unicode-in-gnuplot-terminal/496245#496245][editline instead
147
-
of readline]]. Recompiling the source with support for unicode should fix the
132
+
issue is likely due to your distribution bundling Gnuplot with [[https://unix.stackexchange.com/questions/496206/unicode-in-gnuplot-terminal/496245#496245][editline instead
133
+
of readline]]. Recompiling the source with support for Unicode should fix the
148
134
issue until this issue is fixed upstream. Thanks to [[https://github.com/rolandog][rolandog]] for discovering
149
135
this fix.
150
136
@@ -155,4 +141,4 @@ Regenerate ~gnuplot.texi~ and ~gnuplot-eldoc.el~ from the Gnuplot source.
155
141
1. Run ~emacs -batch -l doc2texi.el -f d2t-doc-to-texi~ inside the ~gnuplot-*/docs/~
156
142
source directory.
157
143
2. Run ~makeinfo --no-split gnuplot.texi~ and ensure that it compiles cleanly.
158
-
3. Copy ~gnuplot-eldoc.el~ and ~gnuplot.texi~ to the package source.
144
+
3. Copy ~gnuplot-eldoc.el~ and ~gnuplot.texi~ to the package source directory.
0 commit comments