Skip to content

Commit

Permalink
only try to deactivate modes we're not using when we can actually do so
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Nov 25, 2008
1 parent 26a00c6 commit f54ffd9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions textmate.el
Expand Up @@ -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

0 comments on commit f54ffd9

Please sign in to comment.