aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/cedet
diff options
context:
space:
mode:
authorChong Yidong2010-04-29 11:32:11 -0400
committerChong Yidong2010-04-29 11:32:11 -0400
commit3a07ffce2fe88d64f98deb072c3d35b61bb0a81a (patch)
tree49abf42b86970c97b86564402b31a31597aed5fb /lisp/cedet
parent3d14bb734b6d2c58d042ffe7e62762527e5048ca (diff)
downloademacs-3a07ffce2fe88d64f98deb072c3d35b61bb0a81a.tar.gz
emacs-3a07ffce2fe88d64f98deb072c3d35b61bb0a81a.zip
* minibuffer.el (tags-completion-at-point-function): New function.
(completion-at-point-functions): Use it. * cedet/semantic.el (semantic-completion-at-point-function): New function. (semantic-mode): Use semantic-completion-at-point-function for completion-at-point-functions instead. * progmodes/etags.el (complete-tag): Revert last change.
Diffstat (limited to 'lisp/cedet')
-rw-r--r--lisp/cedet/semantic.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/cedet/semantic.el b/lisp/cedet/semantic.el
index 8df4feaa2bb..99e594a4638 100644
--- a/lisp/cedet/semantic.el
+++ b/lisp/cedet/semantic.el
@@ -1083,7 +1083,8 @@ Semantic mode.
1083 ;; Add semantic-ia-complete-symbol to 1083 ;; Add semantic-ia-complete-symbol to
1084 ;; completion-at-point-functions, so that it is run from 1084 ;; completion-at-point-functions, so that it is run from
1085 ;; M-TAB. 1085 ;; M-TAB.
1086 (add-hook 'completion-at-point-functions 'semantic-ia-complete-symbol) 1086 (add-hook 'completion-at-point-functions
1087 'semantic-completion-at-point-function)
1087 (if global-ede-mode 1088 (if global-ede-mode
1088 (define-key cedet-menu-map [cedet-menu-separator] '("--"))) 1089 (define-key cedet-menu-map [cedet-menu-separator] '("--")))
1089 (dolist (b (buffer-list)) 1090 (dolist (b (buffer-list))
@@ -1091,7 +1092,8 @@ Semantic mode.
1091 (semantic-new-buffer-fcn)))) 1092 (semantic-new-buffer-fcn))))
1092 ;; Disable all Semantic features. 1093 ;; Disable all Semantic features.
1093 (remove-hook 'mode-local-init-hook 'semantic-new-buffer-fcn) 1094 (remove-hook 'mode-local-init-hook 'semantic-new-buffer-fcn)
1094 (remove-hook 'completion-at-point-functions 'semantic-ia-complete-symbol) 1095 (remove-hook 'completion-at-point-functions
1096 'semantic-completion-at-point-function)
1095 (define-key cedet-menu-map [cedet-menu-separator] nil) 1097 (define-key cedet-menu-map [cedet-menu-separator] nil)
1096 (define-key cedet-menu-map [semantic-options-separator] nil) 1098 (define-key cedet-menu-map [semantic-options-separator] nil)
1097 ;; FIXME: handle semanticdb-load-ebrowse-caches 1099 ;; FIXME: handle semanticdb-load-ebrowse-caches
@@ -1099,6 +1101,9 @@ Semantic mode.
1099 (if (and (boundp mode) (eval mode)) 1101 (if (and (boundp mode) (eval mode))
1100 (funcall mode -1))))) 1102 (funcall mode -1)))))
1101 1103
1104(defun semantic-completion-at-point-function ()
1105 'semantic-ia-complete-symbol)
1106
1102;;; Autoload some functions that are not in semantic/loaddefs 1107;;; Autoload some functions that are not in semantic/loaddefs
1103 1108
1104(autoload 'global-semantic-idle-completions-mode "semantic/idle" 1109(autoload 'global-semantic-idle-completions-mode "semantic/idle"