230230
231231; ;; Code:
232232
233-
234- ; ; Library dependencies
235- (eval-when-compile
236- (require 'cl-lib )
237-
238- ; ; Prevent compiler warnings about undefined functions
239- (require 'gnuplot ))
240-
241- ; ; We need ElDoc support
233+ (require 'cl-lib )
234+ (require 'gnuplot )
242235(require 'eldoc )
243-
244- ; ; Compatibility for Emacs version < 23
245- (eval-when-compile
246- (when (not (fboundp 'string-match-p ))
247- (defmacro string-match-p (&rest args )
248- `(save-match-data (string-match ,@args )))))
236+ (require 'info )
237+ (require 'info-look )
249238
250239
251240; ;;; The tokenizer.
@@ -498,7 +487,7 @@ name; otherwise continues tokenizing up to the token at point. FIXME."
498487
499488 (t ; two patterns
500489 (let* ((pat1 (cadr pat))
501- (pat2 (caddr pat))
490+ (pat2 (cl- caddr pat))
502491 (pat1-c (gnuplot-compile-pattern pat1))
503492 (pat2-c (gnuplot-compile-pattern pat2))
504493 (pat1-l (length pat1-c))
@@ -536,7 +525,7 @@ name; otherwise continues tokenizing up to the token at point. FIXME."
536525 ; ; Syntactic sugar for delimited lists
537526 ((delimited-list)
538527 (let* ((item (cadr pat))
539- (sep (caddr pat)))
528+ (sep (cl- caddr pat)))
540529 (gnuplot-compile-pattern
541530 `(sequence , item (many (sequence , sep , item ))))))
542531
@@ -1827,7 +1816,7 @@ there."
18271816 ; ; (literal LITERAL NO-COMPLETE)
18281817 ((literal)
18291818 (let ((expect (cadr inst))
1830- (no-complete (caddr inst)))
1819+ (no-complete (cl- caddr inst)))
18311820 (cond (end-of-tokens
18321821 (unless no-complete
18331822 (gnuplot-trace " \t pushing \" %s\" to completions\n " expect)
@@ -1852,7 +1841,7 @@ there."
18521841 ; ; regexp-matches REGEXP, use NAME for completions
18531842 ((keyword)
18541843 (let ((regexp (cadr inst))
1855- (name (caddr inst)))
1844+ (name (cl- caddr inst)))
18561845 (cond (end-of-tokens
18571846 (gnuplot-trace " \t pushing \" %s\" to completions\n " name)
18581847 (push name gnuplot-completions)
@@ -1929,7 +1918,7 @@ there."
19291918 ; ; onto the stack
19301919 ((push )
19311920 (let* ((type (cadr inst))
1932- (value (caddr inst)))
1921+ (value (cl- caddr inst)))
19331922 (push `(, type , value , tokens ) stack)))
19341923
19351924 ; ; (pop TYPE): pop something off the stack
@@ -1953,7 +1942,7 @@ there."
19531942 (record (assoc name gnuplot-captures)))
19541943 (if (not record)
19551944 (error " Gnuplot-match-tokens: no open capture group named %s " name)
1956- (setf (caddr record) tokens)
1945+ (setf (cl- caddr record) tokens)
19571946 (gnuplot-debug (gnuplot-dump-captures)))))
19581947
19591948 ; ; (check-progress): make sure not stuck in an infinite loop
@@ -2003,7 +1992,7 @@ there."
20031992 (not (and gnuplot-info-at-point gnuplot-eldoc)))
20041993 (let* ((item (car stack))
20051994 (type (car item))
2006- (position (caddr item))) ; must progress by at least one token
1995+ (position (cl- caddr item))) ; must progress by at least one token
20071996 (if (and (memq type '(info eldoc no-scan))
20081997 (not (eq position tokens)))
20091998 (cl-case type
@@ -2041,7 +2030,7 @@ there."
20412030 (let ((record (assoc name gnuplot-captures)))
20422031 (if (not record) nil
20432032 (let ((begin (cadr record))
2044- (end (caddr record))
2033+ (end (cl- caddr record))
20452034 (accum '()))
20462035 (while (and begin (not (eq begin end)))
20472036 (push (pop begin) accum))
0 commit comments