"March", tune no.26, page 41, in the "Highland Airs and Quicksteps" section of Kerr's "Merry Melodies", volume 1, c.1880.
Much of Kerr's (that volume in particular) stayed in the Scottish danceband repertoire until the present day so whoever wrote the song will have heard it used for a dance.