diff options
| author | Stefan Monnier | 2019-10-11 13:54:30 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2019-10-11 13:54:30 -0400 |
| commit | a93dceda3fdcca18b51cb96461e1b8a4fc61bfd7 (patch) | |
| tree | cea78c213727884969164b13de3ececf4233a96d /lisp/cedet/srecode | |
| parent | 421db07d061cdc493300b30646c2acd13f26d8f3 (diff) | |
| download | emacs-a93dceda3fdcca18b51cb96461e1b8a4fc61bfd7.tar.gz emacs-a93dceda3fdcca18b51cb96461e1b8a4fc61bfd7.zip | |
* lisp/cedet/mode-local.el (define-overload): Declare obsolete
* lisp/cedet/srecode/ctxt.el (srecode-calculate-context):
* lisp/cedet/srecode/semantic.el (srecode-semantic-apply-tag-to-dict)
(srecode-semantic-find-template): Use define-overloadable-function instead.
Diffstat (limited to 'lisp/cedet/srecode')
| -rw-r--r-- | lisp/cedet/srecode/ctxt.el | 2 | ||||
| -rw-r--r-- | lisp/cedet/srecode/semantic.el | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lisp/cedet/srecode/ctxt.el b/lisp/cedet/srecode/ctxt.el index b20b9bc6417..ee9f12fcae3 100644 --- a/lisp/cedet/srecode/ctxt.el +++ b/lisp/cedet/srecode/ctxt.el | |||
| @@ -36,7 +36,7 @@ | |||
| 36 | 36 | ||
| 37 | ;;; Code: | 37 | ;;; Code: |
| 38 | 38 | ||
| 39 | (define-overload srecode-calculate-context () | 39 | (define-overloadable-function srecode-calculate-context () |
| 40 | "Calculate the context at the current point. | 40 | "Calculate the context at the current point. |
| 41 | The returned context is a list, with the top-most context first. | 41 | The returned context is a list, with the top-most context first. |
| 42 | Each returned context is a string that would show up in a `context' | 42 | Each returned context is a string that would show up in a `context' |
diff --git a/lisp/cedet/srecode/semantic.el b/lisp/cedet/srecode/semantic.el index 1e1a60e0245..344b908da32 100644 --- a/lisp/cedet/srecode/semantic.el +++ b/lisp/cedet/srecode/semantic.el | |||
| @@ -89,7 +89,7 @@ If this is nil, then `senator-tag-ring' is used.") | |||
| 89 | The hook is called with two arguments, the TAG and DICT | 89 | The hook is called with two arguments, the TAG and DICT |
| 90 | to be augmented.") | 90 | to be augmented.") |
| 91 | 91 | ||
| 92 | (define-overload srecode-semantic-apply-tag-to-dict (tagobj dict) | 92 | (define-overloadable-function srecode-semantic-apply-tag-to-dict (tagobj dict) |
| 93 | "Insert features of TAGOBJ into the dictionary DICT. | 93 | "Insert features of TAGOBJ into the dictionary DICT. |
| 94 | TAGOBJ is an object of class `srecode-semantic-tag'. This class | 94 | TAGOBJ is an object of class `srecode-semantic-tag'. This class |
| 95 | is a compound inserter value. | 95 | is a compound inserter value. |
| @@ -227,7 +227,7 @@ Assumes the cursor is in a tag of class type. If not, throw an error." | |||
| 227 | ;;; INSERT A TAG API | 227 | ;;; INSERT A TAG API |
| 228 | ;; | 228 | ;; |
| 229 | ;; Routines that take a tag, and insert into a buffer. | 229 | ;; Routines that take a tag, and insert into a buffer. |
| 230 | (define-overload srecode-semantic-find-template (class prototype ctxt) | 230 | (define-overloadable-function srecode-semantic-find-template (class prototype ctxt) |
| 231 | "Find a template for a tag of class CLASS based on context. | 231 | "Find a template for a tag of class CLASS based on context. |
| 232 | PROTOTYPE is non-nil if we want a prototype template instead." | 232 | PROTOTYPE is non-nil if we want a prototype template instead." |
| 233 | ) | 233 | ) |