summaryrefslogtreecommitdiff
path: root/lisp/cedet/semantic/ia.el
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2009-09-27 03:59:51 +0000
committerChong Yidong <cyd@stupidchicken.com>2009-09-27 03:59:51 +0000
commit78f9c78d2d49d6acfa1a018c9cba82dcb12975b0 (patch)
tree6a6fc93e31b39838e1fcf6639fc57374275bc1bc /lisp/cedet/semantic/ia.el
parentabe6fcf1414b423362a59f26fbcb13e359a13264 (diff)
downloademacs-78f9c78d2d49d6acfa1a018c9cba82dcb12975b0.tar.gz
* cedet/semantic/symref/list.el: Require semantic/complete.
(semantic-symref-symbol): Use semantic-complete-read-tag-buffer-deep. * cedet/semantic/ia.el (semantic-ia-complete-symbol-menu): Remove. (semantic-ia-complete-symbol): Use semantic-complete-symbol.
Diffstat (limited to 'lisp/cedet/semantic/ia.el')
-rw-r--r--lisp/cedet/semantic/ia.el43
1 files changed, 1 insertions, 42 deletions
diff --git a/lisp/cedet/semantic/ia.el b/lisp/cedet/semantic/ia.el
index 4fc4e49348a..1036a9b5b98 100644
--- a/lisp/cedet/semantic/ia.el
+++ b/lisp/cedet/semantic/ia.el
@@ -35,7 +35,6 @@
;; fast-jump. For a virtual method, offer some of the possible
;; implementations in various sub-classes.
-;; (require 'senator)
(require 'semantic/analyze)
(require 'semantic/format)
(require 'pulse)
@@ -137,8 +136,7 @@ Completion options are calculated with `semantic-analyze-possible-completions'."
;;
;; This is a way of making this fcn more useful since the
;; smart completion engine sometimes failes.
- (senator-complete-symbol)
- ))
+ (semantic-complete-symbol)))
;; Use try completion to seek a common substring.
(let ((tc (try-completion (or pre "") syms)))
(if (and (stringp tc) (not (string= tc (or pre ""))))
@@ -167,45 +165,6 @@ Completion options are calculated with `semantic-analyze-possible-completions'."
:group 'semantic
:type semantic-format-tag-custom-list)
-;;;###autoload
-(defun semantic-ia-complete-symbol-menu (point)
- "Complete the current symbol via a menu based at POINT.
-Completion options are calculated with `semantic-analyze-possible-completions'."
- (interactive "d")
- (require 'imenu)
- (let* ((a (semantic-analyze-current-context point))
- (syms (semantic-ia-get-completions a point))
- )
- ;; Complete this symbol.
- (if (not syms)
- (progn
- (message "No smart completions found. Trying Senator.")
- (when (semantic-analyze-context-p a)
- ;; This is a quick way of getting a nice completion list
- ;; in the menu if the regular context mechanism fails.
- (senator-completion-menu-popup)))
-
- (let* ((menu
- (mapcar
- (lambda (tag)
- (cons
- (funcall semantic-ia-completion-menu-format-tag-function tag)
- (vector tag)))
- syms))
- (ans
- (imenu--mouse-menu
- ;; XEmacs needs that the menu has at least 2 items. So,
- ;; include a nil item that will be ignored by imenu.
- (cons nil menu)
- (senator-completion-menu-point-as-event)
- "Completions")))
- (when ans
- (if (not (semantic-tag-p ans))
- (setq ans (aref (cdr ans) 0)))
- (delete-region (car (oref a bounds)) (cdr (oref a bounds)))
- (semantic-ia-insert-tag ans))
- ))))
-
;;; Completions Tip
;;
;; This functions shows how to get the list of completions,