From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: [BUG] Void variable org-clock-current-task Date: Tue, 19 Apr 2016 13:11:30 -0400 Message-ID: <87r3e14j7h.fsf@kyleam.com> 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]:44059) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asZBd-0004xS-N6 for emacs-orgmode@gnu.org; Tue, 19 Apr 2016 13:11:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1asZBa-0000OO-I8 for emacs-orgmode@gnu.org; Tue, 19 Apr 2016 13:11:41 -0400 Received: from pb-smtp1.pobox.com ([64.147.108.70]:63873 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asZBa-0000OF-Dz for emacs-orgmode@gnu.org; Tue, 19 Apr 2016 13:11:38 -0400 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 76466149B7 for ; Tue, 19 Apr 2016 13:11:35 -0400 (EDT) Received: from pb-smtp1. (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 5F9E6149B5 for ; Tue, 19 Apr 2016 13:11:35 -0400 (EDT) Received: from localhost (unknown [130.132.173.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pb-smtp1.pobox.com (Postfix) with ESMTPSA id AD3DC149B4 for ; Tue, 19 Apr 2016 13:11:34 -0400 (EDT) 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: Org-mode Hi Nicolas, 4743d43 (Properly handle =E2=80=98org-tag-persistent-alist=E2=80=99, 2016-0= 4-17) removed the initial value for org-clock-current-task: - (defvar org-clock-current-task nil) + (defvar org-clock-current-task) As a result, org-clock-current-task is undefined if org-clock.el is not yet loaded, leading to org-agenda-mark-clocking-task signaling a void-variable error when org-agenda is called. Debugger entered--Lisp error: (void-variable org-clock-current-task) (if org-clock-current-task (progn (save-restriction ...))) org-agenda-mark-clocking-task() ... call-interactively(org-agenda nil nil) command-execute(org-agenda) -- Kyle