* semantic/find.el (semantic-brute-find-first-tag-by-name):
authorGlenn Morris <rgm@gnu.org>
Wed, 18 Sep 2013 05:00:26 +0000 (22:00 -0700)
committerGlenn Morris <rgm@gnu.org>
Wed, 18 Sep 2013 05:00:26 +0000 (22:00 -0700)
Replace obsolete function assoc-ignore-case with assoc-string.

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

index 2a3b53b..61d79b1 100644 (file)
@@ -1,5 +1,8 @@
 2013-09-18  Glenn Morris  <rgm@gnu.org>
 
+       * semantic/find.el (semantic-brute-find-first-tag-by-name):
+       Replace obsolete function assoc-ignore-case with assoc-string.
+
        * semantic/complete.el (tooltip-mode, tooltip-frame-parameters)
        (tooltip-show): Declare.
 
index 6670074..351c616 100644 (file)
@@ -457,13 +457,11 @@ TABLE is a tag table.  See `semantic-something-to-tag-table'."
   "Find a tag NAME within STREAMORBUFFER.  NAME is a string.
 If SEARCH-PARTS is non-nil, search children of tags.
 If SEARCH-INCLUDE was never implemented.
+Respects `semantic-case-fold'.
 
 Use `semantic-find-first-tag-by-name' instead."
   (let* ((stream (semantic-something-to-tag-table streamorbuffer))
-         (assoc-fun (if semantic-case-fold
-                        #'assoc-ignore-case
-                      #'assoc))
-        (m (funcall assoc-fun name stream)))
+        (m (assoc-string name stream semantic-case-fold)))
     (if m
        m
       (let ((toklst stream)