unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#30051: 27.0.50; diary-lib.el uses lexical scoping when dynamic scope is needed
@ 2018-01-09 21:07 Richard Kim
  2018-01-09 21:15 ` bug#30051: Acknowledgement (27.0.50; diary-lib.el uses lexical scoping when dynamic scope is needed) Richard Kim
  2018-01-10  0:41 ` bug#30051: 27.0.50; diary-lib.el uses lexical scoping when dynamic scope is needed Glenn Morris
  0 siblings, 2 replies; 4+ messages in thread
From: Richard Kim @ 2018-01-09 21:07 UTC (permalink / raw)
  To: 30051


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)





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-01-10 19:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-09 21:07 bug#30051: 27.0.50; diary-lib.el uses lexical scoping when dynamic scope is needed Richard Kim
2018-01-09 21:15 ` bug#30051: Acknowledgement (27.0.50; diary-lib.el uses lexical scoping when dynamic scope is needed) Richard Kim
2018-01-10  0:41 ` bug#30051: 27.0.50; diary-lib.el uses lexical scoping when dynamic scope is needed Glenn Morris
2018-01-10 19:27   ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).