'Interpolates values of the section options (name syntax `%(section/option)s`).
Fallback: try to wrap missing default options as "default/options" resp. "known/options"'

def _map_section_options(self, section, option, rest, map):

    if (('/' not in rest) or ('%(' not in rest)):
        return 0
    soptrep = SafeConfigParserWithIncludes.SECTION_OPTSUBST_CRE.findall(rest)
    if (not soptrep):
        return 0
    for (sopt, opt) in soptrep:
        if (sopt not in map):
            sec = sopt[:(~ len(opt))]
            seclwr = sec.lower()
            if (seclwr != 'default'):
                if (seclwr == 'known'):
                    try:
                        v = self._sections['KNOWN'][opt]
                    except KeyError:
                        try:
                            v = self._defaults[opt]
                        except KeyError:
                            continue
                else:
                    v = self.get(sec, opt, raw=True)
            else:
                try:
                    v = self._defaults[opt]
                except KeyError:
                    continue
            self._defaults[sopt] = v
            try:
                map[sopt] = v
            except:
                pass
    return 1
