aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2018-03-23 16:14:26 -0400
committerGlenn Morris2018-03-23 16:14:49 -0400
commitc5a363080cd29742454aeaebb09d5da06babd4e3 (patch)
tree94ffdcff75b78ded361169703bfb7f70f1bcf0cf
parent07e340daaf34504db5f5f71f88505eb524006819 (diff)
downloademacs-c5a363080cd29742454aeaebb09d5da06babd4e3.tar.gz
emacs-c5a363080cd29742454aeaebb09d5da06babd4e3.zip
Replace some uses of cl with cl-lib
* lisp/progmodes/idlw-toolbar.el: No need for cl. * lisp/progmodes/antlr-mode.el, lisp/progmodes/idlw-shell.el: * lisp/progmodes/idlwave.el: Replace cl with cl-lib.
-rw-r--r--lisp/progmodes/antlr-mode.el39
-rw-r--r--lisp/progmodes/idlw-shell.el8
-rw-r--r--lisp/progmodes/idlw-toolbar.el2
-rw-r--r--lisp/progmodes/idlwave.el44
4 files changed, 45 insertions, 48 deletions
diff --git a/lisp/progmodes/antlr-mode.el b/lisp/progmodes/antlr-mode.el
index 1d4fd4f2bce..775fd878725 100644
--- a/lisp/progmodes/antlr-mode.el
+++ b/lisp/progmodes/antlr-mode.el
@@ -82,8 +82,7 @@
82 82
83;;; Code: 83;;; Code:
84 84
85(eval-when-compile 85(eval-when-compile (require 'cl-lib))
86 (require 'cl))
87 86
88(require 'easymenu) 87(require 'easymenu)
89(require 'cc-mode) 88(require 'cc-mode)
@@ -1066,7 +1065,7 @@ Used for `antlr-slow-syntactic-context'.")
1066 (buffer-syntactic-context-depth) 1065 (buffer-syntactic-context-depth)
1067 nil) 1066 nil)
1068 :EMACS 1067 :EMACS
1069;;; (incf antlr-statistics-inval) 1068;;; (cl-incf antlr-statistics-inval)
1070 (setq antlr-slow-context-cache nil)) 1069 (setq antlr-slow-context-cache nil))
1071 1070
1072(defunx antlr-syntactic-context () 1071(defunx antlr-syntactic-context ()
@@ -1096,9 +1095,9 @@ WARNING: this may alter `match-data'."
1096 (if (>= orig antlr-slow-cache-diff-threshold) 1095 (if (>= orig antlr-slow-cache-diff-threshold)
1097 (beginning-of-defun) 1096 (beginning-of-defun)
1098 (goto-char (point-min))) 1097 (goto-char (point-min)))
1099;;; (cond ((and diff (< diff 0)) (incf antlr-statistics-full-neg)) 1098;;; (cond ((and diff (< diff 0)) (cl-incf antlr-statistics-full-neg))
1100;;; ((and diff (>= diff 3000)) (incf antlr-statistics-full-diff)) 1099;;; ((and diff (>= diff 3000)) (cl-incf antlr-statistics-full-diff))
1101;;; (t (incf antlr-statistics-full-other))) 1100;;; (t (cl-incf antlr-statistics-full-other)))
1102 (setq state (parse-partial-sexp (point) orig))) 1101 (setq state (parse-partial-sexp (point) orig)))
1103 (goto-char orig) 1102 (goto-char orig)
1104 (if antlr-slow-context-cache 1103 (if antlr-slow-context-cache
@@ -1110,12 +1109,12 @@ WARNING: this may alter `match-data'."
1110 ((nth 4 state) 'comment) ; block-comment? -- we don't care 1109 ((nth 4 state) 'comment) ; block-comment? -- we don't care
1111 (t (car state))))) 1110 (t (car state)))))
1112 1111
1113;;; (incf (aref antlr-statistics 2)) 1112;;; (cl-incf (aref antlr-statistics 2))
1114;;; (unless (and (eq (current-buffer) 1113;;; (unless (and (eq (current-buffer)
1115;;; (caar antlr-slow-context-cache)) 1114;;; (caar antlr-slow-context-cache))
1116;;; (eq (buffer-modified-tick) 1115;;; (eq (buffer-modified-tick)
1117;;; (cdar antlr-slow-context-cache))) 1116;;; (cdar antlr-slow-context-cache)))
1118;;; (incf (aref antlr-statistics 1)) 1117;;; (cl-incf (aref antlr-statistics 1))
1119;;; (setq antlr-slow-context-cache nil)) 1118;;; (setq antlr-slow-context-cache nil))
1120;;; (let* ((orig (point)) 1119;;; (let* ((orig (point))
1121;;; (base (cadr antlr-slow-context-cache)) 1120;;; (base (cadr antlr-slow-context-cache))
@@ -1124,7 +1123,7 @@ WARNING: this may alter `match-data'."
1124;;; ((eq orig (car base)) (cdr base)))) 1123;;; ((eq orig (car base)) (cdr base))))
1125;;; diff diff2) 1124;;; diff diff2)
1126;;; (unless state 1125;;; (unless state
1127;;; (incf (aref antlr-statistics 3)) 1126;;; (cl-incf (aref antlr-statistics 3))
1128;;; (when curr 1127;;; (when curr
1129;;; (if (< (setq diff (abs (- orig (car curr)))) 1128;;; (if (< (setq diff (abs (- orig (car curr))))
1130;;; (setq diff2 (abs (- orig (car base))))) 1129;;; (setq diff2 (abs (- orig (car base)))))
@@ -1137,7 +1136,7 @@ WARNING: this may alter `match-data'."
1137;;; (setq state 1136;;; (setq state
1138;;; (parse-partial-sexp (car state) orig nil nil (cdr state))) 1137;;; (parse-partial-sexp (car state) orig nil nil (cdr state)))
1139;;; (if (>= orig 3000) (beginning-of-defun) (goto-char (point-min))) 1138;;; (if (>= orig 3000) (beginning-of-defun) (goto-char (point-min)))
1140;;; (incf (aref antlr-statistics 4)) 1139;;; (cl-incf (aref antlr-statistics 4))
1141;;; (setq cw (list orig (point) base curr)) 1140;;; (setq cw (list orig (point) base curr))
1142;;; (setq state (parse-partial-sexp (point) orig))) 1141;;; (setq state (parse-partial-sexp (point) orig)))
1143;;; (goto-char orig) 1142;;; (goto-char orig)
@@ -1348,10 +1347,10 @@ is non-nil, move to beginning of the rule."
1348 (antlr-skip-exception-part skip-comment)) 1347 (antlr-skip-exception-part skip-comment))
1349 (antlr-skip-file-prelude skip-comment)) 1348 (antlr-skip-file-prelude skip-comment))
1350 (if (< arg 0) 1349 (if (< arg 0)
1351 (unless (and (< (point) pos) (zerop (incf arg))) 1350 (unless (and (< (point) pos) (zerop (cl-incf arg)))
1352 ;; if we have moved backward, we already moved one defun backward 1351 ;; if we have moved backward, we already moved one defun backward
1353 (goto-char beg) ; rewind (to ";" / point) 1352 (goto-char beg) ; rewind (to ";" / point)
1354 (while (and arg (<= (incf arg) 0)) 1353 (while (and arg (<= (cl-incf arg) 0))
1355 (if (antlr-search-backward ";") 1354 (if (antlr-search-backward ";")
1356 (setq beg (point)) 1355 (setq beg (point))
1357 (when (>= arg -1) 1356 (when (>= arg -1)
@@ -1368,9 +1367,9 @@ is non-nil, move to beginning of the rule."
1368 (antlr-skip-exception-part skip-comment))) 1367 (antlr-skip-exception-part skip-comment)))
1369 (if (<= (point) pos) ; moved backward? 1368 (if (<= (point) pos) ; moved backward?
1370 (goto-char pos) ; rewind 1369 (goto-char pos) ; rewind
1371 (decf arg)) ; already moved one defun forward 1370 (cl-decf arg)) ; already moved one defun forward
1372 (unless (zerop arg) 1371 (unless (zerop arg)
1373 (while (>= (decf arg) 0) 1372 (while (>= (cl-decf arg) 0)
1374 (antlr-search-forward ";")) 1373 (antlr-search-forward ";"))
1375 (antlr-skip-exception-part skip-comment))))) 1374 (antlr-skip-exception-part skip-comment)))))
1376 1375
@@ -1465,7 +1464,7 @@ If non-nil, TRANSFORM is used on literals instead of `downcase-region'."
1465 (antlr-invalidate-context-cache) 1464 (antlr-invalidate-context-cache)
1466 (while (antlr-re-search-forward "\"\\(\\sw\\(\\sw\\|-\\)*\\)\"" nil) 1465 (while (antlr-re-search-forward "\"\\(\\sw\\(\\sw\\|-\\)*\\)\"" nil)
1467 (funcall transform (match-beginning 0) (match-end 0)) 1466 (funcall transform (match-beginning 0) (match-end 0))
1468 (incf literals)))) 1467 (cl-incf literals))))
1469 (message "Transformed %d literals" literals))) 1468 (message "Transformed %d literals" literals)))
1470 1469
1471(defun antlr-upcase-literals () 1470(defun antlr-upcase-literals ()
@@ -2131,7 +2130,7 @@ its export vocabulary is used as an import vocabulary."
2131 (or (null ivocab) 2130 (or (null ivocab)
2132 (member ivocab import-vocabs) (push ivocab import-vocabs))))) 2131 (member ivocab import-vocabs) (push ivocab import-vocabs)))))
2133 (if classes 2132 (if classes
2134 (list* (file-name-nondirectory buffer-file-name) 2133 (cl-list* (file-name-nondirectory buffer-file-name)
2135 (cons (nreverse classes) (nreverse superclasses)) 2134 (cons (nreverse classes) (nreverse superclasses))
2136 (cons (nreverse export-vocabs) (nreverse import-vocabs)) 2135 (cons (nreverse export-vocabs) (nreverse import-vocabs))
2137 antlr-language)))) 2136 antlr-language))))
@@ -2277,7 +2276,7 @@ command `antlr-show-makefile-rules' for detail."
2277 (dolist (dep deps) 2276 (dolist (dep deps)
2278 (let ((supers (cdadr dep)) 2277 (let ((supers (cdadr dep))
2279 (lang (cdr (assoc (cdddr dep) antlr-file-formats-alist)))) 2278 (lang (cdr (assoc (cdddr dep) antlr-file-formats-alist))))
2280 (if n (incf n)) 2279 (if n (cl-incf n))
2281 (antlr-makefile-insert-variable n "" " =") 2280 (antlr-makefile-insert-variable n "" " =")
2282 (if supers 2281 (if supers
2283 (insert " " 2282 (insert " "
@@ -2313,7 +2312,7 @@ command `antlr-show-makefile-rules' for detail."
2313 (if n 2312 (if n
2314 (let ((i 0)) 2313 (let ((i 0))
2315 (antlr-makefile-insert-variable nil "" " =") 2314 (antlr-makefile-insert-variable nil "" " =")
2316 (while (<= (incf i) n) 2315 (while (<= (cl-incf i) n)
2317 (antlr-makefile-insert-variable i " $(" ")")) 2316 (antlr-makefile-insert-variable i " $(" ")"))
2318 (insert "\n" (car antlr-makefile-specification)))) 2317 (insert "\n" (car antlr-makefile-specification))))
2319 (if (string-equal (car antlr-makefile-specification) "\n") 2318 (if (string-equal (car antlr-makefile-specification) "\n")
@@ -2442,8 +2441,8 @@ to a lesser extent, `antlr-tab-offset-alist'."
2442 (goto-char boi) 2441 (goto-char boi)
2443 (unless (symbolp syntax) ; direct indentation 2442 (unless (symbolp syntax) ; direct indentation
2444 ;;(antlr-invalidate-context-cache) 2443 ;;(antlr-invalidate-context-cache)
2445 (incf indent (antlr-syntactic-context)) 2444 (cl-incf indent (antlr-syntactic-context))
2446 (and (> indent 0) (looking-at antlr-indent-item-regexp) (decf indent)) 2445 (and (> indent 0) (looking-at antlr-indent-item-regexp) (cl-decf indent))
2447 (setq indent (* indent c-basic-offset))) 2446 (setq indent (* indent c-basic-offset)))
2448 ;; the usual major-mode indent stuff --------------------------------- 2447 ;; the usual major-mode indent stuff ---------------------------------
2449 (setq orig (- (point-max) orig)) 2448 (setq orig (- (point-max) orig))
diff --git a/lisp/progmodes/idlw-shell.el b/lisp/progmodes/idlw-shell.el
index 1b72eea09eb..dcb81f5a944 100644
--- a/lisp/progmodes/idlw-shell.el
+++ b/lisp/progmodes/idlw-shell.el
@@ -92,7 +92,7 @@
92(require 'comint) 92(require 'comint)
93(require 'idlwave) 93(require 'idlwave)
94 94
95(eval-when-compile (require 'cl)) 95(eval-when-compile (require 'cl-lib))
96 96
97(defvar idlwave-shell-have-new-custom nil) 97(defvar idlwave-shell-have-new-custom nil)
98 98
@@ -2261,12 +2261,12 @@ overlays."
2261(defun idlwave-shell-stack-up () 2261(defun idlwave-shell-stack-up ()
2262 "Display the source code one step up the calling stack." 2262 "Display the source code one step up the calling stack."
2263 (interactive) 2263 (interactive)
2264 (incf idlwave-shell-calling-stack-index) 2264 (cl-incf idlwave-shell-calling-stack-index)
2265 (idlwave-shell-display-level-in-calling-stack 'hide)) 2265 (idlwave-shell-display-level-in-calling-stack 'hide))
2266(defun idlwave-shell-stack-down () 2266(defun idlwave-shell-stack-down ()
2267 "Display the source code one step down the calling stack." 2267 "Display the source code one step down the calling stack."
2268 (interactive) 2268 (interactive)
2269 (decf idlwave-shell-calling-stack-index) 2269 (cl-decf idlwave-shell-calling-stack-index)
2270 (idlwave-shell-display-level-in-calling-stack 'hide)) 2270 (idlwave-shell-display-level-in-calling-stack 'hide))
2271 2271
2272(defun idlwave-shell-goto-frame (&optional frame) 2272(defun idlwave-shell-goto-frame (&optional frame)
@@ -3597,7 +3597,7 @@ Existing overlays are recycled, in order to minimize consumption."
3597 (if ov-alist 3597 (if ov-alist
3598 (while (setq ov-list (pop ov-alist)) 3598 (while (setq ov-list (pop ov-alist))
3599 (while (setq ov (pop (cdr ov-list))) 3599 (while (setq ov (pop (cdr ov-list)))
3600 (pushnew (overlay-buffer ov) old-buffers) 3600 (cl-pushnew (overlay-buffer ov) old-buffers)
3601 (delete-overlay ov)))) 3601 (delete-overlay ov))))
3602 3602
3603 (setq ov-alist idlwave-shell-bp-overlays 3603 (setq ov-alist idlwave-shell-bp-overlays
diff --git a/lisp/progmodes/idlw-toolbar.el b/lisp/progmodes/idlw-toolbar.el
index 7595db98230..75f55827933 100644
--- a/lisp/progmodes/idlw-toolbar.el
+++ b/lisp/progmodes/idlw-toolbar.el
@@ -34,8 +34,6 @@
34 34
35;;; Code: 35;;; Code:
36 36
37(eval-when-compile (require 'cl))
38
39(defun idlwave-toolbar-make-button (image) 37(defun idlwave-toolbar-make-button (image)
40 (if (featurep 'xemacs) 38 (if (featurep 'xemacs)
41 (toolbar-make-button-list image) 39 (toolbar-make-button-list image)
diff --git a/lisp/progmodes/idlwave.el b/lisp/progmodes/idlwave.el
index a1ea6db64f2..540931c9f2f 100644
--- a/lisp/progmodes/idlwave.el
+++ b/lisp/progmodes/idlwave.el
@@ -151,7 +151,7 @@
151;;; Code: 151;;; Code:
152 152
153 153
154(eval-when-compile (require 'cl)) 154(eval-when-compile (require 'cl-lib))
155(require 'idlw-help) 155(require 'idlw-help)
156 156
157;; For XEmacs 157;; For XEmacs
@@ -3898,7 +3898,7 @@ Buffers containing unsaved changes require confirmation before they are killed."
3898 (and (or (memq t reasons) 3898 (and (or (memq t reasons)
3899 (memq (cdr entry) reasons)) 3899 (memq (cdr entry) reasons))
3900 (kill-buffer (car entry)) 3900 (kill-buffer (car entry))
3901 (incf cnt) 3901 (cl-incf cnt)
3902 (setq idlwave-outlawed-buffers 3902 (setq idlwave-outlawed-buffers
3903 (delq entry idlwave-outlawed-buffers))) 3903 (delq entry idlwave-outlawed-buffers)))
3904 (setq idlwave-outlawed-buffers 3904 (setq idlwave-outlawed-buffers
@@ -4104,14 +4104,14 @@ blank lines."
4104 (idlwave-sint-classes 10 10)))) 4104 (idlwave-sint-classes 10 10))))
4105 4105
4106 ;; Make sure these are lists 4106 ;; Make sure these are lists
4107 (loop for entry in entries 4107 (cl-loop for entry in entries
4108 for var = (car entry) 4108 for var = (car entry)
4109 do (if (not (consp (symbol-value var))) (set var (list nil)))) 4109 do (if (not (consp (symbol-value var))) (set var (list nil))))
4110 4110
4111 ;; Reset the system & library hash 4111 ;; Reset the system & library hash
4112 (when (or (eq what t) (eq what 'syslib) 4112 (when (or (eq what t) (eq what 'syslib)
4113 (null (cdr idlwave-sint-routines))) 4113 (null (cdr idlwave-sint-routines)))
4114 (loop for entry in entries 4114 (cl-loop for entry in entries
4115 for var = (car entry) for size = (nth 1 entry) 4115 for var = (car entry) for size = (nth 1 entry)
4116 do (setcdr (symbol-value var) 4116 do (setcdr (symbol-value var)
4117 (make-hash-table ':size size ':test 'equal))) 4117 (make-hash-table ':size size ':test 'equal)))
@@ -4121,7 +4121,7 @@ blank lines."
4121 ;; Reset the buffer & shell hash 4121 ;; Reset the buffer & shell hash
4122 (when (or (eq what t) (eq what 'bufsh) 4122 (when (or (eq what t) (eq what 'bufsh)
4123 (null (car idlwave-sint-routines))) 4123 (null (car idlwave-sint-routines)))
4124 (loop for entry in entries 4124 (cl-loop for entry in entries
4125 for var = (car entry) for size = (nth 1 entry) 4125 for var = (car entry) for size = (nth 1 entry)
4126 do (setcar (symbol-value var) 4126 do (setcar (symbol-value var)
4127 (make-hash-table ':size size ':test 'equal)))))) 4127 (make-hash-table ':size size ':test 'equal))))))
@@ -4680,7 +4680,7 @@ Gets set in cached XML rinfo, or `idlw-rinfo.el'.")
4680 (setq pref-list 4680 (setq pref-list
4681 (if (match-string 1 kwd) '("X" "Y" "Z") '("X" "Y")) 4681 (if (match-string 1 kwd) '("X" "Y" "Z") '("X" "Y"))
4682 kwd (substring kwd (match-end 0))) 4682 kwd (substring kwd (match-end 0)))
4683 (loop for x in pref-list do 4683 (cl-loop for x in pref-list do
4684 (push (list (concat x kwd) klink) kwds))) 4684 (push (list (concat x kwd) klink) kwds)))
4685 (push (list kwd klink) kwds))) 4685 (push (list kwd klink) kwds)))
4686 4686
@@ -4701,7 +4701,7 @@ Gets set in cached XML rinfo, or `idlw-rinfo.el'.")
4701 (cons (substring name 1) link) 4701 (cons (substring name 1) link)
4702 (if extra-kws (setq kwds (nconc kwds extra-kws))) 4702 (if extra-kws (setq kwds (nconc kwds extra-kws)))
4703 (setq kwds (idlwave-rinfo-group-keywords kwds link)) 4703 (setq kwds (idlwave-rinfo-group-keywords kwds link))
4704 (loop for idx from 0 to 1 do 4704 (cl-loop for idx from 0 to 1 do
4705 (if (aref syntax-vec idx) 4705 (if (aref syntax-vec idx)
4706 (push (append (list name (if (eq idx 0) 'pro 'fun) 4706 (push (append (list name (if (eq idx 0) 'pro 'fun)
4707 class '(system) 4707 class '(system)
@@ -4736,7 +4736,7 @@ Gets set in cached XML rinfo, or `idlw-rinfo.el'.")
4736 ;; Clean up the syntax of routines which are actually aliases by 4736 ;; Clean up the syntax of routines which are actually aliases by
4737 ;; removing the "OR" from the statements 4737 ;; removing the "OR" from the statements
4738 (let (syntax entry) 4738 (let (syntax entry)
4739 (loop for x in aliases do 4739 (cl-loop for x in aliases do
4740 (setq entry (assoc x idlwave-system-routines)) 4740 (setq entry (assoc x idlwave-system-routines))
4741 (when entry 4741 (when entry
4742 (while (string-match " +or +" (setq syntax (nth 4 entry))) 4742 (while (string-match " +or +" (setq syntax (nth 4 entry)))
@@ -4746,7 +4746,7 @@ Gets set in cached XML rinfo, or `idlw-rinfo.el'.")
4746 ;; Duplicate and trim original routine aliases from rinfo list 4746 ;; Duplicate and trim original routine aliases from rinfo list
4747 ;; This if for, e.g. OPENR/OPENW/OPENU 4747 ;; This if for, e.g. OPENR/OPENW/OPENU
4748 (let (alias remove-list new parts all-parts) 4748 (let (alias remove-list new parts all-parts)
4749 (loop for x in aliases do 4749 (cl-loop for x in aliases do
4750 (when (setq parts (split-string (cdr x) "/")) 4750 (when (setq parts (split-string (cdr x) "/"))
4751 (setq new (assoc (cdr x) all-parts)) 4751 (setq new (assoc (cdr x) all-parts))
4752 (unless new 4752 (unless new
@@ -4755,30 +4755,30 @@ Gets set in cached XML rinfo, or `idlw-rinfo.el'.")
4755 (setcdr new (delete (car x) (cdr new))))) 4755 (setcdr new (delete (car x) (cdr new)))))
4756 4756
4757 ;; Add any missing aliases (separate by slashes) 4757 ;; Add any missing aliases (separate by slashes)
4758 (loop for x in all-parts do 4758 (cl-loop for x in all-parts do
4759 (if (cdr x) 4759 (if (cdr x)
4760 (push (cons (nth 1 x) (car x)) aliases))) 4760 (push (cons (nth 1 x) (car x)) aliases)))
4761 4761
4762 (loop for x in aliases do 4762 (cl-loop for x in aliases do
4763 (when (setq alias (assoc (cdr x) idlwave-system-routines)) 4763 (when (setq alias (assoc (cdr x) idlwave-system-routines))
4764 (unless (memq alias remove-list) (push alias remove-list)) 4764 (unless (memq alias remove-list) (push alias remove-list))
4765 (setq alias (copy-sequence alias)) 4765 (setq alias (copy-sequence alias))
4766 (setcar alias (car x)) 4766 (setcar alias (car x))
4767 (push alias idlwave-system-routines))) 4767 (push alias idlwave-system-routines)))
4768 (loop for x in remove-list do 4768 (cl-loop for x in remove-list do
4769 (delq x idlwave-system-routines)))) 4769 (delq x idlwave-system-routines))))
4770 4770
4771(defun idlwave-convert-xml-clean-sysvar-aliases (aliases) 4771(defun idlwave-convert-xml-clean-sysvar-aliases (aliases)
4772 ;; Duplicate and trim original routine aliases from rinfo list 4772 ;; Duplicate and trim original routine aliases from rinfo list
4773 ;; This if for, e.g. !X, !Y, !Z. 4773 ;; This if for, e.g. !X, !Y, !Z.
4774 (let (alias remove-list) 4774 (let (alias remove-list)
4775 (loop for x in aliases do 4775 (cl-loop for x in aliases do
4776 (when (setq alias (assoc (cdr x) idlwave-system-variables-alist)) 4776 (when (setq alias (assoc (cdr x) idlwave-system-variables-alist))
4777 (unless (memq alias remove-list) (push alias remove-list)) 4777 (unless (memq alias remove-list) (push alias remove-list))
4778 (setq alias (copy-sequence alias)) 4778 (setq alias (copy-sequence alias))
4779 (setcar alias (car x)) 4779 (setcar alias (car x))
4780 (push alias idlwave-system-variables-alist))) 4780 (push alias idlwave-system-variables-alist)))
4781 (loop for x in remove-list do 4781 (cl-loop for x in remove-list do
4782 (delq x idlwave-system-variables-alist)))) 4782 (delq x idlwave-system-variables-alist))))
4783 4783
4784 4784
@@ -4875,7 +4875,7 @@ Cache to disk for quick recovery."
4875 (while rinfo 4875 (while rinfo
4876 (setq elem (car rinfo) 4876 (setq elem (car rinfo)
4877 rinfo (cdr rinfo)) 4877 rinfo (cdr rinfo))
4878 (incf elem-cnt) 4878 (cl-incf elem-cnt)
4879 (when (listp elem) 4879 (when (listp elem)
4880 (setq type (car elem) 4880 (setq type (car elem)
4881 props (car (cdr elem))) 4881 props (car (cdr elem)))
@@ -5106,7 +5106,7 @@ Cache to disk for quick recovery."
5106 "Return the class alist - make it if necessary." 5106 "Return the class alist - make it if necessary."
5107 (or idlwave-class-alist 5107 (or idlwave-class-alist
5108 (let (class) 5108 (let (class)
5109 (loop for x in idlwave-routines do 5109 (cl-loop for x in idlwave-routines do
5110 (when (and (setq class (nth 2 x)) 5110 (when (and (setq class (nth 2 x))
5111 (not (assq class idlwave-class-alist))) 5111 (not (assq class idlwave-class-alist)))
5112 (push (list class) idlwave-class-alist))) 5112 (push (list class) idlwave-class-alist)))
@@ -6223,7 +6223,7 @@ If yes, return the index (>=1)."
6223 (let (file (cnt 0)) 6223 (let (file (cnt 0))
6224 (catch 'exit 6224 (catch 'exit
6225 (while entries 6225 (while entries
6226 (incf cnt) 6226 (cl-incf cnt)
6227 (setq file (idlwave-routine-source-file (nth 3 (car entries)))) 6227 (setq file (idlwave-routine-source-file (nth 3 (car entries))))
6228 (if (and file (idlwave-syslib-p file)) 6228 (if (and file (idlwave-syslib-p file))
6229 (throw 'exit cnt) 6229 (throw 'exit cnt)
@@ -6520,7 +6520,7 @@ ARROW: Location of the arrow"
6520 (progn (up-list -1) t) 6520 (progn (up-list -1) t)
6521 (error nil)) 6521 (error nil))
6522 (setq pos (point)) 6522 (setq pos (point))
6523 (incf cnt) 6523 (cl-incf cnt)
6524 (when (and (= (following-char) ?\() 6524 (when (and (= (following-char) ?\()
6525 (re-search-backward 6525 (re-search-backward
6526 "\\(::\\|\\<\\)\\([a-zA-Z][a-zA-Z0-9$_]*\\)[ \t]*\\=" 6526 "\\(::\\|\\<\\)\\([a-zA-Z][a-zA-Z0-9$_]*\\)[ \t]*\\="
@@ -8190,7 +8190,7 @@ demand _EXTRA in the keyword list."
8190 (while (setq re (pop regexps)) 8190 (while (setq re (pop regexps))
8191 (if (string-match re name) (throw 'exit t)))))) 8191 (if (string-match re name) (throw 'exit t))))))
8192 8192
8193 (loop for entry in (idlwave-routines) do 8193 (cl-loop for entry in (idlwave-routines) do
8194 (and (nth 2 entry) ; non-nil class 8194 (and (nth 2 entry) ; non-nil class
8195 (memq (nth 2 entry) super-classes) ; an inherited class 8195 (memq (nth 2 entry) super-classes) ; an inherited class
8196 (eq (nth 1 entry) type) ; correct type 8196 (eq (nth 1 entry) type) ; correct type
@@ -8399,7 +8399,7 @@ If we do not know about MODULE, just return KEYWORD literally."
8399 "") 8399 "")
8400 (if (> total 1) "- " "")) 8400 (if (> total 1) "- " ""))
8401 entry props) 8401 entry props)
8402 (incf cnt) 8402 (cl-incf cnt)
8403 (when (and all (> cnt idlwave-rinfo-max-source-lines)) 8403 (when (and all (> cnt idlwave-rinfo-max-source-lines))
8404 ;; No more source lines, please 8404 ;; No more source lines, please
8405 (insert (format 8405 (insert (format
@@ -8707,7 +8707,7 @@ can be used to detect possible name clashes during this process."
8707 (> (idlwave-count-memq 'lib (nth 2 (car dtwins))) 1) 8707 (> (idlwave-count-memq 'lib (nth 2 (car dtwins))) 1)
8708 (> (idlwave-count-memq 'user (nth 2 (car dtwins))) 1) 8708 (> (idlwave-count-memq 'user (nth 2 (car dtwins))) 1)
8709 (> (idlwave-count-memq 'buffer (nth 2 (car dtwins))) 1)) 8709 (> (idlwave-count-memq 'buffer (nth 2 (car dtwins))) 1))
8710 (incf cnt) 8710 (cl-incf cnt)
8711 (insert (format "\n%s%s" 8711 (insert (format "\n%s%s"
8712 (idlwave-make-full-name (nth 2 routine) 8712 (idlwave-make-full-name (nth 2 routine)
8713 (car routine)) 8713 (car routine))
@@ -8776,7 +8776,7 @@ routines, and may have been scanned."
8776 (cnt 0) 8776 (cnt 0)
8777 source type type-cons file alist syslibp key) 8777 source type type-cons file alist syslibp key)
8778 (while (setq entry (pop entries)) 8778 (while (setq entry (pop entries))
8779 (incf cnt) 8779 (cl-incf cnt)
8780 (setq source (nth 3 entry) 8780 (setq source (nth 3 entry)
8781 type (car source) 8781 type (car source)
8782 type-cons (cons type (nth 3 source)) 8782 type-cons (cons type (nth 3 source))