A palladium-catalyzed synthetic approach to new Huperzine A analogues modified at the pyridone ring.