default-directory as local var.
(compilation-directory): Mark as safe local var.
,(expand-file-name "compilation.txt" data-directory))
:group 'compilation)
+;;;###autoload(put 'compilation-directory 'safe-local-variable 'stringp)
(defvar compilation-directory nil
"Directory to restore to when doing `recompile'.")
highlight-regexp))
;; Output a mode setter, for saving and later reloading this buffer.
(insert "-*- mode: " name-of-mode
- "; default-directory: " (prin1-to-string default-directory)
+ "; compilation-directory: " (prin1-to-string compilation-directory)
" -*-\n"
(format "%s started at %s\n\n"
mode-name