]> git.eshelyaron.com Git - emacs.git/commitdiff
* cedet/mode-local.el (make-obsolete-overload): Add `when' argument.
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 28 Oct 2009 14:01:49 +0000 (14:01 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 28 Oct 2009 14:01:49 +0000 (14:01 +0000)
(overload-docstring-extension): Use that info.
* cedet/semantic/fw.el (semantic-alias-obsolete): Pass the `when' info.
* cedet/semantic/idle.el (semantic-eldoc-current-symbol-info):
* cedet/semantic/tag-ls.el (semantic-nonterminal-protection)
(semantic-nonterminal-abstract, semantic-nonterminal-leaf)
(semantic-nonterminal-full-name): Add the new `when' info.
* cedet/semantic/decorate/mode.el (semantic/decorate): Require CL for `assert'.

lisp/ChangeLog
lisp/cedet/mode-local.el
lisp/cedet/semantic/decorate/mode.el
lisp/cedet/semantic/fw.el
lisp/cedet/semantic/idle.el
lisp/cedet/semantic/tag-ls.el

index 7c05d4406d8795e8268a85b32835b4b2a4f5672f..4ad20dd0a9ed593ada4fb5407a2be110f3f0be3b 100644 (file)
@@ -1,5 +1,15 @@
 2009-10-28  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+       * cedet/mode-local.el (make-obsolete-overload): Add `when' argument.
+       (overload-docstring-extension): Use that info.
+       * cedet/semantic/fw.el (semantic-alias-obsolete): Pass the `when' info.
+       * cedet/semantic/idle.el (semantic-eldoc-current-symbol-info):
+       * cedet/semantic/tag-ls.el (semantic-nonterminal-protection)
+       (semantic-nonterminal-abstract, semantic-nonterminal-leaf)
+       (semantic-nonterminal-full-name): Add the new `when' info.
+       * cedet/semantic/decorate/mode.el (semantic/decorate): Require CL for
+       `assert'.
+
        * pcomplete.el (pcomplete-comint-setup): If there's a choice, replace
        shell-dynamic-complete-filename in preference to
        comint-dynamic-complete-filename.
index 79fb652eb72e56ac92f3d9026e27cd0febd1203a..62e8c89a0bd0401ef3461a77ea29c0925bc51f53 100644 (file)
@@ -442,9 +442,11 @@ DOCSTRING is optional."
 \f
 ;;; Function overloading
 ;;
-(defun make-obsolete-overload (old new)
-  "Mark OLD overload as obsoleted by NEW overload."
+(defun make-obsolete-overload (old new when)
+  "Mark OLD overload as obsoleted by NEW overload.
+WHEN is a string describing the first release where it was made obsolete."
   (put old 'overload-obsoleted-by new)
+  (put old 'overload-obsoleted-since when)
   (put old 'mode-local-overload t)
   (put new 'overload-obsolete old))
 
@@ -592,12 +594,12 @@ PROMPT, INITIAL, HIST, and DEFAULT are the same as for `completing-read'."
  with `define-mode-local-override'.")
         (sym (overload-obsoleted-by overload)))
     (when sym
-      (setq doc (format "%s\nIt makes the overload `%s' obsolete."
-                        doc sym)))
+      (setq doc (format "%s\nIt has made the overload `%s' obsolete since %s."
+                        doc sym (get sym 'overload-obsoleted-since))))
     (setq sym (overload-that-obsolete overload))
     (when sym
-      (setq doc (format "%s\nThis overload is obsoletes;\nUse `%s' instead."
-                        doc sym)))
+      (setq doc (format "%s\nThis overload is obsolete since %s;\nUse `%s' instead."
+                        doc (get overload 'overload-obsoleted-since) sym)))
     doc))
 
 (defun mode-local-augment-function-help (symbol)
index f0aad47141a36ba8f8f2add21a06e15098623697..4f467a7bb70a6c967fb77ba5297d787fc71bce90 100644 (file)
@@ -36,6 +36,7 @@
 ;;
 
 ;;; Code:
+(eval-when-compile (require 'cl))
 (require 'semantic)
 (require 'semantic/decorate)
 (require 'semantic/tag-ls)
index 1c8d280420253682bc281ff6d002457e1dc06649..c75a7cfeb0901b1b4b23de482f3a715fa72b0a3a 100644 (file)
@@ -161,7 +161,7 @@ will throw a warning when it encounters this symbol."
              byte-compile-current-file
             (not (string-match "cedet" byte-compile-current-file))
             )
-    (make-obsolete-overload oldfnalias newfn)
+    (make-obsolete-overload oldfnalias newfn when)
     (semantic-compile-warn
      "%s: `%s' obsoletes overload `%s'"
      byte-compile-current-file
index 38811634670424426fb8b515bccf0bd626d86f2a..b93ed65c1f5457d533b9c43bfbdf382fc2e21c20 100644 (file)
@@ -795,7 +795,8 @@ specific to a major mode.  For example, in jde mode:
   "Return a string message describing the current context.")
 
 (make-obsolete-overload 'semantic-eldoc-current-symbol-info
-                        'semantic-idle-summary-current-symbol-info)
+                        'semantic-idle-summary-current-symbol-info
+                        "23.2")
 
 (define-semantic-idle-service semantic-idle-summary
   "Display a tag summary of the lexical token under the cursor.
index b9448dc1c32adc232589c00860f155a63994934e..2d12b03e24898c6e738d95c569eeab7a48811d0f 100644 (file)
@@ -76,7 +76,7 @@ is to return a symbol based on type modifiers."
   (:override))
 
 (make-obsolete-overload 'semantic-nonterminal-protection
-                        'semantic-tag-protection)
+                        'semantic-tag-protection "23.2")
 
 (defun semantic-tag-protection-default (tag &optional parent)
   "Return the protection of TAG as a child of PARENT default action.
@@ -138,7 +138,7 @@ The default behavior (if not overridden with `tag-abstract-p'
 is to return true if `abstract' is in the type modifiers.")
 
 (make-obsolete-overload 'semantic-nonterminal-abstract
-                        'semantic-tag-abstract-p)
+                        'semantic-tag-abstract-p "23.2")
 
 (defun semantic-tag-abstract-p-default (tag &optional parent)
   "Return non-nil if TAG is abstract as a child of PARENT default action.
@@ -161,7 +161,7 @@ The default behavior (if not overridden with `tag-leaf-p'
 is to return true if `leaf' is in the type modifiers.")
 
 (make-obsolete-overload 'semantic-nonterminal-leaf
-                        'semantic-tag-leaf-p)
+                        'semantic-tag-leaf-p "23.2")
 
 (defun semantic-tag-leaf-p-default (tag &optional parent)
   "Return non-nil if TAG is leaf as a child of PARENT default action.
@@ -238,7 +238,7 @@ STREAM-OR-BUFFER with a tag stream value, or nil."
     (:override-with-args (tag stream))))
 
 (make-obsolete-overload 'semantic-nonterminal-full-name
-                        'semantic-tag-full-name)
+                        'semantic-tag-full-name "23.2")
 
 (defun semantic-tag-full-name-default (tag stream)
   "Default method for `semantic-tag-full-name'.