org-compat.el: Require 'org-agenda in a timely fashion
* lisp/org-compat.el ("calendar"): Require 'org-agenda before adding `org--setup-calendar-bindings' to `calendar-mode-hook'. This fixes Emacs bug#38592.
This commit is contained in:
parent
fb188adda0
commit
2f30ecffdf
|
@ -1048,7 +1048,9 @@ key."
|
|||
#'org-agenda-diary-entry)))
|
||||
|
||||
(eval-after-load "calendar"
|
||||
'(add-hook 'calendar-mode-hook #'org--setup-calendar-bindings))
|
||||
'(progn
|
||||
(require 'org-agenda)
|
||||
(add-hook 'calendar-mode-hook #'org--setup-calendar-bindings)))
|
||||
|
||||
;;;; Saveplace
|
||||
|
||||
|
|
Loading…
Reference in New Issue