X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/322b7dab59b98b5d8625d2cd29e48f1ce605f769..cc0b7132:/lisp/cedet/semantic/ia-sb.el diff --git a/lisp/cedet/semantic/ia-sb.el b/lisp/cedet/semantic/ia-sb.el index 57067936a9..dd2055df61 100644 --- a/lisp/cedet/semantic/ia-sb.el +++ b/lisp/cedet/semantic/ia-sb.el @@ -1,6 +1,7 @@ ;;; semantic/ia-sb.el --- Speedbar analysis display interactor -;;; Copyright (C) 2002-2004, 2006, 2008-2011 Free Software Foundation, Inc. +;;; Copyright (C) 2002-2004, 2006, 2008-2016 Free Software Foundation, +;;; Inc. ;; Author: Eric M. Ludlam ;; Keywords: syntax @@ -36,7 +37,7 @@ nil (setq semantic-ia-sb-key-map (speedbar-make-specialized-keymap)) - ;; Basic featuers. + ;; Basic features. (define-key semantic-ia-sb-key-map "\C-m" 'speedbar-edit-line) (define-key semantic-ia-sb-key-map "I" 'semantic-ia-sb-show-tag-info) ) @@ -137,8 +138,8 @@ DIRECTORY is the current directory, which is ignored, and ZERO is 0." ))) -(defmethod semantic-ia-sb-show-doc ((context semantic-analyze-context)) - "Show documentation about CONTEXT iff CONTEXT points at a complete symbol." +(cl-defmethod semantic-ia-sb-show-doc ((context semantic-analyze-context)) + "Show documentation about CONTEXT if CONTEXT points at a complete symbol." (let ((sym (car (reverse (oref context prefix)))) (doc nil)) (when (semantic-tag-p sym) @@ -162,7 +163,7 @@ DIRECTORY is the current directory, which is ignored, and ZERO is 0." ;; This is from semantic-sb 'semantic-sb-token-jump)))) -(defmethod semantic-ia-sb-more-buttons ((context semantic-analyze-context)) +(cl-defmethod semantic-ia-sb-more-buttons ((context semantic-analyze-context)) "Show a set of speedbar buttons specific to CONTEXT." (let ((prefix (oref context prefix))) (when prefix @@ -172,9 +173,9 @@ DIRECTORY is the current directory, which is ignored, and ZERO is 0." 'semantic-sb-token-jump)) )) -(defmethod semantic-ia-sb-more-buttons ((context semantic-analyze-context-assignment)) +(cl-defmethod semantic-ia-sb-more-buttons ((context semantic-analyze-context-assignment)) "Show a set of speedbar buttons specific to CONTEXT." - (call-next-method) + (cl-call-next-method) (let ((assignee (oref context assignee))) (when assignee (speedbar-insert-separator "Assignee") @@ -182,9 +183,9 @@ DIRECTORY is the current directory, which is ignored, and ZERO is 0." 'speedbar-tag-face 'semantic-sb-token-jump)))) -(defmethod semantic-ia-sb-more-buttons ((context semantic-analyze-context-functionarg)) +(cl-defmethod semantic-ia-sb-more-buttons ((context semantic-analyze-context-functionarg)) "Show a set of speedbar buttons specific to CONTEXT." - (call-next-method) + (cl-call-next-method) (let ((func (oref context function))) (when func (speedbar-insert-separator "Function") @@ -348,7 +349,7 @@ TEXT TAG and INDENT are the details." (insert (semantic-tag-name tag)) (if movepoint (setq movepoint (point))) ;; I'd like to use this to add fancy () or what not at the end - ;; but we need the parent file whih requires an upgrade to the + ;; but we need the parent file which requires an upgrade to the ;; analysis tool. ;;(semantic-insert-foreign-tag tag ??)) )