bug#81516: 31.0.91; delete-file-local-variable(-prop-line) should delete "Local Variables" block (prop-line)

Eli Zaretskii <[email protected]> Thu, 30 Jul 2026 17:39:47 +0300
Newsgroups gmane.emacs.bugs
Message-ID <[email protected]>
> From: Daniel Mendler <[email protected]>
> Cc: [email protected],  [email protected],  [email protected]
> Date: Thu, 30 Jul 2026 16:18:54 +0200
> 
> Eli Zaretskii <[email protected]> writes:
> 
> >> From: Daniel Mendler <[email protected]>
> >> Cc: [email protected],  [email protected],  [email protected]
> >> Date: Thu, 30 Jul 2026 09:31:29 +0200
> >> 
> >> Eli Zaretskii <[email protected]> writes:
> >> 
> >> > Thanks.  Could we please have tests for this, including in cases where
> >> > the prop line doesn't exist, or looks similar, but isn't a prop line?
> >> 
> >> I have not found tests for file local variables. Are there any? I can
> >> write a bunch of basic tests but this will take a little more time.
> >
> > In this case, just testing the situation where all the variables are
> > deleted would be enough.  It would be good to have additional tests
> > for the file-local variables in general, but that doesn't have to be
> > part of this patch.
> 
> I attached a patch which includes tests for adding and deleting file
> local variables, also for the situation where all variables are deleted.

Thanks, now installed on the master branch, and closing the bug.