bug#38592: 27.0.50; org mode insinuates itself into calendar

2020-02-17 Thread Sam Steingold
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:

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)))
 

I suspect other assumptions are made that `ob` cannot be required without `org`.


bug#38592: 27.0.50; org mode insinuates itself into calendar

2020-02-16 Thread Sam Steingold
Looks like a bug in ein,
https://github.com/millejoh/emacs-ipython-notebook/issues/668

On Fri, 14 Feb 2020 at 05:03, Bastien  wrote:
>
> Hi Sam,
>
> Sam Steingold  writes:
>
> > If you tell me what to do, I would gladly do it.
> > I am afraid I am too busy to investigate it myself...
>
> if you can share your .emacs file (removing private information)
> I can try to bisect and find what causes Org to be loaded: you can
> send it to me in private if you prefer.
>
> But in the meantime, I confirm that with Emacs -q (from latest
> master), Org is *not* loaded and calendar-mode-hook is nil.
>
> Best,
>
> --
>  Bastien



-- 
Sam Steingold <http://sds.podval.org> <http://www.childpsy.net>
<http://steingoldpsychology.com>





bug#38592: 27.0.50; org mode insinuates itself into calendar

2020-02-13 Thread Sam Steingold
Hi Bastien,

If you tell me what to do, I would gladly do it.
I am afraid I am too busy to investigate it myself...
sorry

On Thu, 13 Feb 2020 at 10:41, Bastien  wrote:
>
> Hi Sam,
>
> Sam Steingold  writes:
>
> > Yes, I still have to (remove-hook 'calendar-mode-hook
> > 'org--setup-calendar-bindings) manually
>
> The hook is not added until Org is loaded -- can you track down
> why org-mode gets loaded?
>
> --
>  Bastien



-- 
Sam Steingold <http://sds.podval.org> <http://www.childpsy.net>
<http://steingoldpsychology.com>





bug#38592: 27.0.50; org mode insinuates itself into calendar

2020-02-13 Thread Sam Steingold
Yes, I still have to (remove-hook 'calendar-mode-hook
'org--setup-calendar-bindings) manually

On Thu, 13 Feb 2020 at 03:43, Bastien  wrote:
>
> Eli Zaretskii  writes:
>
> > So I think you should report this to Org developers first, because it
> > sounds like an Org bug.
>
> I suspect org-compat.el was loaded by some lingering installation of Org.
>
> Sam, do you still get this bug?
>
> --
>  Bastien



-- 
Sam Steingold <http://sds.podval.org> <http://www.childpsy.net>
<http://steingoldpsychology.com>