elispindex/fundoc: add new function to fix a bug with non-extended doc