Subject: Re: bug#23407: .dir-local settings get obliterated on running a major mode function.

From: Glenn Morris <[email-masked]>
Date: Sat, 30 Apr 2016 14:50:08 -0400

It's the same with file-local variables, and it always has been.
I don't think this is a bug.