auto-complete/auto-complete — pull request #138 by tkf (2012-08-29 18:48:29+00:00)
Title: Add `table' property to change syntax table to change it per ac-source basis

With this change, you can do (pseudo) omni completion without matching prefix by yourself.

```cl
(require 'auto-complete-config)

(defvar my-dotty-syntax-table
(let ((table (make-syntax-table c-mode-syntax-table)))
(modify-syntax-entry ?. "w" table)
(modify-syntax-entry ?_ "w" table)
table))

(ac-define-source my-dotted-source
'((candidates . (list "Spam.Egg.Onigiri"
"Spam.Egg.Foo"
"Spam.Foo.Baz"))
(table . my-dotty-syntax-table)))

(setq ac-sources '(ac-source-my-dotted-source))
(global-auto-complete-mode 1)
```

Result:

Change is small: `save-excursion' in the function `ac-prefix' is wrapped by `ac-maybe-with-syntax-table'.

Note: the original PR is #104 (Japanese)

----

There is one problem. I found that popup vanishes when typing just after dot. Probably ac-auto-start counts characters after dot? Any thoughts on how to fix it?