diff options
| author | Lars Ingebrigtsen <larsi@gnus.org> | 2019-06-14 15:47:54 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen <larsi@gnus.org> | 2019-06-14 15:47:54 +0200 |
| commit | 5b525f4f56f458d88b66be73cae2d1fc5b382db4 (patch) | |
| tree | fd81f7d294951ad81ff0f0e2120cf0e4ad24f244 /lisp/cedet/srecode | |
| parent | 9fac0e70e3f5b7d0b12b77cac50078e01f68ee70 (diff) | |
| download | emacs-5b525f4f56f458d88b66be73cae2d1fc5b382db4.tar.gz | |
Use cl-typep instead of obsolete predicate functions throughout cedet
* lisp/cedet/srecode/dictionary.el (srecode-create-dictionary):
(srecode-dictionary-add-entries):
(srecode-compound-toString):
(srecode-dump):
* lisp/cedet/srecode/compile.el (srecode-dump-code-list):
* lisp/cedet/semantic/util.el (semantic-something-to-tag-table):
* lisp/cedet/semantic/db-typecache.el (semanticdb-typecache-length):
* lisp/cedet/semantic/db-ref.el (semanticdb-check-references):
* lisp/cedet/semantic/db-find.el
(semanticdb-find-incomplete-cache-entries-p):
(semanticdb-find-translate-path-includes-default):
(semanticdb-find-results-p):
(semanticdb-find-result-with-nil-p):
* lisp/cedet/semantic/analyze/complete.el
(semantic-analyze-possible-completions): Use cl-typep instead of
functions like `srecode-dictionary-compound-value-child-p' etc.
Diffstat (limited to 'lisp/cedet/srecode')
| -rw-r--r-- | lisp/cedet/srecode/compile.el | 2 | ||||
| -rw-r--r-- | lisp/cedet/srecode/dictionary.el | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lisp/cedet/srecode/compile.el b/lisp/cedet/srecode/compile.el index 586ed0ab0e8..834cbff6032 100644 --- a/lisp/cedet/srecode/compile.el +++ b/lisp/cedet/srecode/compile.el @@ -617,7 +617,7 @@ Argument INDENT specifies the indentation level for the list." (princ ") ") (cond ((stringp (car code)) (prin1 (car code))) - ((srecode-template-inserter-child-p (car code)) + ((cl-typep (car code) 'srecode-template-inserter) (srecode-dump (car code) indent)) (t (princ "Unknown Code: ") diff --git a/lisp/cedet/srecode/dictionary.el b/lisp/cedet/srecode/dictionary.el index 63635e5ccda..1058024d457 100644 --- a/lisp/cedet/srecode/dictionary.el +++ b/lisp/cedet/srecode/dictionary.el @@ -172,7 +172,7 @@ associated with a buffer or parent." initfrombuff t)) ;; Parent is another dictionary - ((srecode-dictionary-child-p buffer-or-parent) + ((cl-typep buffer-or-parent 'srecode-dictionary) (setq parent buffer-or-parent buffer (oref buffer-or-parent buffer) origin (concat (eieio-object-name buffer-or-parent) " in " @@ -356,7 +356,7 @@ values but STATE is nil." (srecode-dictionary-set-value dict name value)) ;; Value is a dictionary; insert as child dictionary. - ((srecode-dictionary-child-p value) + ((cl-typep value 'srecode-dictionary) (srecode-dictionary-merge (srecode-dictionary-add-section-dictionary dict name) value t)) @@ -523,7 +523,7 @@ inserted with a new editable field.") ;; No default value. ((not dv) (insert name)) ;; A compound value as the default? Recurse. - ((srecode-dictionary-compound-value-child-p dv) + ((cl-typep dv 'srecode-dictionary-compound-value) (srecode-compound-toString dv function dictionary)) ;; A string that is empty? Use the name. ((and (stringp dv) (string= dv "")) @@ -659,7 +659,7 @@ STATE is the current compiler state." )) (princ "\n") ) - ((srecode-dictionary-compound-value-child-p entry) + ((cl-typep entry 'srecode-dictionary-compound-value) (srecode-dump entry indent) (princ "\n") ) |
