             (funcall ac-init-function)))
       (let* ((candidates
               (if (or ac-completing
-                      (eq ac-auto-start t)
-                      (and (integerp ac-auto-start)
-                           (>= (length ac-prefix) ac-auto-start)))
+                      (not (integerp ac-auto-start))
+                      (>= (length ac-prefix) ac-auto-start))
                   (save-excursion
                     (funcall ac-candidate-function))))
              (current-width (if ac-menu (ac-menu-width ac-menu) 0))


;;; History:

;; 2008-02-03 MATSUYAMA Tomohiro <t.matsuyama.pub@gmail.com>
;;
;;      * omni completion redesign


(defun ac-on-post-command ()
  (progn                                ; ignore-errors
    (if (and (or ac-auto-start
                 ac-completing)
             (not isearch-mode)
             (ac-trigger-command-p))
        (ac-start))))
