This specific terrier breed remained relatively unknown outside the Borders of Scotland until 1815 when Sir Walter Scott's novel “Guy Mannering” was published. While serving in the area as the Sheriff of Selkirkshire, Scott had learned of how these specialist terriers could ‘work’ (to hunt what were then considered to be nuisance predators) foxes, badgers, and otters. The "Dandie Dinmont" is a small Scottish dog breed in the terrier family. The breed has a very long body, short legs, and a distinctive topknot of hair on the head.

When Scott wrote “Guy Mannering”, he included a character by the name of Dandie Dinmont who owned several terriers named Pepper and Mustard after the colours of their coats. The Dinmont character was partly based on the real-life farmer and terrier owner, James Davidson, who used the generic terms of Pepper and Mustard for his dogs, depending on their coat colourings. Davidson's dogs came from a variety of sources. Davidson documented his breeding, and he has been accepted as the originator of the modern breed.

The novel by Scott was hugely popular in its day, selling out on the first day of its publication. The story has many twists and turns around the fortunes of Harry Bertram from his kidnap as a young boy, swindled of his inheritance, through Holland and India and back to his birthplace where wrongs are righted and love triumphs. Late in the story Bertram rescues Dandie Dinmont who in turn helps Bertram regain what is rightfully his.

More Info: en.wikipedia.org