From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= Subject: =?UTF-8?B?QnVnOiBvcmctaGllcmFyY2hpY2FsLXRvZG8tc3RhdGlzdGljcyAr?= =?UTF-8?B?IG9yZy11cGRhdGUtc3RhdGlzdGljcyBjb29raWVzIGluIGJlZm9yZS1zYXZl?= =?UTF-8?B?LWhvb2sgYnJlYWtzIG92ZXJsYXlzIFs4LjMuNSAoOC4zLjUtZWxwYXBsdXMg?= =?UTF-8?B?QCAvaG9tZS9jbGVtZW50Ly5lbWFjcy5kLy5jYXNrLzI1LjEuNTAuNy9lbHBh?= =?UTF-8?B?L29yZy1wbHVzLWNvbnRyaWItMjAxNjA3MTkvKV0=?= Date: Sun, 31 Jul 2016 10:38:10 -0400 Message-ID: <5a92df02-770d-4c2f-67f3-62861454a8e7@live.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="CUcFsCa4XBxwiiR6lJu4adIOFwirTLNFj" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59415) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bTrsq-0002lt-Bz for emacs-orgmode@gnu.org; Sun, 31 Jul 2016 10:38:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bTrsm-0002wz-6j for emacs-orgmode@gnu.org; Sun, 31 Jul 2016 10:38:27 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:55477) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bTrsl-0002wM-Ob for emacs-orgmode@gnu.org; Sun, 31 Jul 2016 10:38:24 -0400 Received: from [18.189.62.146] ([18.189.62.146]) by mrelayeu.kundenserver.de (mreue005) with ESMTPSA (Nemesis) id 0MHKKd-1bY2sn1S7P-00E75k for ; Sun, 31 Jul 2016 16:38:22 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --CUcFsCa4XBxwiiR6lJu4adIOFwirTLNFj Content-Type: multipart/mixed; boundary="ALLPe8E3Di2PD5ODRNB05Q8QlcrTJA6CW" From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= To: emacs-orgmode@gnu.org Message-ID: <5a92df02-770d-4c2f-67f3-62861454a8e7@live.com> Subject: Bug: org-hierarchical-todo-statistics + org-update-statistics cookies in before-save-hook breaks overlays [8.3.5 (8.3.5-elpaplus @ /home/clement/.emacs.d/.cask/25.1.50.7/elpa/org-plus-contrib-20160719/)] --ALLPe8E3Di2PD5ODRNB05Q8QlcrTJA6CW Content-Type: multipart/mixed; boundary="------------712224E526F3AF24483003BE" This is a multi-part message in MIME format. --------------712224E526F3AF24483003BE Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi emacs-orgmode, Setting =E2=80=98org-hierarchical-todo-statistics=E2=80=99 to nil confuse= s =E2=80=98org-update-statistics-cookies=E2=80=99 when that function is u= sed in a before-save-hook. More precisely, every time I save the attached org file, the hidden secti= on of the buffer shrinks a bit, revealing a few characters at the end of = the buffer. This is weird. Fortunately, it's reproducible in emacs -Q. He= re's a video: http://asciinema.org/a/1h4otbt9cviod3nef0nx1sa5s I have attached minimal org.el and test.org files. With these, run emacs -Q -l org.el test.org Then make a change on the first line and save. This will reveal a few cha= racters at the end of the file-local variables section. Repeating the edi= t+save cycle shows a few more characters each time (if this is abstruse, = watch the asciinema video above) Let me know if I can provide more information! Cheers, Cl=C3=A9ment. Emacs : GNU Emacs 25.1.50.7 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2016-07-20 --------------712224E526F3AF24483003BE Content-Type: text/x-emacs-lisp; name="org.el" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="org.el" (defun ~/org/update-cookies () (org-update-statistics-cookies 'all)) (defun ~/org/setup () (add-hook 'before-save-hook #'~/org/update-cookies nil t)) (add-hook 'org-mode-hook #'~/org/setup) --------------712224E526F3AF24483003BE Content-Type: application/vnd.lotus-organizer; name="test.org" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="test.org" Rm9sZCB0aGUg4oCcQeKAnSB0cmVlLCB0aGVuIGFkZCB0ZXh0IGhlcmUgdGhlbiBwcmVzcyBD LXggQy1zOgoKKiBET05FIEEgWzExLzExXQoqKiBET05FIEIgWzEwLzEwXQoqKiogRE9ORSBD IFs3LzddCioqKiogRE9ORSBECioqKiogRE9ORSBFCioqKiogRE9ORSBGIFsyLzJdCioqKioq IERPTkUgRwoqKioqKiBET05FIEgKKioqKiBET05FIEcKKioqKiBET05FIEgKKioqIERPTkUg SSBbMS8xXQoqKioqIERPTkUgSgoKIyBMb2NhbCBWYXJpYWJsZXM6CiMgb3JnLWhpZXJhcmNo aWNhbC10b2RvLXN0YXRpc3RpY3M6IG5pbAojIEVuZDoK --------------712224E526F3AF24483003BE-- --ALLPe8E3Di2PD5ODRNB05Q8QlcrTJA6CW-- --CUcFsCa4XBxwiiR6lJu4adIOFwirTLNFj Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXng1SAAoJEPqg+cTm90wji7gP/3gnwxJcWb3hCOm63ukbQhBw SSMpcXCjWgEHW0yQv3TbP6JhmBJbTD04R/lCUnI0re0Q1Ih8PhWB5EoUKsi6F4Kb 4qkFwAOmVKrrzDkUoizItaqPnMu5tIPb70VqkgZAS36b4v8CYdSCoLjVMWyMzbzO moLl7sft8tB77KtLh20QjC/QWOPERk0svNkDeNgOcYQf+LXaUPZbIpcJbYFs+TPR nATfua5qubTfu9CgQZNCoqseTet9UETfuYIjXdn6fyi7Vwt1xTkxh1ZjOXbGP5X+ 0VXB0VqCPgAT90NDsYCqUjx73I/gp2pnmvZofg2pklzQqG7wPZlO91WG7FHJXimc +Tjn0Fiw4bk2u7r7k6AIMdWJSw+RlL2RdfiRebNlbXU2YYEGnxRCAsIqoOhn++tO x083PVh8kSJGeE7OnDx71TAaXN+NnjPX71yG4DgCPm9fvTerGR90Hqu19e1IltNr MB7iWMpCvv121jVZKEK4QC8neWUynvesaOL9z4mCk8VCkeksZ/AsouYGQO29fNOS ZAHK50HufPYZp09SOhcrmkuNpiSJk7rkTEM++17EnMe1IPqSzC14/VeeXb0K9t4F BY6bzVC5GjoAQmZy+RmYuw6qn2ELAZygVQg6j211LTtH2r0T4SIMbrUpKsv57FGZ Qf4qAV0EBIzvCUjQ6oF8 =URxk -----END PGP SIGNATURE----- --CUcFsCa4XBxwiiR6lJu4adIOFwirTLNFj--