diff options
| author | Lars Ingebrigtsen | 2019-06-14 15:47:54 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-06-14 15:47:54 +0200 |
| commit | 5b525f4f56f458d88b66be73cae2d1fc5b382db4 (patch) | |
| tree | fd81f7d294951ad81ff0f0e2120cf0e4ad24f244 /lisp/cedet/srecode | |
| parent | 9fac0e70e3f5b7d0b12b77cac50078e01f68ee70 (diff) | |
| download | emacs-5b525f4f56f458d88b66be73cae2d1fc5b382db4.tar.gz emacs-5b525f4f56f458d88b66be73cae2d1fc5b382db4.zip | |
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." | |||
| 617 | (princ ") ") | 617 | (princ ") ") |
| 618 | (cond ((stringp (car code)) | 618 | (cond ((stringp (car code)) |
| 619 | (prin1 (car code))) | 619 | (prin1 (car code))) |
| 620 | ((srecode-template-inserter-child-p (car code)) | 620 | ((cl-typep (car code) 'srecode-template-inserter) |
| 621 | (srecode-dump (car code) indent)) | 621 | (srecode-dump (car code) indent)) |
| 622 | (t | 622 | (t |
| 623 | (princ "Unknown Code: ") | 623 | (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." | |||
| 172 | initfrombuff t)) | 172 | initfrombuff t)) |
| 173 | 173 | ||
| 174 | ;; Parent is another dictionary | 174 | ;; Parent is another dictionary |
| 175 | ((srecode-dictionary-child-p buffer-or-parent) | 175 | ((cl-typep buffer-or-parent 'srecode-dictionary) |
| 176 | (setq parent buffer-or-parent | 176 | (setq parent buffer-or-parent |
| 177 | buffer (oref buffer-or-parent buffer) | 177 | buffer (oref buffer-or-parent buffer) |
| 178 | origin (concat (eieio-object-name buffer-or-parent) " in " | 178 | origin (concat (eieio-object-name buffer-or-parent) " in " |
| @@ -356,7 +356,7 @@ values but STATE is nil." | |||
| 356 | (srecode-dictionary-set-value dict name value)) | 356 | (srecode-dictionary-set-value dict name value)) |
| 357 | 357 | ||
| 358 | ;; Value is a dictionary; insert as child dictionary. | 358 | ;; Value is a dictionary; insert as child dictionary. |
| 359 | ((srecode-dictionary-child-p value) | 359 | ((cl-typep value 'srecode-dictionary) |
| 360 | (srecode-dictionary-merge | 360 | (srecode-dictionary-merge |
| 361 | (srecode-dictionary-add-section-dictionary dict name) | 361 | (srecode-dictionary-add-section-dictionary dict name) |
| 362 | value t)) | 362 | value t)) |
| @@ -523,7 +523,7 @@ inserted with a new editable field.") | |||
| 523 | ;; No default value. | 523 | ;; No default value. |
| 524 | ((not dv) (insert name)) | 524 | ((not dv) (insert name)) |
| 525 | ;; A compound value as the default? Recurse. | 525 | ;; A compound value as the default? Recurse. |
| 526 | ((srecode-dictionary-compound-value-child-p dv) | 526 | ((cl-typep dv 'srecode-dictionary-compound-value) |
| 527 | (srecode-compound-toString dv function dictionary)) | 527 | (srecode-compound-toString dv function dictionary)) |
| 528 | ;; A string that is empty? Use the name. | 528 | ;; A string that is empty? Use the name. |
| 529 | ((and (stringp dv) (string= dv "")) | 529 | ((and (stringp dv) (string= dv "")) |
| @@ -659,7 +659,7 @@ STATE is the current compiler state." | |||
| 659 | )) | 659 | )) |
| 660 | (princ "\n") | 660 | (princ "\n") |
| 661 | ) | 661 | ) |
| 662 | ((srecode-dictionary-compound-value-child-p entry) | 662 | ((cl-typep entry 'srecode-dictionary-compound-value) |
| 663 | (srecode-dump entry indent) | 663 | (srecode-dump entry indent) |
| 664 | (princ "\n") | 664 | (princ "\n") |
| 665 | ) | 665 | ) |