GNU bug report logs - #24415
24.4; issue with big file variable

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Andrea Rossetti <andrea.rossetti@HIDDEN>; Keywords: notabug; dated Sun, 11 Sep 2016 21:55:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) notabug. Request was from Eli Zaretskii <eliz@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 24415 <at> debbugs.gnu.org:


Received: (at 24415) by debbugs.gnu.org; 12 Sep 2016 13:08:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 12 09:08:22 2016
Received: from localhost ([127.0.0.1]:57117 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bjQyE-0001JK-NB
	for submit <at> debbugs.gnu.org; Mon, 12 Sep 2016 09:08:22 -0400
Received: from mout.gmx.net ([212.227.17.21]:58684)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stephen.berman@HIDDEN>) id 1bjQyC-0001J5-5k
 for 24415 <at> debbugs.gnu.org; Mon, 12 Sep 2016 09:08:20 -0400
Received: from rosalinde ([89.245.119.102]) by mail.gmx.com (mrgmx101) with
 ESMTPSA (Nemesis) id 0Lpfas-1b44X80mv8-00fSN8; Mon, 12 Sep 2016 15:08:00
 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: npostavs@HIDDEN
Subject: Re: bug#24415: 24.4; issue with big file variable
References: <CADjuuimYkxXrHHtN-u5VheP95u+YfE1zFizJ=e+RAaMS0tNhjA@HIDDEN>
 <87k2eh1p6t.fsf@HIDDEN> <87a8fd1f4n.fsf@HIDDEN>
Date: Mon, 12 Sep 2016 15:07:58 +0200
In-Reply-To: <87a8fd1f4n.fsf@HIDDEN> (npostavs's message of
 "Mon, 12 Sep 2016 08:23:04 -0400")
Message-ID: <87bmzt1d1t.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K0:HYTuyB8EBARhba4N9WGSy4weVh6poD3b/FlV5/DsT5nAgOqCJT2
 N2n/QFIkPY52HkqmldZyKHJxqEUH3z16bp24RmidmAlC8EDrL7zGrUP43dvqFqc689a+s6b
 5W4FXWfK0F52Bt5mZgHc0HySzq2gjHPq8DWsO36C6vmCGa16Nt1G0ocO2PhnymqAfh/1Yoa
 czEyC7RYn/Fx32jmK0+tw==
X-UI-Out-Filterresults: notjunk:1;V01:K0:Ythj1g02X6I=:J8Xl8wASGcqRPNQnsy5SkC
 3UCLOFlAcj2/EO1vSEfs4dvT4Omlfx4jwgJAA+tWZzYAzIM9wU6zjB2eOcvQdsHvUO9q53YFz
 ahgw7/sXLGREs0/Fut8ZIexVkGm+NZAr1chwoQaHGXNvbzRY1Pas+4pAWXtFwo1HmvkbD2pn4
 55wftdz/WIiJ36B90SHAPrmN7hh5T5gqSHiClct5kGPkd7xIpbrw/h/3RUlOl9JTCynGhNgwk
 7aAmh40hwcYaEVgJCDhm1+2p5S57/Vg7rspw6AcOLc9jMf6CbP2ZijeAd0L5iarP7BM8b2M/g
 zkYC6IoSg2XXkxdihc7ZySH/8CiGqULlzNMSyZBks9qhJTzopNOd4LWmctRLhQO6XTzvqIik0
 /r6wA7n8MxoydL/4ItpKmDJHm3UI1DwZ0An95whqqLz3Mcg5nzHfM9u69Km4O9OxJcdpDo31B
 QK2F5+phNOWxyb6r+PAmT6EtC3QUecsX8BctzxSz57X6974k04PrxTcUb2RMuhwIls6SG4We+
 VzlwjkF/RtiAV/27stXrFz8/6V6YKzHeX134i4kwUY0zUyXSRfravkj+qh5rMqgO1f39H4mSW
 zrK99pNfnybQVFC6DAYUGx+iAUvUbOA07GwLMOiCUp1YSRzW58yHxiBvIseVfo+pYxMC9E70W
 4W4hDHOvzxcMRJBjhJi8gZabDkzCjQ8Q1YNM7XU42jkcjY6ckjy8guLwKlxM7xu8AZp2HZG43
 E2Bk6i30/luzSCSyYC4exFCEIOwjyYExHd+qHqzvvfGJl8sSzv4jdKSNHXRfiRAuLkGrSmQn9
 7O8+wd5
X-Spam-Score: -3.0 (---)
X-Debbugs-Envelope-To: 24415
Cc: Andrea Rossetti <andrea.rossetti@HIDDEN>, 24415 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.0 (---)

On Mon, 12 Sep 2016 08:23:04 -0400 npostavs@HIDDEN wrote:

> Stephen Berman <stephen.berman@HIDDEN> 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.

Mea culpa; I looked there before posting but obviously not closely
enough.

Steve Berman




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#24415; Package emacs. Full text available.

Message received at 24415 <at> debbugs.gnu.org:


Received: (at 24415) by debbugs.gnu.org; 12 Sep 2016 12:22:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 12 08:22:49 2016
Received: from localhost ([127.0.0.1]:57095 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bjQG9-0000Hm-Ic
	for submit <at> debbugs.gnu.org; Mon, 12 Sep 2016 08:22:49 -0400
Received: from mail-oi0-f43.google.com ([209.85.218.43]:36722)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <npostavs@HIDDEN>) id 1bjQG8-0000HZ-Gu
 for 24415 <at> debbugs.gnu.org; Mon, 12 Sep 2016 08:22:48 -0400
Received: by mail-oi0-f43.google.com with SMTP id q188so194181734oia.3
 for <24415 <at> debbugs.gnu.org>; Mon, 12 Sep 2016 05:22:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=sender:from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=QoNOcWoDRLtlpPiY0T3sLbQs/4IlCw1xcuOeqM8Xe7Y=;
 b=hnWTacJDIanF3omUiqBrC/ENpy2AI2KKAW8zq5LKhHscFi/P+WwLrNwJ3loufz4CQE
 22Ky+Kjb9o24uf0lzqODVBcyQw2+7R5KY6z3aCTanKAg8q/dBIaB07vHHfhta8fvVjGW
 7G0ldsBgJDa8bctNGOfXZX1e5VKGolzIA/+YOkPOkNlutBnk5BsEZOtAi7IfzYOcmx8t
 Au+V2KaryYt+q/GBSCwp8DmVeugU/9Z4Nu33qKrK64JaMI54173I3G5pusjsefmfBZkY
 4LTDMqAser9uXj3mSFh+s2JFY86X4+OzSfeQ2YHC5B3GT7NgBWoopgFtTMBMDf1lV9oW
 QkBg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:sender:from:to:cc:subject:references:date
 :in-reply-to:message-id:user-agent:mime-version;
 bh=QoNOcWoDRLtlpPiY0T3sLbQs/4IlCw1xcuOeqM8Xe7Y=;
 b=bQZwybbku9obC55dyxuyDiAupK5tt8N5NOITHeXDoR61iGYKuMX3khXLmMInTZYlzd
 c3dpq5e4DqEH1N7Kzf8O3bv7TtsLFv/aMmpwtApRVvxjxoueQlQJwyS5vsI2Z8tRxXXi
 nAwb22UwmDadVVPZKgYvYe+nd/f8cNEl25SB5LM3tQvyuImJ+T++xlTBGe77SfFtcHiR
 P+thZ1G4+KAS4fxpmkbPLlGrP83DyJeR+YU2slFdablGR60NU0xyYZw0GbC8AmSt8TrN
 Bn1AK4tsLZST6wTo38QsG0zkKR+kwKAiWbPcHhet69avBUuWiHFJkGgKo8PkD404jYKs
 7l4A==
X-Gm-Message-State: AE9vXwM4WnOKBqmTklWLW1ZLiUS7rSMf/fdu2sHUExTphrbbqdHyTfEcsLf4Q3sDKPfZGw==
X-Received: by 10.202.95.133 with SMTP id t127mr23112806oib.80.1473682962923; 
 Mon, 12 Sep 2016 05:22:42 -0700 (PDT)
Received: from zony ([45.2.7.130])
 by smtp.googlemail.com with ESMTPSA id f14sm9419353ita.10.2016.09.12.05.22.42
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Mon, 12 Sep 2016 05:22:42 -0700 (PDT)
From: npostavs@HIDDEN
To: Stephen Berman <stephen.berman@HIDDEN>
Subject: Re: bug#24415: 24.4; issue with big file variable
References: <CADjuuimYkxXrHHtN-u5VheP95u+YfE1zFizJ=e+RAaMS0tNhjA@HIDDEN>
 <87k2eh1p6t.fsf@HIDDEN>
Date: Mon, 12 Sep 2016 08:23:04 -0400
In-Reply-To: <87k2eh1p6t.fsf@HIDDEN> (Stephen Berman's message of "Mon, 12
 Sep 2016 10:45:46 +0200")
Message-ID: <87a8fd1f4n.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.2 (/)
X-Debbugs-Envelope-To: 24415
Cc: Andrea Rossetti <andrea.rossetti@HIDDEN>, 24415 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.2 (/)

Stephen Berman <stephen.berman@HIDDEN> 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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#24415; Package emacs. Full text available.

Message received at 24415 <at> debbugs.gnu.org:


Received: (at 24415) by debbugs.gnu.org; 12 Sep 2016 08:45:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 12 04:45:56 2016
Received: from localhost ([127.0.0.1]:57000 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bjMsG-00024r-EF
	for submit <at> debbugs.gnu.org; Mon, 12 Sep 2016 04:45:56 -0400
Received: from mout.gmx.net ([212.227.17.20]:55671)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stephen.berman@HIDDEN>) id 1bjMsE-00024d-ME
 for 24415 <at> debbugs.gnu.org; Mon, 12 Sep 2016 04:45:55 -0400
Received: from rosalinde ([89.245.119.102]) by mail.gmx.com (mrgmx102) with
 ESMTPSA (Nemesis) id 0MHal6-1bkSnf1noq-003Mfk; Mon, 12 Sep 2016 10:45:47
 +0200
From: Stephen Berman <stephen.berman@HIDDEN>
To: Andrea Rossetti <andrea.rossetti@HIDDEN>
Subject: Re: bug#24415: 24.4; issue with big file variable
References: <CADjuuimYkxXrHHtN-u5VheP95u+YfE1zFizJ=e+RAaMS0tNhjA@HIDDEN>
Date: Mon, 12 Sep 2016 10:45:46 +0200
In-Reply-To: <CADjuuimYkxXrHHtN-u5VheP95u+YfE1zFizJ=e+RAaMS0tNhjA@HIDDEN>
 (Andrea Rossetti's message of "Sun, 11 Sep 2016 23:52:56 +0200")
Message-ID: <87k2eh1p6t.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K0:65t+Xys+OiVUo63ejIOu+QP5iNTWhq63WGYoVQ+SbxlAAevo0h8
 +n4BqJeuFcxTSrEdcv91XrpF+M1nCDDsW6kmcpnUHulXDegQUvdVi2t+Mgpa1lo2kw8kdOf
 wPwvErs2EQJHDMAxy0IspjJuBdFg66N5Oae2nVUt7WGMLl1eALuJAzAL65yKTarU7VCsvtN
 NtdbeCyy52oJKqkBNJ6RA==
X-UI-Out-Filterresults: notjunk:1;V01:K0:DMgYvGor0AA=:ERxfIxx6yiZ0iO8jgx1H5A
 7oZBrkyQhpxH6TwIzCo0L6XZF+DkF3TFNZBBLpw78HVzuacYJHSVegpvMY4kmjfoxAmFjIQSC
 mriDHV3M2QbRK+aXMxeChTdc5BH0XmXShBZ73OSmXTWtscqrLOOemzPobHXrwttZfBiNrcvf6
 H1r7oBMmxuOCOeHl/Q/hHncsPiqsAZGrU9LMymd5e65cn7/IEEv8tq4Ut2gSaKN/CUND5raJA
 IGX63l/JfW5XxgEhYQX8g1G/9uUyCWb+3ewBU+9ZclU0Nm0JW/Mnq0juscccZyUSy2ABNeuz+
 msoi265GJp/ul3R9Yri/PAvwx/moa56pG4Ik4hqYNUuf/HviJagD91+GeNHMnbQemA1vVWWzT
 kQpnnEr1O5cYQ1hrbFYGX3ZFptQXHxBfL7xYKLP1DclsoCKMDMqZY9FXkuu1LfB0X6j7FlIyb
 51uaSaE5L/RI4h9dfZTCBw6gj524XkcfmzsIlFltnoNUu8SFiWZfomHMG4wNNyLPVf5WgZw2z
 vkY1ok669+AThzOnq03zVipg8Ogi5yrnEQoyKMhlCFGWfjHBuSSLrAOq3fHz+h7zZ5RJhy3Qe
 vt7C4Og/ChXX7vTKeEuhdYOlm7erdsGLUYu+E/VT5gi6tEnSev62sktMlpodkfDXnHBOgJ1zj
 Q+961mjlGByGnTLMA8Y/YSyRlFbyLcswCiJtAZDVcbN3M17M1vBdUZ8gMH/zU5upVkPzQfxKv
 D0/rq5+GaqySpO4X6/ttoqJCzLCaNKddpVikHSe9GjeeHCBRncVzjt0qbo6rBIZzPfmN2PHC4
 r3FDHa4
X-Spam-Score: -2.9 (--)
X-Debbugs-Envelope-To: 24415
Cc: 24415 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.9 (--)

On Sun, 11 Sep 2016 23:52:56 +0200 Andrea Rossetti <andrea.rossetti@HIDDEN> wrote:

> Hi guys,
>
>   if a file variable is a list longer than a certain size, then it's
> ignored on file loading. Test case follows:
>
> - start "emacs -Q"
> - M-: (add-file-local-variable 'v1 (make-list 2000 1)) RET
> - C-x C-w example01.el RET
> - close Emacs and restart "emacs -Q"
> - C-x C-f example01.el RET
> - bad behaviour: at this point a confirm message to load the file
>   variable should have appeared ("... safe variables blah blah... do you
>   want to apply it? y/n/!")  but it does not, and the variable is not
>   initialized
>
> Further observations:
>
>   - if you replay this same test with a shorter v1, for example lowering
>     "2000" to "1000", then the behaviour will be fine: the confirm
>     message will appear and inspection of the variable will show correct
>     value.
>
>   - it doesn't seem to depend on the max length of a single text line:
>     you get the error even when you re-run a similar test that saves two
>     file-local variables v1 and v2, each being "(make-list 1000 1)".
>
>   Does the test reproduce in the same way on your workstation? Do you
> think it's a bug, or am I just hitting some well-known hard limit?

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.

Steve Berman




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#24415; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 11 Sep 2016 21:54:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 11 17:54:35 2016
Received: from localhost ([127.0.0.1]:56831 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bjChv-0003Tk-DN
	for submit <at> debbugs.gnu.org; Sun, 11 Sep 2016 17:54:35 -0400
Received: from eggs.gnu.org ([208.118.235.92]:58129)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <andrea.rossetti@HIDDEN>) id 1bjCht-0003TY-6J
 for submit <at> debbugs.gnu.org; Sun, 11 Sep 2016 17:54:33 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <andrea.rossetti@HIDDEN>) id 1bjChn-0005oh-6J
 for submit <at> debbugs.gnu.org; Sun, 11 Sep 2016 17:54:28 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:46848)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <andrea.rossetti@HIDDEN>) id 1bjChn-0005oQ-2x
 for submit <at> debbugs.gnu.org; Sun, 11 Sep 2016 17:54:27 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:49096)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <andrea.rossetti@HIDDEN>) id 1bjChk-0002ek-DU
 for bug-gnu-emacs@HIDDEN; Sun, 11 Sep 2016 17:54:25 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <andrea.rossetti@HIDDEN>) id 1bjChg-0005ni-92
 for bug-gnu-emacs@HIDDEN; Sun, 11 Sep 2016 17:54:23 -0400
Received: from mail-wm0-f48.google.com ([74.125.82.48]:36879)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <andrea.rossetti@HIDDEN>) id 1bjChf-0005ie-VA
 for bug-gnu-emacs@HIDDEN; Sun, 11 Sep 2016 17:54:20 -0400
Received: by mail-wm0-f48.google.com with SMTP id c131so29169875wmh.0
 for <bug-gnu-emacs@HIDDEN>; Sun, 11 Sep 2016 14:53:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:from:date:message-id:subject:to;
 bh=ny3keSwcsuQR9kS3xIclFB/cVB+oSR3Bj38OpvR2hL0=;
 b=zrWDbYh4H29PorJC897X/pHkeRMSZiK6LfRPL9yGtw97K2k4bkx8grAt/irrtZSfbV
 04ed5Nm0U7pFtdIaNLan0Qj1wEzyDkhBtDth+Rixt9a887UW3d3NUgL4rEAXHrQhA8NG
 chyNdgnM4Psp4TxUBFoq6GkeC6EXhFCBhkyCkFcxwgRSODzs/UpmR4FKHz9KIcu5W5rQ
 ctG+bhNHztRO4JxG3xaPevq8NmxEbypGb6WftyPXFFAfCuz0Xxeff0FxcQ66svLjp9BY
 aws8woOJZNCfsJeiaA0tOf6ORlFZPalufJbZgelWmBFXycv1mNhaPMME26sdKpTPxZoW
 btTg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=ny3keSwcsuQR9kS3xIclFB/cVB+oSR3Bj38OpvR2hL0=;
 b=gafGo3NC1W3X2HT7RXdRx7o9GEVHNw2drxdhht+2MRFWvEaugFCROKJN2eKC10/7LA
 s0oaQT8vBn3I0wF6O+sJ71jYpEnW3WdT0p29lphLI151N3BzzwFrTUqO2y1DDKDfw1ve
 EqBkTVyzWv4CTrTV0wZH3U0eOKUP7I2ry8zvVBcbU5VxMY0WmQilCfbsWrcSf4m0j5F8
 +F4ZGiYcGZ11WueX5qEew1im5JY48lfm6778V+Y+tmwC4fcDia4rbDH5ZAb8zJOoRCC1
 3ohk6K7Q3Ifk4LCcvwcOGg0hyPrY6o4Nb98iCEy6mfGjlQWMjHW/Atel4ArQ19iesIK/
 YpqQ==
X-Gm-Message-State: AE9vXwNeZlHdHX++0+Yg9RL8wEuxFJGBFiNuVIfQBpglAEtquTAssYX9Guvhcnf3McmZoMZ8YK2h429VRs/01Q==
X-Received: by 10.28.212.211 with SMTP id l202mr8110200wmg.109.1473630777440; 
 Sun, 11 Sep 2016 14:52:57 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.194.179.2 with HTTP; Sun, 11 Sep 2016 14:52:56 -0700 (PDT)
Received: by 10.194.179.2 with HTTP; Sun, 11 Sep 2016 14:52:56 -0700 (PDT)
From: Andrea Rossetti <andrea.rossetti@HIDDEN>
Date: Sun, 11 Sep 2016 23:52:56 +0200
Message-ID: <CADjuuimYkxXrHHtN-u5VheP95u+YfE1zFizJ=e+RAaMS0tNhjA@HIDDEN>
Subject: 24.4; issue with big file variable
To: bug-gnu-emacs@HIDDEN
Content-Type: multipart/alternative; boundary=001a1146f61e05011b053c426726
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

--001a1146f61e05011b053c426726
Content-Type: text/plain; charset=UTF-8

Hi guys,

  if a file variable is a list longer than a certain size, then it's
ignored on file loading. Test case follows:

- start "emacs -Q"
- M-: (add-file-local-variable 'v1 (make-list 2000 1)) RET
- C-x C-w example01.el RET
- close Emacs and restart "emacs -Q"
- C-x C-f example01.el RET
- bad behaviour: at this point a confirm message to load the file
  variable should have appeared ("... safe variables blah blah... do you
  want to apply it? y/n/!")  but it does not, and the variable is not
  initialized

Further observations:

  - if you replay this same test with a shorter v1, for example lowering
    "2000" to "1000", then the behaviour will be fine: the confirm
    message will appear and inspection of the variable will show correct
    value.

  - it doesn't seem to depend on the max length of a single text line:
    you get the error even when you re-run a similar test that saves two
    file-local variables v1 and v2, each being "(make-list 1000 1)".

  Does the test reproduce in the same way on your workstation? Do you
think it's a bug, or am I just hitting some well-known hard limit?

  Thanks for any hint or clarification, kindest regards.

Andrea

In GNU Emacs 24.4.1 (x86_64-w64-mingw32)
of 2014-10-21 on KAEL
Windowing system distributor `Microsoft Corp.', version 6.1.7600
Configured using:
`configure --prefix=/z/emacs --host=x86_64-w64-mingw32
--target=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --with-wide-int
--with-jpeg --with-xpm --with-png --with-tiff --with-rsvg --with-xml2
--with-gnutls --with-xft --with-sound=yes --with-file-notification=yes
--without-dbus --without-imagemagick 'CFLAGS=-Ofast
-fomit-frame-pointer -funroll-loops -g0 -pipe' 'CPPFLAGS=-DNDEBUG
-DDBUS_STATIC_BUILD' 'LDFLAGS=-static-libgcc -static-libstdc++ -static
-s -Wl,-s''

Important settings:
  value of $LANG: ITA
  locale-coding-system: cp1252

--001a1146f61e05011b053c426726
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<p>Hi guys,</p>
<p>=C2=A0 if a file variable is a list longer than a certain size, then it&=
#39;s<br>
ignored on file loading. Test case follows:</p>
<p>- start &quot;emacs -Q&quot;<br>
- M-: (add-file-local-variable &#39;v1 (make-list 2000 1)) RET<br>
- C-x C-w example01.el RET<br>
- close Emacs and restart &quot;emacs -Q&quot;<br>
- C-x C-f example01.el RET<br>
- bad behaviour: at this point a confirm message to load the file<br>
=C2=A0 variable should have appeared (&quot;... safe variables blah blah...=
 do you<br>
=C2=A0 want to apply it? y/n/!&quot;)=C2=A0 but it does not, and the variab=
le is not<br>
=C2=A0 initialized</p>
<p>Further observations:</p>
<p>=C2=A0 - if you replay this same test with a shorter v1, for example low=
ering<br>
=C2=A0=C2=A0=C2=A0 &quot;2000&quot; to &quot;1000&quot;, then the behaviour=
 will be fine: the confirm<br>
=C2=A0=C2=A0=C2=A0 message will appear and inspection of the variable will =
show correct<br>
=C2=A0=C2=A0=C2=A0 value.</p>
<p>=C2=A0 - it doesn&#39;t seem to depend on the max length of a single tex=
t line:<br>
=C2=A0=C2=A0=C2=A0 you get the error even when you re-run a similar test th=
at saves two<br>
=C2=A0=C2=A0=C2=A0 file-local variables v1 and v2, each being &quot;(make-l=
ist 1000 1)&quot;.</p>
<p>=C2=A0 Does the test reproduce in the same way on your workstation? Do y=
ou<br>
think it&#39;s a bug, or am I just hitting some well-known hard limit?</p>
<p>=C2=A0 Thanks for any hint or clarification, kindest regards.</p>
<p>Andrea<br></p>
<p>In GNU Emacs 24.4.1 (x86_64-w64-mingw32)<br>
 of 2014-10-21 on KAEL<br>
Windowing system distributor `Microsoft Corp.&#39;, version 6.1.7600<br>
Configured using:<br>
 `configure --prefix=3D/z/emacs --host=3Dx86_64-w64-mingw32<br>
 --target=3Dx86_64-w64-mingw32 --build=3Dx86_64-w64-mingw32 --with-wide-int=
<br>
 --with-jpeg --with-xpm --with-png --with-tiff --with-rsvg --with-xml2<br>
 --with-gnutls --with-xft --with-sound=3Dyes --with-file-notification=3Dyes=
<br>
 --without-dbus --without-imagemagick &#39;CFLAGS=3D-Ofast<br>
 -fomit-frame-pointer -funroll-loops -g0 -pipe&#39; &#39;CPPFLAGS=3D-DNDEBU=
G<br>
 -DDBUS_STATIC_BUILD&#39; &#39;LDFLAGS=3D-static-libgcc -static-libstdc++ -=
static<br>
 -s -Wl,-s&#39;&#39;</p>
<p>Important settings:<br>
=C2=A0 value of $LANG: ITA<br>
=C2=A0 locale-coding-system: cp1252<br>
</p>

--001a1146f61e05011b053c426726--




Acknowledgement sent to Andrea Rossetti <andrea.rossetti@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#24415; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 12 Sep 2016 17:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.