I hadn't realised that copy-marker could be used to create a marker and set the insertion type in a single step. Attached is a replacement patch which uses copy-marker and also makes the same change for Imenu markers created by imenu-generic-expression. -- Morgan Willcock