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