diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2017-02-23 21:19:20 -0500 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2017-02-23 21:19:20 -0500 |
commit | f1f17265c9b029929a2f52d206cff0e943690847 (patch) | |
tree | 42630dbb9ad81a5fabe2010388d779cab870972e | |
parent | dee8674414fae2323fd9cbf05aa762e72fa575e5 (diff) | |
download | emacs-f1f17265c9b029929a2f52d206cff0e943690847.tar.gz |
Fix left over uses of `call-next-method'
* lisp/cedet/semantic/db-global.el (object-print):
* lisp/cedet/semantic/db.el (object-print): Use `cl-call-next-method'.
-rw-r--r-- | lisp/cedet/semantic/db-global.el | 2 | ||||
-rw-r--r-- | lisp/cedet/semantic/db.el | 23 |
2 files changed, 13 insertions, 12 deletions
diff --git a/lisp/cedet/semantic/db-global.el b/lisp/cedet/semantic/db-global.el index 8cb9dab5aaa..61af619b292 100644 --- a/lisp/cedet/semantic/db-global.el +++ b/lisp/cedet/semantic/db-global.el @@ -115,7 +115,7 @@ if optional DONT-ERR-IF-NOT-AVAILABLE is non-nil; else throw an error." (cl-defmethod object-print ((obj semanticdb-table-global) &rest strings) "Pretty printer extension for `semanticdb-table-global'. Adds the number of tags in this file to the object print name." - (apply 'call-next-method obj (cons " (proxy)" strings))) + (apply #'cl-call-next-method obj (cons " (proxy)" strings))) (cl-defmethod semanticdb-equivalent-mode ((table semanticdb-table-global) &optional buffer) "Return t, pretend that this table's mode is equivalent to BUFFER. diff --git a/lisp/cedet/semantic/db.el b/lisp/cedet/semantic/db.el index d9eef326161..0ba9f2f9c68 100644 --- a/lisp/cedet/semantic/db.el +++ b/lisp/cedet/semantic/db.el @@ -180,7 +180,7 @@ Adds the number of tags in this file to the object print name." ;; Else, add a tags quantifier. (cl-call-next-method obj (format " (%d tags)" (length (semanticdb-get-tags obj)))) ;; Pass through. - (apply 'call-next-method obj strings) + (apply #'cl-call-next-method obj strings) )) ;;; Index Cache @@ -324,9 +324,10 @@ If OBJ's file is not loaded, read it in first." (cl-defmethod object-print ((obj semanticdb-table) &rest strings) "Pretty printer extension for `semanticdb-table'. Adds the number of tags in this file to the object print name." - (apply 'call-next-method obj - (cons (format " (%d tags)" (length (semanticdb-get-tags obj))) - (cons (if (oref obj dirty) ", DIRTY" "") strings)))) + (apply #'cl-call-next-method obj + (format " (%d tags)" (length (semanticdb-get-tags obj))) + (if (oref obj dirty) ", DIRTY" "") + strings)) ;;; DATABASE BASE CLASS ;; @@ -382,13 +383,13 @@ where it may need to resynchronize with some persistent storage." (cl-defmethod object-print ((obj semanticdb-project-database) &rest strings) "Pretty printer extension for `semanticdb-project-database'. Adds the number of tables in this file to the object print name." - (apply 'call-next-method obj - (cons (format " (%d tables%s)" - (length (semanticdb-get-database-tables obj)) - (if (semanticdb-dirty-p obj) - " DIRTY" "") - ) - strings))) + (apply #'cl-call-next-method obj + (format " (%d tables%s)" + (length (semanticdb-get-database-tables obj)) + (if (semanticdb-dirty-p obj) + " DIRTY" "") + ) + strings)) (cl-defmethod semanticdb-create-database ((dbc (subclass semanticdb-project-database)) directory) "Create a new semantic database of class DBC for DIRECTORY and return it. |