Some background, I have some code that sets a default compile command depending on the mode. However, in some files, I've used the add-file-local-variable-prop-line
to create a more specific command, and this overwrites that. I need to check if compile-command has been defined for the file, so I don't assign a default value when the file already has a compile-command
.
I've tried using file-local-variables-alist
, but it's value is nil, even when there are local variables.