Skip to content

Commit 8dc3734

Browse files
committed
gnuplot-context: Respect namespace
1 parent 9283ad9 commit 8dc3734

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

gnuplot-context.el

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
;; With `eldoc-mode' support, `gnuplot-mode' will show one-line syntax
5252
;; hints automatically in the echo area. Whether `eldoc-mode' is
5353
;; active or not, you can always pop up a longer description of syntax
54-
;; using `gnuplot-help-function' (C-c C-/ or C-c M-h).
54+
;; using `gnuplot-context-help-at-point' (C-c C-/ or C-c M-h).
5555
;;
5656
;; Internal details
5757
;; ================
@@ -1734,7 +1734,8 @@ token list just after the end of the capture group.")
17341734
(defvar gnuplot-context--eldoc nil
17351735
"ElDoc documentation string for the Gnuplot construction at point.
17361736
1737-
Set by `gnuplot-context--match-pattern'. See also `gnuplot-info-at-point'.")
1737+
Set by `gnuplot-context--match-pattern'. See also
1738+
`gnuplot-context-info-at-point'.")
17381739

17391740
(defvar gnuplot-eldoc-hash nil
17401741
"ElDoc strings for `gnuplot-mode'.
@@ -2048,7 +2049,7 @@ there."
20482049
(gnuplot-context--parse-at-point nil)
20492050
gnuplot-context--eldoc)
20502051

2051-
(defun gnuplot-help-function ()
2052+
(defun gnuplot-context-help-at-point ()
20522053
"Pop up the extended documentation for the construction at point."
20532054
(interactive nil gnuplot-mode gnuplot-comint-mode)
20542055
(gnuplot-context--parse-at-point nil)
@@ -2058,7 +2059,7 @@ there."
20582059
(if eldoc (message eldoc)))))
20592060

20602061
;; Info lookup
2061-
(defun gnuplot-info-at-point (&optional query)
2062+
(defun gnuplot-context-info-at-point (&optional query)
20622063
"Open the relevant gnuplot info page for the construction at point."
20632064
(interactive "P" gnuplot-mode gnuplot-comint-mode)
20642065
(setq gnuplot-context--info-at-point nil)
@@ -2175,11 +2176,11 @@ Key bindings:
21752176
on its context in the command. To make keyword completion work on
21762177
pressing TAB, set `tab-always-indent' to `complete'.
21772178
2178-
\\[gnuplot-info-at-point] will try to find the most relevant
2179+
\\[gnuplot-context-info-at-point] will try to find the most relevant
21792180
Gnuplot info node for the construction at point, prompting for a
21802181
node name if nothing is found.
21812182
2182-
\\[gnuplot-help-function] will pop up a brief summary of the
2183+
\\[gnuplot-context-help-at-point] will pop up a brief summary of the
21832184
syntax at point in the minibuffer. To have one-line syntax
21842185
summaries appear in the echo area as you type, toggle
21852186
`eldoc-mode'.
@@ -2189,8 +2190,8 @@ customize the variable
21892190
`gnuplot-use-context-sensitive-completion'."
21902191
:interactive (gnuplot-mode gnuplot-comint-mode)
21912192
:keymap
2192-
`((,(kbd "C-c C-/") . gnuplot-help-function)
2193-
(,(kbd "C-c C-d") . gnuplot-info-at-point))
2193+
`((,(kbd "C-c C-/") . gnuplot-context-help-at-point)
2194+
(,(kbd "C-c C-d") . gnuplot-context-info-at-point))
21942195
(unless (derived-mode-p 'gnuplot-mode 'gnuplot-comint-mode)
21952196
(message "Gnuplot context-sensitive mode works only in Gnuplot-mode buffers")
21962197
(setq gnuplot-context-sensitive-mode nil))

gnuplot.el

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -690,10 +690,10 @@ These are set by `gnuplot--set-keywords-list' from the values in
690690
["Insert filename at point" gnuplot-insert-filename t]
691691
["Negate set option" gnuplot-negate-option t]
692692
["Keyword help" gnuplot-info-lookup-symbol]
693-
["Quick help for thing at point" gnuplot-help-function
693+
["Quick help for thing at point" gnuplot-context-help-at-point
694694
gnuplot-context-sensitive-mode]
695695
["Info documentation on thing at point"
696-
gnuplot-info-at-point
696+
gnuplot-context-info-at-point
697697
gnuplot-context-sensitive-mode]
698698
["Show gnuplot process buffer" gnuplot-show-comint-buffer t]
699699
["Set arguments at point" gnuplot-gui-set-options-and-insert t]
@@ -1179,10 +1179,10 @@ this function is attached to `gnuplot-after-plot-hook'"
11791179
["Insert filename at point" gnuplot-insert-filename t]
11801180
["Negate set option" gnuplot-negate-option t]
11811181
["Keyword help" gnuplot-info-lookup-symbol]
1182-
["Quick help for thing at point" gnuplot-help-function
1182+
["Quick help for thing at point" gnuplot-context-help-at-point
11831183
gnuplot-context-sensitive-mode]
11841184
["Info documentation on thing at point"
1185-
gnuplot-info-at-point
1185+
gnuplot-context-info-at-point
11861186
gnuplot-context-sensitive-mode]
11871187
["Switch to recent gnuplot script buffer" gnuplot-pop-to-recent-buffer
11881188
(buffer-live-p gnuplot--comint-recent-buffer)]

0 commit comments

Comments
 (0)