"In TABLE, find all occurrences of tags with NAME.
Optional argument TAGS is a list of tags to search.
Returns a table of all matching tags."
- (semantic-find-tags-by-name name (or tags (semanticdb-get-tags table))))
+ (semantic-find-tags-by-name name
+ (or tags (and (slot-boundp table 'tags)
+ (semanticdb-get-tags table)))))
(cl-defmethod semanticdb-find-tags-by-name-regexp-method ((table semanticdb-abstract-table) regexp &optional tags)
"In TABLE, find all occurrences of tags matching REGEXP.
Optional argument TAGS is a list of tags to search.
Returns a table of all matching tags."
- (semantic-find-tags-by-name-regexp regexp (or tags (semanticdb-get-tags table))))
+ (semantic-find-tags-by-name-regexp regexp
+ (or tags (and (slot-boundp table 'tags)
+ (semanticdb-get-tags table)))))
(cl-defmethod semanticdb-find-tags-for-completion-method ((table semanticdb-abstract-table) prefix &optional tags)
"In TABLE, find all occurrences of tags matching PREFIX.
Optional argument TAGS is a list of tags to search.
Returns a table of all matching tags."
- (semantic-find-tags-for-completion prefix (or tags (semanticdb-get-tags table))))
+ (semantic-find-tags-for-completion prefix
+ (or tags (and (slot-boundp table 'tags)
+ (semanticdb-get-tags table)))))
(cl-defmethod semanticdb-find-tags-by-class-method ((table semanticdb-abstract-table) class &optional tags)
"In TABLE, find all occurrences of tags of CLASS.
;; `semantic-find-tags-included', which by default will just call
;; `semantic-find-tags-by-class'.
(if (eq class 'include)
- (semantic-find-tags-included (or tags (semanticdb-get-tags table)))
- (semantic-find-tags-by-class class (or tags (semanticdb-get-tags table)))))
+ (semantic-find-tags-included
+ (or tags (and (slot-boundp table 'tags)
+ (semanticdb-get-tags table))))
+ (semantic-find-tags-by-class class
+ (or tags (and (slot-boundp table 'tags)
+ (semanticdb-get-tags table))))))
(declare-function semantic-find-tags-external-children-of-type
"semantic/find" (type &optional table))
Optional argument TAGS is a list of tags to search.
Returns a table of all matching tags."
(require 'semantic/find)
- (semantic-find-tags-external-children-of-type parent (or tags (semanticdb-get-tags table))))
+ (semantic-find-tags-external-children-of-type
+ parent (or tags (and (slot-boundp table 'tags)
+ (semanticdb-get-tags table)))))
(declare-function semantic-find-tags-subclasses-of-type
"semantic/find" (type &optional table))
Optional argument TAGS is a list of tags to search.
Returns a table of all matching tags."
(require 'semantic/find)
- (semantic-find-tags-subclasses-of-type parent (or tags (semanticdb-get-tags table))))
+ (semantic-find-tags-subclasses-of-type
+ parent (or tags (and (slot-boundp table 'tags)
+ (semanticdb-get-tags table)))))
;;; Deep Searches
(cl-defmethod semanticdb-deep-find-tags-by-name-method ((table semanticdb-abstract-table) name &optional tags)
TABLE.
Optional argument TAGS is a list of tags to search.
Return a table of all matching tags."
- (semantic-find-tags-by-name name (semantic-flatten-tags-table (or tags (semanticdb-get-tags table)))))
+ (semantic-find-tags-by-name
+ name (semantic-flatten-tags-table
+ (or tags (and (slot-boundp table 'tags)
+ (semanticdb-get-tags table))))))
(cl-defmethod semanticdb-deep-find-tags-by-name-regexp-method ((table semanticdb-abstract-table) regexp &optional tags)
"In TABLE, find all occurrences of tags matching REGEXP.
TABLE.
Optional argument TAGS is a list of tags to search.
Return a table of all matching tags."
- (semantic-find-tags-by-name-regexp regexp (semantic-flatten-tags-table (or tags (semanticdb-get-tags table)))))
+ (semantic-find-tags-by-name-regexp
+ regexp (semantic-flatten-tags-table
+ (or tags (and (slot-boundp table 'tags)
+ (semanticdb-get-tags table))))))
(cl-defmethod semanticdb-deep-find-tags-for-completion-method ((table semanticdb-abstract-table) prefix &optional tags)
"In TABLE, find all occurrences of tags matching PREFIX.
TABLE.
Optional argument TAGS is a list of tags to search.
Return a table of all matching tags."
- (semantic-find-tags-for-completion prefix (semantic-flatten-tags-table (or tags (semanticdb-get-tags table)))))
+ (semantic-find-tags-for-completion
+ prefix
+ (semantic-flatten-tags-table
+ (or tags (and (slot-boundp table 'tags)
+ (semanticdb-get-tags table))))))
(provide 'semantic/db-find)