aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2018-03-23 16:13:40 -0400
committerGlenn Morris2018-03-23 16:14:48 -0400
commit3a34c076b9986b1b09fa8c56e9dbda19819da381 (patch)
treea90f8363e111a2dca38686d6d38627e869cee68a
parent4a05f85f5a0cde3d21fb40d2617c944b09a977cd (diff)
downloademacs-3a34c076b9986b1b09fa8c56e9dbda19819da381.tar.gz
emacs-3a34c076b9986b1b09fa8c56e9dbda19819da381.zip
cedet: replace cl with cl-lib
* lisp/cedet/ede/linux.el, lisp/cedet/semantic/decorate/mode.el: * lisp/cedet/semantic/wisent/comp.el: Replace cl with cl-lib. * lisp/cedet/cedet.el, lisp/cedet/mode-local.el: * lisp/cedet/ede/dired.el, lisp/cedet/ede/pmake.el: * lisp/cedet/ede/proj-comp.el, lisp/cedet/ede/proj-misc.el: * lisp/cedet/ede/proj-obj.el, lisp/cedet/ede/proj-prog.el: * lisp/cedet/ede/speedbar.el, lisp/cedet/semantic/analyze.el: * lisp/cedet/semantic/complete.el: * lisp/cedet/semantic/mru-bookmark.el, lisp/cedet/semantic/debug.el: * lisp/cedet/semantic/wisent/python.el: * lisp/cedet/srecode/compile.el, lisp/cedet/srecode/dictionary.el: * lisp/cedet/srecode/srt.el: No need for cl.
-rw-r--r--lisp/cedet/cedet.el3
-rw-r--r--lisp/cedet/ede/dired.el5
-rw-r--r--lisp/cedet/ede/linux.el8
-rw-r--r--lisp/cedet/ede/pmake.el1
-rw-r--r--lisp/cedet/ede/proj-comp.el1
-rw-r--r--lisp/cedet/ede/proj-misc.el1
-rw-r--r--lisp/cedet/ede/proj-obj.el1
-rw-r--r--lisp/cedet/ede/proj-prog.el1
-rw-r--r--lisp/cedet/ede/speedbar.el1
-rw-r--r--lisp/cedet/mode-local.el2
-rw-r--r--lisp/cedet/semantic/analyze.el1
-rw-r--r--lisp/cedet/semantic/complete.el1
-rw-r--r--lisp/cedet/semantic/debug.el1
-rw-r--r--lisp/cedet/semantic/decorate/mode.el12
-rw-r--r--lisp/cedet/semantic/mru-bookmark.el1
-rw-r--r--lisp/cedet/semantic/wisent/comp.el6
-rw-r--r--lisp/cedet/semantic/wisent/python.el5
-rw-r--r--lisp/cedet/srecode/compile.el1
-rw-r--r--lisp/cedet/srecode/dictionary.el1
-rw-r--r--lisp/cedet/srecode/srt.el1
20 files changed, 17 insertions, 37 deletions
diff --git a/lisp/cedet/cedet.el b/lisp/cedet/cedet.el
index 216b0edeb69..34a4d992762 100644
--- a/lisp/cedet/cedet.el
+++ b/lisp/cedet/cedet.el
@@ -30,9 +30,6 @@
30;; load them all by doing (require 'cedet). This is mostly for 30;; load them all by doing (require 'cedet). This is mostly for
31;; compatibility with the upstream, stand-alone CEDET distribution. 31;; compatibility with the upstream, stand-alone CEDET distribution.
32 32
33(eval-when-compile
34 (require 'cl))
35
36(declare-function inversion-find-version "inversion") 33(declare-function inversion-find-version "inversion")
37 34
38(defconst cedet-version "2.0" 35(defconst cedet-version "2.0"
diff --git a/lisp/cedet/ede/dired.el b/lisp/cedet/ede/dired.el
index 4c21cf44ef6..33afc7e5473 100644
--- a/lisp/cedet/ede/dired.el
+++ b/lisp/cedet/ede/dired.el
@@ -27,12 +27,13 @@
27;; This provides a dired interface to EDE, allowing users to modify 27;; This provides a dired interface to EDE, allowing users to modify
28;; their project file by adding files (or whatever) directly from a 28;; their project file by adding files (or whatever) directly from a
29;; dired buffer. 29;; dired buffer.
30(eval-when-compile (require 'cl)) 30
31;;; Code:
32
31(require 'easymenu) 33(require 'easymenu)
32(require 'dired) 34(require 'dired)
33(require 'ede) 35(require 'ede)
34 36
35;;; Code:
36(defvar ede-dired-keymap 37(defvar ede-dired-keymap
37 (let ((map (make-sparse-keymap))) 38 (let ((map (make-sparse-keymap)))
38 (define-key map ".a" 'ede-dired-add-to-target) 39 (define-key map ".a" 'ede-dired-add-to-target)
diff --git a/lisp/cedet/ede/linux.el b/lisp/cedet/ede/linux.el
index 84ce7ee6ef9..cb5e739717d 100644
--- a/lisp/cedet/ede/linux.el
+++ b/lisp/cedet/ede/linux.el
@@ -34,7 +34,7 @@
34 34
35(require 'ede) 35(require 'ede)
36(require 'ede/make) 36(require 'ede/make)
37(eval-when-compile (require 'cl)) 37(eval-when-compile (require 'cl-lib))
38 38
39(declare-function semanticdb-file-table-object "semantic/db") 39(declare-function semanticdb-file-table-object "semantic/db")
40(declare-function semanticdb-needs-refresh-p "semantic/db") 40(declare-function semanticdb-needs-refresh-p "semantic/db")
@@ -115,7 +115,7 @@ If DIR has not been used as a build directory, fall back to
115 ;; detected build on source directory 115 ;; detected build on source directory
116 (and (file-exists-p (expand-file-name ".config" dir)) dir) 116 (and (file-exists-p (expand-file-name ".config" dir)) dir)
117 ;; use configuration 117 ;; use configuration
118 (case project-linux-build-directory-default 118 (cl-case project-linux-build-directory-default
119 (same dir) 119 (same dir)
120 (ask (read-directory-name "Select Linux' build directory: " dir))))) 120 (ask (read-directory-name "Select Linux' build directory: " dir)))))
121 121
@@ -164,7 +164,7 @@ Uses `ede-linux--detect-architecture' for the auto-detection. If
164the result is `ask', let the user choose from architectures found 164the result is `ask', let the user choose from architectures found
165in DIR." 165in DIR."
166 (let ((arch (ede-linux--detect-architecture bdir))) 166 (let ((arch (ede-linux--detect-architecture bdir)))
167 (case arch 167 (cl-case arch
168 (ask 168 (ask
169 (completing-read "Select target architecture: " 169 (completing-read "Select target architecture: "
170 (ede-linux--get-archs dir))) 170 (ede-linux--get-archs dir)))
@@ -175,7 +175,7 @@ in DIR."
175 "Returns a list with include directories. 175 "Returns a list with include directories.
176Returned directories might not exist, since they are not created 176Returned directories might not exist, since they are not created
177until Linux is built for the first time." 177until Linux is built for the first time."
178 (map 'list 178 (cl-map 'list
179 (lambda (elem) (format (concat (car elem) "/" (cdr elem)) arch)) 179 (lambda (elem) (format (concat (car elem) "/" (cdr elem)) arch))
180 ;; XXX: taken from the output of "make V=1" 180 ;; XXX: taken from the output of "make V=1"
181 (list (cons dir "arch/%s/include") 181 (list (cons dir "arch/%s/include")
diff --git a/lisp/cedet/ede/pmake.el b/lisp/cedet/ede/pmake.el
index 22aa25a4a73..f0f07e9043f 100644
--- a/lisp/cedet/ede/pmake.el
+++ b/lisp/cedet/ede/pmake.el
@@ -43,7 +43,6 @@
43;; 1) Insert distribution source variables for targets 43;; 1) Insert distribution source variables for targets
44;; 2) Insert user requested rules 44;; 2) Insert user requested rules
45 45
46(eval-when-compile (require 'cl))
47(require 'ede/proj) 46(require 'ede/proj)
48(require 'ede/proj-obj) 47(require 'ede/proj-obj)
49(require 'ede/proj-comp) 48(require 'ede/proj-comp)
diff --git a/lisp/cedet/ede/proj-comp.el b/lisp/cedet/ede/proj-comp.el
index 3d390bda46d..fc7205f940d 100644
--- a/lisp/cedet/ede/proj-comp.el
+++ b/lisp/cedet/ede/proj-comp.el
@@ -44,7 +44,6 @@
44;; To write a method that inserts a variable or rule for a compiler 44;; To write a method that inserts a variable or rule for a compiler
45;; based object, wrap the body of your call in `ede-compiler-only-once' 45;; based object, wrap the body of your call in `ede-compiler-only-once'
46 46
47(eval-when-compile (require 'cl))
48(require 'ede) ;source object 47(require 'ede) ;source object
49(require 'ede/autoconf-edit) 48(require 'ede/autoconf-edit)
50 49
diff --git a/lisp/cedet/ede/proj-misc.el b/lisp/cedet/ede/proj-misc.el
index 7bc02faccaf..d1a8fce78f1 100644
--- a/lisp/cedet/ede/proj-misc.el
+++ b/lisp/cedet/ede/proj-misc.el
@@ -26,7 +26,6 @@
26;; This misc target lets the user link in custom makefiles to an EDE 26;; This misc target lets the user link in custom makefiles to an EDE
27;; project. 27;; project.
28 28
29(eval-when-compile (require 'cl))
30(require 'ede/pmake) 29(require 'ede/pmake)
31(require 'ede/proj-comp) 30(require 'ede/proj-comp)
32 31
diff --git a/lisp/cedet/ede/proj-obj.el b/lisp/cedet/ede/proj-obj.el
index b087c29cfe6..c6c52ed474e 100644
--- a/lisp/cedet/ede/proj-obj.el
+++ b/lisp/cedet/ede/proj-obj.el
@@ -26,7 +26,6 @@
26;; Handles a superclass of target types which create object code in 26;; Handles a superclass of target types which create object code in
27;; and EDE Project file. 27;; and EDE Project file.
28 28
29(eval-when-compile (require 'cl))
30(require 'ede/proj) 29(require 'ede/proj)
31(declare-function ede-pmake-varname "ede/pmake") 30(declare-function ede-pmake-varname "ede/pmake")
32 31
diff --git a/lisp/cedet/ede/proj-prog.el b/lisp/cedet/ede/proj-prog.el
index ce1978c618f..215b7914a52 100644
--- a/lisp/cedet/ede/proj-prog.el
+++ b/lisp/cedet/ede/proj-prog.el
@@ -25,7 +25,6 @@
25;; 25;;
26;; Handle building programs from object files in and EDE Project file. 26;; Handle building programs from object files in and EDE Project file.
27 27
28(eval-when-compile (require 'cl))
29(require 'ede/pmake) 28(require 'ede/pmake)
30(require 'ede/proj-obj) 29(require 'ede/proj-obj)
31 30
diff --git a/lisp/cedet/ede/speedbar.el b/lisp/cedet/ede/speedbar.el
index 99fe4a5562c..353bec23575 100644
--- a/lisp/cedet/ede/speedbar.el
+++ b/lisp/cedet/ede/speedbar.el
@@ -28,7 +28,6 @@
28 28
29;;; Code: 29;;; Code:
30 30
31(eval-when-compile (require 'cl))
32(require 'speedbar) 31(require 'speedbar)
33(require 'eieio-speedbar) 32(require 'eieio-speedbar)
34(require 'ede) 33(require 'ede)
diff --git a/lisp/cedet/mode-local.el b/lisp/cedet/mode-local.el
index 7f175f2d57e..1cd306b89b9 100644
--- a/lisp/cedet/mode-local.el
+++ b/lisp/cedet/mode-local.el
@@ -46,8 +46,6 @@
46 46
47;;; Code: 47;;; Code:
48 48
49(eval-when-compile (require 'cl))
50
51(require 'find-func) 49(require 'find-func)
52;; For find-function-regexp-alist. It is tempting to replace this 50;; For find-function-regexp-alist. It is tempting to replace this
53;; ‘require’ by (defvar find-function-regexp-alist) and 51;; ‘require’ by (defvar find-function-regexp-alist) and
diff --git a/lisp/cedet/semantic/analyze.el b/lisp/cedet/semantic/analyze.el
index 625982f2c76..2c50722813d 100644
--- a/lisp/cedet/semantic/analyze.el
+++ b/lisp/cedet/semantic/analyze.el
@@ -63,7 +63,6 @@
63;; constant. These need to be returned as there would be no 63;; constant. These need to be returned as there would be no
64;; other possible completions. 64;; other possible completions.
65 65
66(eval-when-compile (require 'cl))
67(require 'semantic) 66(require 'semantic)
68(require 'semantic/format) 67(require 'semantic/format)
69(require 'semantic/ctxt) 68(require 'semantic/ctxt)
diff --git a/lisp/cedet/semantic/complete.el b/lisp/cedet/semantic/complete.el
index baea2261e5d..eb25f114279 100644
--- a/lisp/cedet/semantic/complete.el
+++ b/lisp/cedet/semantic/complete.el
@@ -106,7 +106,6 @@
106;; `semantic-complete-inline-tag-engine' will complete text in 106;; `semantic-complete-inline-tag-engine' will complete text in
107;; a buffer. 107;; a buffer.
108 108
109(eval-when-compile (require 'cl))
110(require 'semantic) 109(require 'semantic)
111(require 'eieio-opt) 110(require 'eieio-opt)
112(require 'semantic/analyze) 111(require 'semantic/analyze)
diff --git a/lisp/cedet/semantic/debug.el b/lisp/cedet/semantic/debug.el
index 4f05e599798..3c71c209576 100644
--- a/lisp/cedet/semantic/debug.el
+++ b/lisp/cedet/semantic/debug.el
@@ -36,7 +36,6 @@
36;; Each parser must implement the interface and override any methods as needed. 36;; Each parser must implement the interface and override any methods as needed.
37;; 37;;
38 38
39(eval-when-compile (require 'cl))
40(require 'semantic) 39(require 'semantic)
41(require 'eieio) 40(require 'eieio)
42(require 'cl-generic) 41(require 'cl-generic)
diff --git a/lisp/cedet/semantic/decorate/mode.el b/lisp/cedet/semantic/decorate/mode.el
index ea3d63d21bc..100e221ce31 100644
--- a/lisp/cedet/semantic/decorate/mode.el
+++ b/lisp/cedet/semantic/decorate/mode.el
@@ -35,7 +35,7 @@
35;; 35;;
36 36
37;;; Code: 37;;; Code:
38(eval-when-compile (require 'cl)) 38(eval-when-compile (require 'cl-lib))
39(require 'semantic) 39(require 'semantic)
40(require 'semantic/decorate) 40(require 'semantic/decorate)
41(require 'semantic/tag-ls) 41(require 'semantic/tag-ls)
@@ -82,13 +82,13 @@ add items to this list."
82(defsubst semantic-decoration-set-property (deco property value) 82(defsubst semantic-decoration-set-property (deco property value)
83 "Set the DECO decoration's PROPERTY to VALUE. 83 "Set the DECO decoration's PROPERTY to VALUE.
84Return DECO." 84Return DECO."
85 (assert (semantic-decoration-p deco)) 85 (cl-assert (semantic-decoration-p deco))
86 (semantic-overlay-put deco property value) 86 (semantic-overlay-put deco property value)
87 deco) 87 deco)
88 88
89(defsubst semantic-decoration-get-property (deco property) 89(defsubst semantic-decoration-get-property (deco property)
90 "Return the DECO decoration's PROPERTY value." 90 "Return the DECO decoration's PROPERTY value."
91 (assert (semantic-decoration-p deco)) 91 (cl-assert (semantic-decoration-p deco))
92 (semantic-overlay-get deco property)) 92 (semantic-overlay-get deco property))
93 93
94(defsubst semantic-decoration-set-face (deco face) 94(defsubst semantic-decoration-set-face (deco face)
@@ -103,7 +103,7 @@ Return DECO."
103(defsubst semantic-decoration-set-priority (deco priority) 103(defsubst semantic-decoration-set-priority (deco priority)
104 "Set the priority of the decoration DECO to PRIORITY. 104 "Set the priority of the decoration DECO to PRIORITY.
105Return DECO." 105Return DECO."
106 (assert (natnump priority)) 106 (cl-assert (natnump priority))
107 (semantic-decoration-set-property deco 'priority priority)) 107 (semantic-decoration-set-property deco 'priority priority))
108 108
109(defsubst semantic-decoration-priority (deco) 109(defsubst semantic-decoration-priority (deco)
@@ -113,7 +113,7 @@ Return DECO."
113(defsubst semantic-decoration-move (deco begin end) 113(defsubst semantic-decoration-move (deco begin end)
114 "Move the decoration DECO on the region between BEGIN and END. 114 "Move the decoration DECO on the region between BEGIN and END.
115Return DECO." 115Return DECO."
116 (assert (semantic-decoration-p deco)) 116 (cl-assert (semantic-decoration-p deco))
117 (semantic-overlay-move deco begin end) 117 (semantic-overlay-move deco begin end)
118 deco) 118 deco)
119 119
@@ -135,7 +135,7 @@ Return the overlay that makes up the new decoration."
135(defun semantic-decorate-clear-tag (tag &optional deco) 135(defun semantic-decorate-clear-tag (tag &optional deco)
136 "Remove decorations from TAG. 136 "Remove decorations from TAG.
137If optional argument DECO is non-nil, remove only that decoration." 137If optional argument DECO is non-nil, remove only that decoration."
138 (assert (or (null deco) (semantic-decoration-p deco))) 138 (cl-assert (or (null deco) (semantic-decoration-p deco)))
139 ;; Clear primary decorations. 139 ;; Clear primary decorations.
140 ;; For now, just unhighlight the tag. How to deal with other 140 ;; For now, just unhighlight the tag. How to deal with other
141 ;; primary decorations like invisibility, etc. ? Maybe just 141 ;; primary decorations like invisibility, etc. ? Maybe just
diff --git a/lisp/cedet/semantic/mru-bookmark.el b/lisp/cedet/semantic/mru-bookmark.el
index 80844494c43..ad630148909 100644
--- a/lisp/cedet/semantic/mru-bookmark.el
+++ b/lisp/cedet/semantic/mru-bookmark.el
@@ -45,7 +45,6 @@
45 45
46;;; Code: 46;;; Code:
47 47
48(eval-when-compile (require 'cl))
49(require 'semantic) 48(require 'semantic)
50(require 'eieio-base) 49(require 'eieio-base)
51(require 'ring) 50(require 'ring)
diff --git a/lisp/cedet/semantic/wisent/comp.el b/lisp/cedet/semantic/wisent/comp.el
index 1902006ee5b..837222ad4b1 100644
--- a/lisp/cedet/semantic/wisent/comp.el
+++ b/lisp/cedet/semantic/wisent/comp.el
@@ -41,7 +41,7 @@
41 41
42;;; Code: 42;;; Code:
43(require 'semantic/wisent) 43(require 'semantic/wisent)
44(eval-when-compile (require 'cl)) 44(eval-when-compile (require 'cl-lib))
45 45
46;;;; ------------------- 46;;;; -------------------
47;;;; Misc. useful things 47;;;; Misc. useful things
@@ -2906,7 +2906,7 @@ references found in BODY, and XBODY is BODY expression with
2906 (progn 2906 (progn
2907 (if (wisent-check-$N body n) 2907 (if (wisent-check-$N body n)
2908 ;; Accumulate $i symbol 2908 ;; Accumulate $i symbol
2909 (pushnew body found :test #'equal)) 2909 (cl-pushnew body found :test #'equal))
2910 (cons found body)) 2910 (cons found body))
2911 ;; BODY is a list, expand inside it 2911 ;; BODY is a list, expand inside it
2912 (let (xbody sexpr) 2912 (let (xbody sexpr)
@@ -2926,7 +2926,7 @@ references found in BODY, and XBODY is BODY expression with
2926 ;; $i symbol 2926 ;; $i symbol
2927 ((wisent-check-$N sexpr n) 2927 ((wisent-check-$N sexpr n)
2928 ;; Accumulate $i symbol 2928 ;; Accumulate $i symbol
2929 (pushnew sexpr found :test #'equal)) 2929 (cl-pushnew sexpr found :test #'equal))
2930 ) 2930 )
2931 ;; Accumulate expanded forms 2931 ;; Accumulate expanded forms
2932 (setq xbody (nconc xbody (list sexpr)))) 2932 (setq xbody (nconc xbody (list sexpr))))
diff --git a/lisp/cedet/semantic/wisent/python.el b/lisp/cedet/semantic/wisent/python.el
index db2d7c96083..f7944fe539b 100644
--- a/lisp/cedet/semantic/wisent/python.el
+++ b/lisp/cedet/semantic/wisent/python.el
@@ -41,9 +41,6 @@
41(require 'semantic/ctxt) 41(require 'semantic/ctxt)
42(require 'semantic/format) 42(require 'semantic/format)
43 43
44(eval-when-compile
45 (require 'cl))
46
47;;; Customization 44;;; Customization
48;; 45;;
49 46
@@ -358,7 +355,7 @@ Set attributes for constructors, special, private and static methods."
358 ;; + first argument is self 355 ;; + first argument is self
359 (when (and (> (length (semantic-tag-function-arguments tag)) 0) 356 (when (and (> (length (semantic-tag-function-arguments tag)) 0)
360 (string= (semantic-tag-name 357 (string= (semantic-tag-name
361 (first (semantic-tag-function-arguments tag))) 358 (car (semantic-tag-function-arguments tag)))
362 "self")) 359 "self"))
363 (semantic-tag-put-attribute tag :parent "dummy")) 360 (semantic-tag-put-attribute tag :parent "dummy"))
364 361
diff --git a/lisp/cedet/srecode/compile.el b/lisp/cedet/srecode/compile.el
index 69282c1a0dd..a0a53a6473a 100644
--- a/lisp/cedet/srecode/compile.el
+++ b/lisp/cedet/srecode/compile.el
@@ -31,7 +31,6 @@
31;; The output are a series of EIEIO objects which represent the 31;; The output are a series of EIEIO objects which represent the
32;; templates in a way that could be inserted later. 32;; templates in a way that could be inserted later.
33 33
34(eval-when-compile (require 'cl))
35(require 'semantic) 34(require 'semantic)
36(require 'eieio) 35(require 'eieio)
37(require 'cl-generic) 36(require 'cl-generic)
diff --git a/lisp/cedet/srecode/dictionary.el b/lisp/cedet/srecode/dictionary.el
index f1287f68022..a2410becb02 100644
--- a/lisp/cedet/srecode/dictionary.el
+++ b/lisp/cedet/srecode/dictionary.el
@@ -28,7 +28,6 @@
28 28
29;;; CLASSES 29;;; CLASSES
30 30
31(eval-when-compile (require 'cl))
32(require 'eieio) 31(require 'eieio)
33(require 'cl-generic) 32(require 'cl-generic)
34(require 'srecode) 33(require 'srecode)
diff --git a/lisp/cedet/srecode/srt.el b/lisp/cedet/srecode/srt.el
index 3bae20e3554..fdabdc4c8ed 100644
--- a/lisp/cedet/srecode/srt.el
+++ b/lisp/cedet/srecode/srt.el
@@ -25,7 +25,6 @@
25 25
26;;; Code: 26;;; Code:
27 27
28(eval-when-compile (require 'cl))
29(require 'eieio) 28(require 'eieio)
30(require 'srecode/dictionary) 29(require 'srecode/dictionary)
31(require 'srecode/insert) 30(require 'srecode/insert)