]> git.eshelyaron.com Git - emacs.git/commitdiff
* 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 f5528202bb49751206b5149185ef4b9d2c1070c4..6be1c44743a04522a35a5613fbfbf9a453f915db 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 f660c69ec3d0c5f5979d89ebb7bac327c21110e7..6670074c0f9755f37a5e32806e9bf1d35a8426df 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.