modify `preceeding-sexp` and `pp-last-sexp` in motion state (fix #373)
fix repeat for `auto-complete`

The function `auto-complete` requires the same repeat-recording as
`ac-complete`.