[2,3-g] or [2,3-h]quinoline derivatives were prepared from 7-(or 8, or 9)amino-1,5-benzodiazepin-2-ones by the Doebner-von Miller quinoline synthesis. The structure of the cyclized products depends on the position of the primary amino group and on the substituents of the diazepine ring of the starting compounds. The regiochemical outcome of the reaction was estimated by calculating average local ionization energies on the molecular surface at the Density Functional Theory (DFT) level of theory.