Tandem pseudopericyclic reactions: [1,5]-X sigmatropic shift/6pi-electrocyclic ring closure converting N-(2-X-carbonyl)phenyl ketenimines into 2-X-quinolin-4(3H)-ones.