Skip to content

Commit 1577b8d

Browse files
committed
Move many functions to private namespace
Keep obsolete public aliases
1 parent f466ab0 commit 1577b8d

File tree

4 files changed

+98
-76
lines changed

4 files changed

+98
-76
lines changed

gnuplot-context.el

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -275,13 +275,13 @@ If COMPLETING-P is non-nil, omits the token at point if it is a
275275
name; otherwise continues tokenizing up to the token at point. FIXME."
276276
(let ((tokens '())
277277
(stop-point (min (point)
278-
(gnuplot-point-at-end-of-command))))
278+
(gnuplot--point-at-end-of-command))))
279279
(save-excursion
280280
(if (save-excursion ; HACK FIXME
281-
(gnuplot-beginning-of-continuation)
281+
(gnuplot--beginning-of-continuation)
282282
(looking-at "\\s-*if\\s-*("))
283-
(gnuplot-beginning-of-continuation)
284-
(gnuplot-beginning-of-command))
283+
(gnuplot--beginning-of-continuation)
284+
(gnuplot--beginning-of-command))
285285
(while
286286
;; Skip whitespace and continuation lines
287287
(progn
@@ -2060,7 +2060,7 @@ there."
20602060
(defun gnuplot-context-completion-at-point ()
20612061
"Return completions of keyword preceding point, using context."
20622062
(list (save-excursion
2063-
(skip-syntax-backward "w_" (gnuplot-point-at-beginning-of-command))
2063+
(skip-syntax-backward "w_" (gnuplot--point-at-beginning-of-command))
20642064
(point))
20652065
(point)
20662066
(gnuplot-completions)))
@@ -2176,7 +2176,7 @@ command."
21762176
(catch 'result
21772177
(while
21782178
(search-backward-regexp "reset\\|set\\s-+parametric" (point-min) t)
2179-
(gnuplot-beginning-of-command)
2179+
(gnuplot--beginning-of-command)
21802180
(cond ((looking-at "reset\\|unset\\s-+parametric") (throw 'result nil))
21812181
((looking-at "set\\s-+parametric") (throw 'result t))))
21822182
nil)))

gnuplot-gui.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ Note that \"cntrparam\" is not currently supported."
842842
(interactive (list last-nonmenu-event))
843843
(save-excursion
844844
(if event (mouse-set-point event))
845-
(let ((begin (gnuplot-point-at-beginning-of-command))
845+
(let ((begin (gnuplot--point-at-beginning-of-command))
846846
(end (save-excursion (end-of-line) (point-marker)))
847847
(termin (concat "\\(,\\s-*" (regexp-quote "\\") "\\|;\\)"))
848848
(set nil) (term nil))

gnuplot-test-context.el

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@
409409
(while (not (eobp))
410410
(let ((ln (line-number-at-pos))
411411
(tokens (progn
412-
(gnuplot-end-of-command)
412+
(gnuplot--end-of-command)
413413
(gnuplot-tokenize))))
414414
(when (> (length tokens) 1)
415415
(let ((result
@@ -421,8 +421,8 @@
421421
(cl-incf gnuplot-test-success-count)
422422
(let ((cmd
423423
(buffer-substring
424-
(gnuplot-point-at-beginning-of-command)
425-
(gnuplot-point-at-end-of-command))))
424+
(gnuplot--point-at-beginning-of-command)
425+
(gnuplot--point-at-end-of-command))))
426426
(with-current-buffer
427427
(get-buffer-create gnuplot-test-result-buffer)
428428
(insert
@@ -431,7 +431,7 @@
431431
(insert
432432
(format "\tUNMATCHED TOKENS were: %s\n"
433433
(gnuplot-simplify-tokens (car result)))))))))))
434-
(gnuplot-beginning-of-defun -1)))))
434+
(gnuplot--beginning-of-defun -1)))))
435435

436436
(when (boundp 'compilation-error-regexp-alist-alist)
437437
(add-to-list 'compilation-error-regexp-alist-alist

0 commit comments

Comments
 (0)