Prefer extensions within a macro to those outside (bug #1943)