]> git.eshelyaron.com Git - emacs.git/commitdiff
Properly mark obsolete semantic functions as such
authorStefan Kangas <stefan@marxist.se>
Fri, 20 Nov 2020 13:57:22 +0000 (14:57 +0100)
committerStefan Kangas <stefan@marxist.se>
Fri, 20 Nov 2020 15:11:33 +0000 (16:11 +0100)
* lisp/cedet/semantic/ia.el (semantic-ia-get-completions)
(semantic-ia-get-completions-deprecated): Make obsolete.

lisp/cedet/semantic/ia.el

index 4a129aae74e87f3f558a5fcbe5530c51fa6e995d..e67116083863f0bc1f3738b99bc3198eb795d597 100644 (file)
           (insert "("))
          (t nil))))
 
-(defalias 'semantic-ia-get-completions 'semantic-ia-get-completions-deprecated
-  "`Semantic-ia-get-completions' is obsolete.
-Use `semantic-analyze-possible-completions' instead.")
+(defalias 'semantic-ia-get-completions 'semantic-ia-get-completions-deprecated)
+(make-obsolete 'semantic-ia-get-completions
+               #'semantic-analyze-possible-completions "28.1")
 
 (defun semantic-ia-get-completions-deprecated (context point)
   "A function to help transition away from `semantic-ia-get-completions'.
-Return completions based on CONTEXT at POINT.
-You should not use this, nor the aliased version.
-Use `semantic-analyze-possible-completions' instead."
+Return completions based on CONTEXT at POINT."
+  (declare (obsolete semantic-analyze-possible-completions "28.1"))
   (semantic-analyze-possible-completions context))
 
 ;;;###autoload