Function: ido-word-matching-substring
ido-word-matching-substring is a byte-compiled function defined in
ido.el.gz.
Signature
(ido-word-matching-substring WORD)
Documentation
Return part of WORD before first match to ido-change-word-sub.
If ido-change-word-sub cannot be found in WORD, return nil.
Source Code
;; Defined in /usr/src/emacs/lisp/ido.el.gz
(defun ido-word-matching-substring (word)
"Return part of WORD before first match to `ido-change-word-sub'.
If `ido-change-word-sub' cannot be found in WORD, return nil."
(let ((case-fold-search ido-case-fold))
(let ((m (string-match ido-change-word-sub (ido-name word))))
(if m
(substring (ido-name word) m)
;; else no match
nil))))