 ;;; ac-dabbrev.el --- auto-complete.el source for dabbrev
 ;; -*- Mode: Emacs-Lisp -*-
 
-;; Copyright (C) 2008 by 101000code/101000LAB
+;; Copyright (C) 2009 by 101000code/101000LAB
 
 ;; This program is free software; you can redistribute it and/or modify
 ;; it under the terms of the GNU General Public License as published by

;;            ))

;;; Change Log
;; 0.0.4: new valiable:ac-dabbrev-reset-char. this valiable is suga idea. this valiable reset count when this valiable have insert char.
;;        new valiable:ac-dabbrev-reset-always. reset count when ac-candidates is nil and this valiable non-nil.
;; -.-.-: document typo fix.

    (ac-dabbrev-find-limit-expansions abbrev ac-candidate-max nil)))

(lexical-let ((count 1))
  (defun ac-dabbrev-set-count ()
    (setq command-char last-command-char)
    (if (memq last-command ac-dabbrev-trigger-commands)
        (incf count)
      (setq count 1))
