use with-current-buffer to avoid interference with font-locking

set-buffer was previously used, but shouldn't be here
Merge pull request #16 from hannesm/fix-15

use with-current-buffer to avoid interference with font-locking