From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Richard Kim Newsgroups: gmane.emacs.bugs Subject: bug#30051: 27.0.50; diary-lib.el uses lexical scoping when dynamic scope is needed Date: Tue, 09 Jan 2018 13:07:03 -0800 Message-ID: Reply-To: Richard.Kim1@synopsys.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1515532029 16380 195.159.176.226 (9 Jan 2018 21:07:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 9 Jan 2018 21:07:09 +0000 (UTC) To: 30051@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 09 22:07:05 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZ16k-0003GF-CS for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Jan 2018 22:06:54 +0100 Original-Received: from localhost ([::1]:48120 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZ18i-0006Q9-Bj for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Jan 2018 16:08:56 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33971) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZ17u-0005uq-MW for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2018 16:08:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZ17q-00072H-BL for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2018 16:08:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42104) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eZ17q-00072B-7U for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2018 16:08:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eZ17q-00017c-1q for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2018 16:08:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Richard Kim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Jan 2018 21:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 30051 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15155320564275 (code B ref -1); Tue, 09 Jan 2018 21:08:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Jan 2018 21:07:36 +0000 Original-Received: from localhost ([127.0.0.1]:50001 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZ17Q-00016t-1v for submit@debbugs.gnu.org; Tue, 09 Jan 2018 16:07:36 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42704) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZ17O-00016e-CC for submit@debbugs.gnu.org; Tue, 09 Jan 2018 16:07:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZ17D-0006Qb-FI for submit@debbugs.gnu.org; Tue, 09 Jan 2018 16:07:29 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:50760) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eZ17D-0006QS-CP for submit@debbugs.gnu.org; Tue, 09 Jan 2018 16:07:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZ177-0005Vy-Fd for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2018 16:07:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZ171-0006Fc-Rq for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2018 16:07:17 -0500 Original-Received: from smtprelay.synopsys.com ([198.182.47.9]:45734) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eZ171-0006Cg-NC for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2018 16:07:11 -0500 Original-Received: from mailhost.synopsys.com (mailhost3.synopsys.com [10.12.238.238]) by smtprelay.synopsys.com (Postfix) with ESMTP id B5B1924E13D8 for ; Tue, 9 Jan 2018 13:07:08 -0800 (PST) Original-Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id 905D8193; Tue, 9 Jan 2018 13:07:08 -0800 (PST) Original-Received: from ritz-mod15 (ritz-mod15.internal.synopsys.com [10.4.124.216]) by mailhost.synopsys.com (Postfix) with ESMTP id 63E2F18F; Tue, 9 Jan 2018 13:07:08 -0800 (PST) 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:141949 Archived-At: I started getting the following error from recently compiled emacs: Debugger entered--Lisp error: (void-variable number) appt-make-list() run-hooks(diary-hook) diary-list-entries((1 8 2018) 1) org-get-entries-from-diary((1 8 2018)) org-agenda-list(nil) funcall-interactively(org-agenda-list nil) call-interactively(org-agenda-list) (let nil (call-interactively 'org-agenda-list)) (let nil (let nil (call-interactively 'org-agenda-list))) eval((let nil (let nil (call-interactively 'org-agenda-list)))) org-let2(nil nil (call-interactively 'org-agenda-list)) org-agenda-run-series("Agenda and all TODOs" (((agenda "") (alltodo "")))) eval((org-agenda-run-series "Agenda and all TODOs" '(((agenda "") (alltodo ""))))) org-agenda-redo(nil) funcall-interactively(org-agenda-redo nil) call-interactively(org-agenda-redo nil nil) command-execute(org-agenda-redo) This appears to be due to using lexical binding for diary-lib.el. diary-list-entries is defined in diary-lib.el which uses lexical-binding as of master branch change 559d685f68 checked in on 2017/12/04. However appt-make-list depends on dynamically scoped `number' variable to be defined by diary-list-entries as documented in the doc-string: We assume that the variables DATE and NUMBER hold the arguments that `diary-list-entries' received. In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 2.24.23) of 2017-12-28 built on rutro-int1 Repository revision: ace8f2ed4d6ea49d179333f8e7455e5208417da7 Windowing system distributor 'CentOS', version 11.0.11500000 System Description: CentOS release 6.6 (Final)