Professor of Scottish History at Edinburgh University, 1963-1979. Historiographer Royal in Scotland, 1979-1993.