GNU bug report logs -
#38592
27.0.50; org mode insinuates itself into calendar
Previous Next
Reported by: sds <at> gnu.org
Date: Fri, 13 Dec 2019 13:55:02 UTC
Severity: normal
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
To reproduce:
emacs -Q -f package-initialize --eval "(require 'ob)" --eval "(and (cl-assert (featurep 'ob)) (cl-assert (not (featurep 'org))))" --eval "(call-interactively 'calendar)"
The emacs needs to be at least 165f738382.
How about, minimally:
[patch.diff (text/x-diff, inline)]
diff --git a/lisp/org/org-compat.el b/lisp/org/org-compat.el
index 4446a169d7..ea66bb82be 100644
--- a/lisp/org/org-compat.el
+++ b/lisp/org/org-compat.el
@@ -1043,7 +1043,7 @@ org--setup-calendar-bindings
((guard (not (lookup-key calendar-mode-map "c")))
(local-set-key "c" #'org-calendar-goto-agenda))
(_ nil))
- (unless (eq org-agenda-diary-file 'diary-file)
+ (unless (and (boundp 'org-agenda-diary-file) (eq org-agenda-diary-file 'diary-file))
(local-set-key org-calendar-insert-diary-entry-key
#'org-agenda-diary-entry)))
[Message part 3 (text/plain, inline)]
I suspect other assumptions are made that `ob` cannot be required without `org`.
This bug report was last modified 5 years and 120 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.