Skip to content

Instantly share code, notes, and snippets.

@abicky
Created June 19, 2012 18:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abicky/2955604 to your computer and use it in GitHub Desktop.
Save abicky/2955604 to your computer and use it in GitHub Desktop.
patch for auto-complete.el (fix a bug that ac-auto-start is ignored)
diff --git auto-complete.el auto-complete.el
index 286c2d4..7a7b418 100644
--- auto-complete.el
+++ auto-complete.el
@@ -841,7 +841,8 @@ You can not use it in source definition like (prefix . `NAME')."
(eval prefix))))
(if (and point
(integerp req)
- (< (- current point) req))
+ (< (- current point)
+ (or (and requires (max req requires)) req)))
(setq point nil))
(if point
(setq prefix-def prefix))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment