Use make-local-variable rather than make-variable-buffer-local.
Attach a file by drag & drop or click to upload