diff options
| author | Stefan Monnier | 2009-10-28 14:01:49 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2009-10-28 14:01:49 +0000 |
| commit | 5a916e3569279bedc2edf2d8dd13019ca9fb2698 (patch) | |
| tree | dc23dfe1177f88166a31eb07154f55a533595c02 | |
| parent | 70f44c655cee05550fa1cfcd0aae5cf720c31447 (diff) | |
| download | emacs-5a916e3569279bedc2edf2d8dd13019ca9fb2698.tar.gz emacs-5a916e3569279bedc2edf2d8dd13019ca9fb2698.zip | |
* 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'.
| -rw-r--r-- | lisp/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/cedet/mode-local.el | 14 | ||||
| -rw-r--r-- | lisp/cedet/semantic/decorate/mode.el | 1 | ||||
| -rw-r--r-- | lisp/cedet/semantic/fw.el | 2 | ||||
| -rw-r--r-- | lisp/cedet/semantic/idle.el | 3 | ||||
| -rw-r--r-- | lisp/cedet/semantic/tag-ls.el | 8 |
6 files changed, 26 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7c05d4406d8..4ad20dd0a9e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,15 @@ | |||
| 1 | 2009-10-28 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2009-10-28 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * cedet/mode-local.el (make-obsolete-overload): Add `when' argument. | ||
| 4 | (overload-docstring-extension): Use that info. | ||
| 5 | * cedet/semantic/fw.el (semantic-alias-obsolete): Pass the `when' info. | ||
| 6 | * cedet/semantic/idle.el (semantic-eldoc-current-symbol-info): | ||
| 7 | * cedet/semantic/tag-ls.el (semantic-nonterminal-protection) | ||
| 8 | (semantic-nonterminal-abstract, semantic-nonterminal-leaf) | ||
| 9 | (semantic-nonterminal-full-name): Add the new `when' info. | ||
| 10 | * cedet/semantic/decorate/mode.el (semantic/decorate): Require CL for | ||
| 11 | `assert'. | ||
| 12 | |||
| 3 | * pcomplete.el (pcomplete-comint-setup): If there's a choice, replace | 13 | * pcomplete.el (pcomplete-comint-setup): If there's a choice, replace |
| 4 | shell-dynamic-complete-filename in preference to | 14 | shell-dynamic-complete-filename in preference to |
| 5 | comint-dynamic-complete-filename. | 15 | comint-dynamic-complete-filename. |
diff --git a/lisp/cedet/mode-local.el b/lisp/cedet/mode-local.el index 79fb652eb72..62e8c89a0bd 100644 --- a/lisp/cedet/mode-local.el +++ b/lisp/cedet/mode-local.el | |||
| @@ -442,9 +442,11 @@ DOCSTRING is optional." | |||
| 442 | 442 | ||
| 443 | ;;; Function overloading | 443 | ;;; Function overloading |
| 444 | ;; | 444 | ;; |
| 445 | (defun make-obsolete-overload (old new) | 445 | (defun make-obsolete-overload (old new when) |
| 446 | "Mark OLD overload as obsoleted by NEW overload." | 446 | "Mark OLD overload as obsoleted by NEW overload. |
| 447 | WHEN is a string describing the first release where it was made obsolete." | ||
| 447 | (put old 'overload-obsoleted-by new) | 448 | (put old 'overload-obsoleted-by new) |
| 449 | (put old 'overload-obsoleted-since when) | ||
| 448 | (put old 'mode-local-overload t) | 450 | (put old 'mode-local-overload t) |
| 449 | (put new 'overload-obsolete old)) | 451 | (put new 'overload-obsolete old)) |
| 450 | 452 | ||
| @@ -592,12 +594,12 @@ PROMPT, INITIAL, HIST, and DEFAULT are the same as for `completing-read'." | |||
| 592 | with `define-mode-local-override'.") | 594 | with `define-mode-local-override'.") |
| 593 | (sym (overload-obsoleted-by overload))) | 595 | (sym (overload-obsoleted-by overload))) |
| 594 | (when sym | 596 | (when sym |
| 595 | (setq doc (format "%s\nIt makes the overload `%s' obsolete." | 597 | (setq doc (format "%s\nIt has made the overload `%s' obsolete since %s." |
| 596 | doc sym))) | 598 | doc sym (get sym 'overload-obsoleted-since)))) |
| 597 | (setq sym (overload-that-obsolete overload)) | 599 | (setq sym (overload-that-obsolete overload)) |
| 598 | (when sym | 600 | (when sym |
| 599 | (setq doc (format "%s\nThis overload is obsoletes;\nUse `%s' instead." | 601 | (setq doc (format "%s\nThis overload is obsolete since %s;\nUse `%s' instead." |
| 600 | doc sym))) | 602 | doc (get overload 'overload-obsoleted-since) sym))) |
| 601 | doc)) | 603 | doc)) |
| 602 | 604 | ||
| 603 | (defun mode-local-augment-function-help (symbol) | 605 | (defun mode-local-augment-function-help (symbol) |
diff --git a/lisp/cedet/semantic/decorate/mode.el b/lisp/cedet/semantic/decorate/mode.el index f0aad47141a..4f467a7bb70 100644 --- a/lisp/cedet/semantic/decorate/mode.el +++ b/lisp/cedet/semantic/decorate/mode.el | |||
| @@ -36,6 +36,7 @@ | |||
| 36 | ;; | 36 | ;; |
| 37 | 37 | ||
| 38 | ;;; Code: | 38 | ;;; Code: |
| 39 | (eval-when-compile (require 'cl)) | ||
| 39 | (require 'semantic) | 40 | (require 'semantic) |
| 40 | (require 'semantic/decorate) | 41 | (require 'semantic/decorate) |
| 41 | (require 'semantic/tag-ls) | 42 | (require 'semantic/tag-ls) |
diff --git a/lisp/cedet/semantic/fw.el b/lisp/cedet/semantic/fw.el index 1c8d2804202..c75a7cfeb09 100644 --- a/lisp/cedet/semantic/fw.el +++ b/lisp/cedet/semantic/fw.el | |||
| @@ -161,7 +161,7 @@ will throw a warning when it encounters this symbol." | |||
| 161 | byte-compile-current-file | 161 | byte-compile-current-file |
| 162 | (not (string-match "cedet" byte-compile-current-file)) | 162 | (not (string-match "cedet" byte-compile-current-file)) |
| 163 | ) | 163 | ) |
| 164 | (make-obsolete-overload oldfnalias newfn) | 164 | (make-obsolete-overload oldfnalias newfn when) |
| 165 | (semantic-compile-warn | 165 | (semantic-compile-warn |
| 166 | "%s: `%s' obsoletes overload `%s'" | 166 | "%s: `%s' obsoletes overload `%s'" |
| 167 | byte-compile-current-file | 167 | byte-compile-current-file |
diff --git a/lisp/cedet/semantic/idle.el b/lisp/cedet/semantic/idle.el index 38811634670..b93ed65c1f5 100644 --- a/lisp/cedet/semantic/idle.el +++ b/lisp/cedet/semantic/idle.el | |||
| @@ -795,7 +795,8 @@ specific to a major mode. For example, in jde mode: | |||
| 795 | "Return a string message describing the current context.") | 795 | "Return a string message describing the current context.") |
| 796 | 796 | ||
| 797 | (make-obsolete-overload 'semantic-eldoc-current-symbol-info | 797 | (make-obsolete-overload 'semantic-eldoc-current-symbol-info |
| 798 | 'semantic-idle-summary-current-symbol-info) | 798 | 'semantic-idle-summary-current-symbol-info |
| 799 | "23.2") | ||
| 799 | 800 | ||
| 800 | (define-semantic-idle-service semantic-idle-summary | 801 | (define-semantic-idle-service semantic-idle-summary |
| 801 | "Display a tag summary of the lexical token under the cursor. | 802 | "Display a tag summary of the lexical token under the cursor. |
diff --git a/lisp/cedet/semantic/tag-ls.el b/lisp/cedet/semantic/tag-ls.el index b9448dc1c32..2d12b03e248 100644 --- a/lisp/cedet/semantic/tag-ls.el +++ b/lisp/cedet/semantic/tag-ls.el | |||
| @@ -76,7 +76,7 @@ is to return a symbol based on type modifiers." | |||
| 76 | (:override)) | 76 | (:override)) |
| 77 | 77 | ||
| 78 | (make-obsolete-overload 'semantic-nonterminal-protection | 78 | (make-obsolete-overload 'semantic-nonterminal-protection |
| 79 | 'semantic-tag-protection) | 79 | 'semantic-tag-protection "23.2") |
| 80 | 80 | ||
| 81 | (defun semantic-tag-protection-default (tag &optional parent) | 81 | (defun semantic-tag-protection-default (tag &optional parent) |
| 82 | "Return the protection of TAG as a child of PARENT default action. | 82 | "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' | |||
| 138 | is to return true if `abstract' is in the type modifiers.") | 138 | is to return true if `abstract' is in the type modifiers.") |
| 139 | 139 | ||
| 140 | (make-obsolete-overload 'semantic-nonterminal-abstract | 140 | (make-obsolete-overload 'semantic-nonterminal-abstract |
| 141 | 'semantic-tag-abstract-p) | 141 | 'semantic-tag-abstract-p "23.2") |
| 142 | 142 | ||
| 143 | (defun semantic-tag-abstract-p-default (tag &optional parent) | 143 | (defun semantic-tag-abstract-p-default (tag &optional parent) |
| 144 | "Return non-nil if TAG is abstract as a child of PARENT default action. | 144 | "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' | |||
| 161 | is to return true if `leaf' is in the type modifiers.") | 161 | is to return true if `leaf' is in the type modifiers.") |
| 162 | 162 | ||
| 163 | (make-obsolete-overload 'semantic-nonterminal-leaf | 163 | (make-obsolete-overload 'semantic-nonterminal-leaf |
| 164 | 'semantic-tag-leaf-p) | 164 | 'semantic-tag-leaf-p "23.2") |
| 165 | 165 | ||
| 166 | (defun semantic-tag-leaf-p-default (tag &optional parent) | 166 | (defun semantic-tag-leaf-p-default (tag &optional parent) |
| 167 | "Return non-nil if TAG is leaf as a child of PARENT default action. | 167 | "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." | |||
| 238 | (:override-with-args (tag stream)))) | 238 | (:override-with-args (tag stream)))) |
| 239 | 239 | ||
| 240 | (make-obsolete-overload 'semantic-nonterminal-full-name | 240 | (make-obsolete-overload 'semantic-nonterminal-full-name |
| 241 | 'semantic-tag-full-name) | 241 | 'semantic-tag-full-name "23.2") |
| 242 | 242 | ||
| 243 | (defun semantic-tag-full-name-default (tag stream) | 243 | (defun semantic-tag-full-name-default (tag stream) |
| 244 | "Default method for `semantic-tag-full-name'. | 244 | "Default method for `semantic-tag-full-name'. |