[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/gnuplot d70c94a 065/184: Better docstrings for context-sen
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/gnuplot d70c94a 065/184: Better docstrings for context-sensitive and inline-image modes |
Date: |
Sun, 29 Aug 2021 11:03:16 -0400 (EDT) |
branch: elpa/gnuplot
commit d70c94a1b34da34b56abc8845c5702e653c7c31e
Author: joddie <jonxfield@gmail.com>
Commit: joddie <jonxfield@gmail.com>
Better docstrings for context-sensitive and inline-image modes
---
gnuplot-context.el | 35 ++++++++++++++++++++++++++++++++---
gnuplot.el | 6 ++++++
2 files changed, 38 insertions(+), 3 deletions(-)
diff --git a/gnuplot-context.el b/gnuplot-context.el
index 1954b28..b4de23b 100644
--- a/gnuplot-context.el
+++ b/gnuplot-context.el
@@ -275,15 +275,44 @@ These have to be compiled from the Gnuplot source tree
using
;;;; Customization interface, etc.
(defun gnuplot-context-sensitive-mode (&optional enable)
"Turn gnuplot-mode context-sensitive completion and help on and off.
-Works like a minor mode: with argument, turn context-sensitive
-mode on if ENABLE is positive, otherwise turn it off. With no
-argument, toggle context-sensitive mode."
+
+When context-sensitive mode is enabled, gnuplot-mode tries to
+provide more useful completions and help suggestions for built-in
+keywords and functions by parsing each command as you type. It
+attempts to take into account Gnuplot's many abbreviated
+keywords. For example, with point at the end of a line reading
+\"plot 'datafile' w \", typing \\[completion-at-point] will pop
+up a list of plotting styles.
+
+\\[completion-at-point] will complete the keyword at point based
+on its context in the command. To make keyword completion work on
+pressing TAB, set `tab-always-indent' to `complete', or customize
+`gnuplot-tab-completion' to make this automatic in gnuplot-mode
+buffers.
+
+\\[gnuplot-info-at-point] will try to find the most relevant
+Gnuplot info node for the construction at point, prompting for a
+node name if nothing is found.
+
+In addition, \\[gnuplot-help-function] will pop up a brief
+summary of the syntax at point in the minibuffer. To have one-line
+syntax summaries appear in the echo area as you type, toggle
+`eldoc-mode' or customize `gnuplot-eldoc-mode'.
+
+Note: help strings for eldoc-mode and \\[gnuplot-help-function]
+need to be provided in an Emacs-readable form by the Gnuplot
+distribution. See gnuplot-context.el for details.
+
+Works like a minor mode: with a prefix argument, turn
+context-sensitive mode on if positive, otherwise turn it
+off. With no argument, toggle context-sensitive mode."
(interactive "P")
(setq gnuplot-context-sensitive-mode
(if (null enable) (not gnuplot-context-sensitive-mode)
(> (prefix-numeric-value enable) 0)))
(if gnuplot-context-sensitive-mode
+ ;; Turn on
(progn
(when (called-interactively-p 'any)
(message "Gnuplot context-sensitive help & completion enabled."))
diff --git a/gnuplot.el b/gnuplot.el
index 1cdeea5..dad7adb 100644
--- a/gnuplot.el
+++ b/gnuplot.el
@@ -2238,6 +2238,12 @@ gnuplot process buffer will be displayed in a window."
(defun gnuplot-inline-image-mode (&optional enable)
"Turn inline display of Gnuplot output in the comint buffer on or off.
+
+This works by having Gnuplot save its output to temporary .png
+files using \"set terminal png\" and \"set output\" commands,
+which are sent invisibly to the running Gnuplot process between
+user commands.
+
Works like a minor mode: with argument, turn inline image display
on if ENABLE is positive, otherwise turn it off and restores the
previous Gnuplot terminal setting. With no argument, toggle
- [nongnu] elpa/gnuplot ca6841b 041/184: Added experimental context-sensitive completion and help code., (continued)
- [nongnu] elpa/gnuplot ca6841b 041/184: Added experimental context-sensitive completion and help code., ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 7cb3975 047/184: Cleaned up the tokenizer and got rid of gnuplot-token-at-point., ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot a276f0d 033/184: Fix bug #8: remove `eval-when-compile' from definition of `gnuplot-make-regexp', ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot cd73487 064/184: Remove other cruft, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 76cfd01 043/184: Lots of fixes to grammar, and some bugfixes., ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 59f7a94 061/184: Better prompt tracking. Setup inline images on creating comint buffer., ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 18dccc2 058/184: Merge branch 'context' into devel, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot d4f8c3a 082/184: display progress while running parse tests, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 6da76ee 052/184: Merge branch 'devel', ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot d26d498 062/184: Added a customization option for gnuplot-inline-image-mode., ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot d70c94a 065/184: Better docstrings for context-sensitive and inline-image modes,
ELPA Syncer <=
- [nongnu] elpa/gnuplot 43effb0 068/184: Add gnuplot-context to makefiles., ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot f0b1ea7 085/184: Update lists of font-lock keywords., ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 70dd22e 060/184: Keyboard shortcut and menu item for toggling inline mode., ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot a0fee02 086/184: use `many1' for iteration spec, and tweak its test case, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 2dc71de 077/184: Move window-full-height-p up with other compatibility hacks, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 3245468 084/184: Fixes to context-sensitive grammar, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot a290617 079/184: Make info window/frame handling work alike in context and non-context modes, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot af7e8de 073/184: Remove references to obsolete kw-compl and hilit19 packages, ELPA Syncer, 2021/08/29
- [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