After the abortive outcome of Scotland 's first devolution referendum in March 1979 , MacCormick fought his first seat -- Edinburgh North -- at the election precipitated by the SNP 's tabling of a no-confidence motion in the Callaghan government that was passed by one vote .