From f54ffd9b8e9647c515a56d3f109626f47c16adda Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Tue, 25 Nov 2008 15:14:16 -0800 Subject: [PATCH] only try to deactivate modes we're not using when we can actually do so --- textmate.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/textmate.el b/textmate.el index 5e9d5c1..dc81e9f 100644 --- a/textmate.el +++ b/textmate.el @@ -218,8 +218,11 @@ (textmate-bind-keys) ; activate preferred completion library (dolist (mode textmate-completing-minor-mode-alist) - (when (eq (car mode) textmate-completing-library) - (funcall (cadr mode) t)))) + (if (eq (car mode) textmate-completing-library) + (funcall (cadr mode) t) + (when (fboundp + (cadr (assoc (car mode) textmate-completing-function-alist))) + (funcall (cadr mode) -1))))) (provide 'textmate) ;;; textmate.el ends here