Use 'make-variable-buffer-local' instead of 'make-local-variable'