aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2009-10-24 18:02:47 +0000
committerChong Yidong2009-10-24 18:02:47 +0000
commit86f1602f648fb5cf78ced645f869b0d33703c7c5 (patch)
tree22f0d1353f26cdb753dbbe96e5ab8462202c23d4
parent1cae01f7159d377f148e1d8aa631d5447217623e (diff)
downloademacs-86f1602f648fb5cf78ced645f869b0d33703c7c5.tar.gz
emacs-86f1602f648fb5cf78ced645f869b0d33703c7c5.zip
* cedet/semantic/util.el (semantic-recursive-find-nonterminal-by-name):
* cedet/semantic/tag.el (semantic-token-type-parent): Add WHEN argument to make-obsolete. * cedet/semantic/fw.el (semantic-alias-obsolete) (semantic-varalias-obsolete): Add optional WHEN argument.
-rw-r--r--lisp/ChangeLog9
-rw-r--r--lisp/cedet/semantic/fw.el8
-rw-r--r--lisp/cedet/semantic/tag.el2
-rw-r--r--lisp/cedet/semantic/util.el2
4 files changed, 15 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8a41ef8d171..2b05d3dd6ae 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,12 @@
12009-10-24 Chong Yidong <cyd@stupidchicken.com>
2
3 * cedet/semantic/util.el (semantic-recursive-find-nonterminal-by-name):
4 * cedet/semantic/tag.el (semantic-token-type-parent): Add WHEN
5 argument to make-obsolete.
6
7 * cedet/semantic/fw.el (semantic-alias-obsolete)
8 (semantic-varalias-obsolete): Add optional WHEN argument.
9
12009-10-24 Dan Nicolaescu <dann@ics.uci.edu> 102009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
2 11
3 * vc.el (vc-backend-for-registration): Rename from 12 * vc.el (vc-backend-for-registration): Rename from
diff --git a/lisp/cedet/semantic/fw.el b/lisp/cedet/semantic/fw.el
index a958e0112f2..95eb4b6e453 100644
--- a/lisp/cedet/semantic/fw.el
+++ b/lisp/cedet/semantic/fw.el
@@ -148,12 +148,12 @@ Remove self from `post-command-hook' if it is empty."
148 (intern (substring sym-name (match-end 0))) 148 (intern (substring sym-name (match-end 0)))
149 name))) 149 name)))
150 150
151(defun semantic-alias-obsolete (oldfnalias newfn) 151(defun semantic-alias-obsolete (oldfnalias newfn &optional when)
152 "Make OLDFNALIAS an alias for NEWFN. 152 "Make OLDFNALIAS an alias for NEWFN.
153Mark OLDFNALIAS as obsolete, such that the byte compiler 153Mark OLDFNALIAS as obsolete, such that the byte compiler
154will throw a warning when it encounters this symbol." 154will throw a warning when it encounters this symbol."
155 (defalias oldfnalias newfn) 155 (defalias oldfnalias newfn)
156 (make-obsolete oldfnalias newfn) 156 (make-obsolete oldfnalias newfn when)
157 (when (and (function-overload-p newfn) 157 (when (and (function-overload-p newfn)
158 (not (overload-obsoleted-by newfn)) 158 (not (overload-obsoleted-by newfn))
159 ;; Only throw this warning when byte compiling things. 159 ;; Only throw this warning when byte compiling things.
@@ -169,11 +169,11 @@ will throw a warning when it encounters this symbol."
169 (semantic-overload-symbol-from-function oldfnalias)) 169 (semantic-overload-symbol-from-function oldfnalias))
170 )) 170 ))
171 171
172(defun semantic-varalias-obsolete (oldvaralias newvar) 172(defun semantic-varalias-obsolete (oldvaralias newvar &optional when)
173 "Make OLDVARALIAS an alias for variable NEWVAR. 173 "Make OLDVARALIAS an alias for variable NEWVAR.
174Mark OLDVARALIAS as obsolete, such that the byte compiler 174Mark OLDVARALIAS as obsolete, such that the byte compiler
175will throw a warning when it encounters this symbol." 175will throw a warning when it encounters this symbol."
176 (make-obsolete-variable oldvaralias newvar) 176 (make-obsolete-variable oldvaralias newvar when)
177 (condition-case nil 177 (condition-case nil
178 (defvaralias oldvaralias newvar) 178 (defvaralias oldvaralias newvar)
179 (error 179 (error
diff --git a/lisp/cedet/semantic/tag.el b/lisp/cedet/semantic/tag.el
index 5cc3629aa39..44fbe764059 100644
--- a/lisp/cedet/semantic/tag.el
+++ b/lisp/cedet/semantic/tag.el
@@ -1347,7 +1347,7 @@ interfaces, or abstract classes which are parents of TAG."
1347(make-obsolete 'semantic-token-type-parent 1347(make-obsolete 'semantic-token-type-parent
1348 "\ 1348 "\
1349use `semantic-tag-type-superclass' \ 1349use `semantic-tag-type-superclass' \
1350and `semantic-tag-type-interfaces' instead") 1350and `semantic-tag-type-interfaces' instead" "23.2")
1351 1351
1352(semantic-alias-obsolete 'semantic-tag-make-assoc-list 1352(semantic-alias-obsolete 'semantic-tag-make-assoc-list
1353 'semantic-tag-make-plist) 1353 'semantic-tag-make-plist)
diff --git a/lisp/cedet/semantic/util.el b/lisp/cedet/semantic/util.el
index 974f915c834..6d3985e147b 100644
--- a/lisp/cedet/semantic/util.el
+++ b/lisp/cedet/semantic/util.el
@@ -174,7 +174,7 @@ THIS ISN'T USED IN SEMANTIC. DELETE ME SOON."
174 (setq includelist (cdr includelist))) 174 (setq includelist (cdr includelist)))
175 found))) 175 found)))
176(make-obsolete 'semantic-recursive-find-nonterminal-by-name 176(make-obsolete 'semantic-recursive-find-nonterminal-by-name
177 "Do not use this function.") 177 "Do not use this function." "23.2")
178 178
179;;; Completion APIs 179;;; Completion APIs
180;; 180;;