Function: test-completion-ignore-case
test-completion-ignore-case is a byte-compiled function defined in
complete.el.gz.
Signature
(test-completion-ignore-case STR TABLE PRED)
Documentation
Like test-completion, but ignores case when possible.
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/complete.el.gz
(defun test-completion-ignore-case (str table pred)
"Like `test-completion', but ignores case when possible."
;; Binding completion-ignore-case to nil ensures, for compatibility with
;; standard completion, that the return value is exactly one of the
;; possibilities. Do this binding only if pred is nil, out of paranoia;
;; perhaps it is safe even if pred is non-nil.
(if pred
(test-completion str table pred)
(let ((completion-ignore-case nil))
(test-completion str table pred))))