Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
upgrade
  • Loading branch information
jaypei committed Aug 11, 2014
1 parent a17b1fe commit 2f75a89
Show file tree
Hide file tree
Showing 1,255 changed files with 164,661 additions and 25,044 deletions.

This file was deleted.

175 changes: 0 additions & 175 deletions emacsconf/emacs.d/elpa/auto-complete-20140618.2217/dict/python-mode

This file was deleted.

Expand Up @@ -4,7 +4,7 @@


;;;### (autoloads (global-auto-complete-mode auto-complete-mode auto-complete)
;;;;;; "auto-complete" "auto-complete.el" (21435 39507 0 0))
;;;;;; "auto-complete" "auto-complete.el" (21480 8900 0 0))
;;; Generated autoloads from auto-complete.el

(autoload 'auto-complete "auto-complete" "\
Expand Down Expand Up @@ -41,7 +41,7 @@ See `auto-complete-mode' for more information on Auto-Complete mode.
;;;***

;;;### (autoloads (ac-config-default) "auto-complete-config" "auto-complete-config.el"
;;;;;; (21435 39507 0 0))
;;;;;; (21480 8900 0 0))
;;; Generated autoloads from auto-complete-config.el

(autoload 'ac-config-default "auto-complete-config" "\
Expand All @@ -51,7 +51,7 @@ See `auto-complete-mode' for more information on Auto-Complete mode.

;;;***

;;;### (autoloads nil nil ("auto-complete-pkg.el") (21435 39507 930288
;;;### (autoloads nil nil ("auto-complete-pkg.el") (21480 8900 902866
;;;;;; 0))

;;;***
Expand Down
@@ -0,0 +1,2 @@
(define-package "auto-complete" "20140803.2118" "Auto Completion for GNU Emacs"
'((popup "0.5.0")))
Expand Up @@ -100,6 +100,11 @@
:type 'boolean
:group 'auto-complete)

(defcustom ac-flycheck-poll-completion-end-interval 0.5
"Polling interval to restart automatically flycheck's checking after completion is end."
:type 'float
:group 'auto-complete)

(defcustom ac-use-fuzzy (and (locate-library "fuzzy") t)
"Non-nil means use fuzzy matching."
:type 'boolean
Expand Down Expand Up @@ -1705,18 +1710,38 @@ that have been made before in this function. When `buffer-undo-list' is
(ac-inline-update)))
(error (ac-error var))))

(defvar ac-flycheck-poll-completion-end-timer nil
"Timer to poll end of completion.")

(defun ac-syntax-checker-workaround ()
(if ac-stop-flymake-on-completing
(progn
(make-local-variable 'ac-flycheck-poll-completion-end-timer)
(when (require 'flymake nil t)
(defadvice flymake-on-timer-event (around ac-flymake-stop-advice activate)
(unless ac-completing
ad-do-it)))
(when (require 'flycheck nil t)
(defadvice flycheck-handle-idle-change (around ac-flycheck-stop-advice activate)
(if ac-completing
(setq ac-flycheck-poll-completion-end-timer
(run-at-time ac-flycheck-poll-completion-end-interval
nil
#'flycheck-handle-idle-change))
ad-do-it))))
(when (featurep 'flymake)
(ad-disable-advice 'flymake-on-timer-event 'around 'ac-flymake-stop-advice))
(when (featurep 'flycheck)
(ad-disable-advice 'flycheck-handle-idle-change 'around 'ac-flycheck-stop-advice))))

(defun ac-setup ()
(if ac-trigger-key
(ac-set-trigger-key ac-trigger-key))
(if ac-use-comphist
(ac-comphist-init))
(unless ac-clear-variables-every-minute-timer
(setq ac-clear-variables-every-minute-timer (run-with-timer 60 60 'ac-clear-variables-every-minute)))
(if ac-stop-flymake-on-completing
(defadvice flymake-on-timer-event (around ac-flymake-stop-advice activate)
(unless ac-completing
ad-do-it))
(ad-disable-advice 'flymake-on-timer-event 'around 'ac-flymake-stop-advice)))
(ac-syntax-checker-workaround))

;;;###autoload
(define-minor-mode auto-complete-mode
Expand Down

0 comments on commit 2f75a89

Please sign in to comment.