Function: reset-cdabbrev

reset-cdabbrev is a byte-compiled function defined in completion.el.gz.

Signature

(reset-cdabbrev ABBREV-STRING &optional INITIAL-COMPLETIONS-TRIED)

Documentation

Reset the cdabbrev search to search for ABBREV-STRING.

INITIAL-COMPLETIONS-TRIED is a list of downcased strings to ignore during the search.

Source Code

;; Defined in /usr/src/emacs/lisp/completion.el.gz
;; Test strings for cdabbrev
;; cdat-upcase   ;;same namestring
;; CDAT-UPCASE   ;;ok
;; cdat2         ;;too short
;; cdat-1-2-3-4  ;;ok
;; a-cdat-1      ;;doesn't start correctly
;; cdat-simple   ;;ok


(defun reset-cdabbrev (abbrev-string &optional initial-completions-tried)
  "Reset the cdabbrev search to search for ABBREV-STRING.
INITIAL-COMPLETIONS-TRIED is a list of downcased strings to ignore
during the search."
  (setq cdabbrev-abbrev-string abbrev-string
	cdabbrev-completions-tried
	(cons (downcase abbrev-string) initial-completions-tried))
  (reset-cdabbrev-window t))