From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Borchmann Subject: Bug: Lexical scoping in org-clock.el seems to break `org-clock-load' [9.0 (9.0-elpaplus @ /home/exot/.emacs.d/elpa/org-plus-contrib-20161102/)] Date: Sun, 06 Nov 2016 11:38:43 +0100 Message-ID: <87ins0sxjg.fsf@algebra20.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c3Kqi-0004YP-F7 for emacs-orgmode@gnu.org; Sun, 06 Nov 2016 05:38:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c3Kqe-0000ut-Eb for emacs-orgmode@gnu.org; Sun, 06 Nov 2016 05:38:52 -0500 Received: from mailout5.zih.tu-dresden.de ([141.30.67.74]:47711) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c3Kqe-0000q3-8T for emacs-orgmode@gnu.org; Sun, 06 Nov 2016 05:38:48 -0500 Received: from mail.zih.tu-dresden.de ([141.76.14.4]) by mailout5.zih.tu-dresden.de with esmtps (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c3Kqa-0001P6-ON for emacs-orgmode@gnu.org; Sun, 06 Nov 2016 11:38:44 +0100 Received: from port-92-195-91-243.dynamic.qsc.de ([92.195.91.243] helo=tonne) by server-40.mailclusterdns.zih.tu-dresden.de with esmtpsa (TLSv1.2:AES256-SHA:256) (envelope-from ) id 1c3Kqa-000638-C0 for emacs-orgmode@gnu.org; Sun, 06 Nov 2016 11:38:44 +0100 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 Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ Loading a persistent clock does not work anymore: the hooks installed by =E2=80=98org-clock-persistence-insinuate=E2=80=99 call =E2=80=98org-clock-l= oad=E2=80=99 as usual, but the latter does not resume the clock: it prints "Restoring clock data", but nothing else happens. A closer look into =E2=80=98org-clock-load=E2=80=99 reveals that it introdu= ces a local variable =E2=80=98resume-clock=E2=80=99. This variable is supposedly set b= y the line =E2=80=98(load-file filename)=E2=80=99 (line 2977 of org-clock.el), where = =E2=80=98filename=E2=80=99 is bound to =E2=80=98org-clock-persist-file=E2=80=99. However, this call does= not change the local value of =E2=80=98resume-clock=E2=80=99 (it stays nil), but inste= ad introduces the variable =E2=80=98resume-clock=E2=80=99 with the corresponding value to= the global namespace. Consequently, the clock is not resumed. Emacs : GNU Emacs 25.1.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bar= s) of 2016-10-24, modified by Debian Package: Org mode version 9.0 (9.0-elpaplus @ /home/exot/.emacs.d/elpa/org-= plus-contrib-20161102/) --=20 Daniel Borchmann GPG (Mail) 0849 473E 6BF0 B504 DF0B D640 455E 3610 01FF 778F . Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html