From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani
Le 17/06/2017 =C3=A0 00:23, Vincent Bela=C3=AFche a =C3=A9crit :
>
>
* In find-auto-coding there is no such thing as regexp operator "^&quo= t; (for
=C2=A0 bol) or "$" (for eol) used, instead there is "[\r\n]&= quot;. I suspect that
=C2=A0 this is because at this stage the coding system is not yet set, and<= br> =C2=A0 therefore there is no such thing as bol or eol, the whole buffer is = a
=C2=A0 single line. If as such, I withdraw my previous statement that code<= br> =C2=A0 factorization is desirable.
* In both cases what is sought for is the *FIRST* occurrence searched
=C2=A0 *FORWARD* of case sensitive string "Local Variables:" in t= he buffer
=C2=A0 tailing 3000--3072 characters. I think that this is a problem and th= at
=C2=A0 either we should search it *BACKWARD* or after finding the 1st
=C2=A0 occurrence, possible subsequent occurrences should be searched for,<= br> =C2=A0 and the last occurrence should be considered instead.Yes, that would be consistent with normal file-local= variables.=C2=A0
=C2=A0 Maybe preventing the [ character in the prefix string is not a typo<= br> =C2=A0 but was some intentional design to allow preventing false detection = of
=C2=A0 the local variable section. I strongly recommend that before doing a= ny
=C2=A0 fix, somebody dig in file history to find when and *WHY* this [
=C2=A0 preventing has been introduced --- sorry, but I do not volunteer for=
=C2=A0 this tedious/time consuming kind of work...
With git-blame it's not really ted= ious. Commit 6b61353c0a0320ee15bb6488149735381fed62ec replaced ^\\(.*\\)[ \= t]* with [\r\n]\\([^[\r\n]*\\)[ \t]*, so I think it's almost certain th= is is a typo (the previous regex didn't exclude the [ either). Anyway, = if people want this to stay, they should have added a comment.