Subject: bug#24415: 24.4; issue with big file variable

From: [email-masked]
Date: Mon, 12 Sep 2016 08:23:04 -0400

Stephen Berman <[email-masked]> writes:

>
> It's a hard limit in hack-local-variables:
>
> 	;; Look for "Local variables:" line in last page.
> 	(save-excursion
> 	  (goto-char (point-max))
> 	  (search-backward "\n\^L" (max (- (point-max) 3000) (point-min))
> 			   'move)
>
> I don't know how well-known this is; AFAICT it's not documented.

It's documented in the manual, (emacs) Specifying File Variables

       Apart from using a `-*-' line, you can define file local variables
    using a "local variables list" near the end of the file.  The start of
    the local variables list should be no more than 3000 characters from
    the end of the file, and must be on the last page if the file is
    divided into pages.