* lisp/cedet/semantic/find.el (semantic-find-first-tag-by-name):
authorGlenn Morris <rgm@gnu.org>
Thu, 12 Sep 2013 17:23:48 +0000 (13:23 -0400)
committerGlenn Morris <rgm@gnu.org>
Thu, 12 Sep 2013 17:23:48 +0000 (13:23 -0400)
Replace obsolete function assoc-ignore-case with assoc-string.

lisp/cedet/ChangeLog
lisp/cedet/semantic/find.el

index f552820..6be1c44 100644 (file)
@@ -1,3 +1,8 @@
+2013-09-12  Glenn Morris  <rgm@gnu.org>
+
+       * semantic/find.el (semantic-find-first-tag-by-name):
+       Replace obsolete function assoc-ignore-case with assoc-string.
+
 2013-09-11  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * semantic/grammar.el (semantic-grammar-mode): Use define-derived-mode.
index f660c69..6670074 100644 (file)
@@ -265,9 +265,9 @@ TABLE is a semantic tags table.  See `semantic-something-to-tag-table'."
   "Find the first tag with NAME in TABLE.
 NAME is a string.
 TABLE is a semantic tags table.  See `semantic-something-to-tag-table'.
-This routine uses `assoc' to quickly find the first matching entry."
-  (funcall (if semantic-case-fold 'assoc-ignore-case 'assoc)
-           name (semantic-something-to-tag-table table)))
+Respects `semantic-case-fold'."
+  (assoc-string name (semantic-something-to-tag-table table)
+               semantic-case-fold))
 
 (defmacro semantic-find-tags-by-name (name &optional table)
   "Find all tags with NAME in TABLE.