all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#38592: 27.0.50; org mode insinuates itself into calendar
@ 2019-12-13 13:54 Sam Steingold
  2019-12-13 14:41 ` Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: Sam Steingold @ 2019-12-13 13:54 UTC (permalink / raw)
  To: 38592

I do not use org.
Apparently it still slithers into Emacs.
org-compat.el adds org--setup-calendar-bindings to calendar-mode-hook.
I have no idea who or why loaded org-compat.
However, I get this error:

--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (void-variable org-agenda-diary-file)
  org--setup-calendar-bindings()
  run-hooks(change-major-mode-after-body-hook calendar-mode-hook)
  apply(run-hooks (change-major-mode-after-body-hook calendar-mode-hook))
  run-mode-hooks(calendar-mode-hook)
  calendar-mode()
  calendar-basic-setup(nil)
  calendar()
--8<---------------cut here---------------end--------------->8---


In GNU Emacs 27.0.50 (build 2, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G2022))
 of 2019-12-12 built on BZ-C02XR5CGJG5L
Repository revision: ede63fed1f08bb3af6b22dc4b8a47154b18ffc4b
Repository branch: master
Windowing system distributor 'Apple', version 10.3.1671
System Description:  Mac OS X 10.14.6

Configured using:
 'configure --with-imagemagick --with-mailutils --with-ns
 PKG_CONFIG_PATH=/usr/local/opt/libxml2/lib/pkgconfig:/usr/local/opt/imagemagick/lib/pkgconfig:/usr/local/opt/gnutls/lib/pkgconfig:/usr/local/opt/jansson/lib/pkgconfig'

Configured features:
IMAGEMAGICK NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS
MODULES THREADS JSON PDUMPER LCMS2 GMP

Important settings:
  value of $LANG: C
  locale-coding-system: utf-8-unix

Load-path shadows:
None found.

Features:
(shadow bbdb-message mailalias cookie1 emacsbug sendmail find-dired ffap
cl-print debug backtrace cal-move cal-x cal-china cal-bahai cal-islam
cal-julian holidays hol-loaddefs bbdb-anniv cal-iso cal-hebrew lunar
solar cal-dst appt diary-lib diary-loaddefs cal-menu calendar
cal-loaddefs tramp-cmds url-queue url-cache sort gnus-cite smiley
mm-archive gnus-async gnus-bcklg gnus-dup qp mail-extr gnus-ml hl-line
disp-table spam spam-stat gnus-uu yenc nndraft nnmh gnus-agent gnus-srvr
gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view
mml-smime smime dig utf-7 gnus-cache gnus-sum shr svg bbdb-gnus gnutls
network-stream nntp gnus-group gnus-undo tramp-cache gnus-start
gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int
gnus-range gnus-win log-edit message rfc822 mml mml-sec epa epg
epg-config mm-decode mm-bodies mm-encode gmm-utils mailheader dired-aux
latexenc dabbrev smerge-mode diff skeleton misearch multi-isearch
ein-jupyter ein-dev url-http url-auth mail-parse rfc2231 url-gw nsm rmc
puny ob-ein ob ob-tangle ol ob-ref ob-lob ob-table ob-exp ein-multilang
ein-multilang-fontify org-src org-keys ob-comint ob-core org-compat
ob-eval org-macs ein-notebooklist eieio-opt speedbar sb-image ezimage
dframe find-func ein-company ein-file ein-connect ein-inspector
ein-traceback ein-pseudo-console ein-pager view ein-completer ein-ac
auto-complete popup ein-pytools ein-shared-output ein-subpackages
ein-notification ein-scratchsheet ein-iexec ein-worksheet poly-ein
polymode derived poly-lock polymode-base polymode-weave polymode-export
polymode-compat polymode-methods polymode-core polymode-classes
eieio-custom eieio-base color ein-kill-ring ein-cell-output
ein-cell-edit ein-timestamp ein-cell ein-hy ein-skewer skewer-html
sgml-mode dom skewer-mode cache-table js2-mode js simple-httpd pp
ein-output-area xml ein-kernelinfo ein-kernel ein-ipdb ein-events
ein-websocket websocket bindat ein-contents-api ein-notebook ein-query
request autorevert filenotify ein-node ein-log ein-console ein-classes
ein-core ein-utils deferred url url-proxy url-privacy url-expand
url-methods url-history url-cookie url-domsuf url-util mailcap dash
cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine
cc-vars cc-defs ein add-log log-view pcvs-util vc-bzr vc-src vc-sccs
vc-svn vc-cvs vc-rcs remember sh-script smie executable bug-reference
dired dired-loaddefs vc-dir ewoc vc vc-dispatcher yaml-mode
company-oddmuse company-keywords company-etags company-gtags
company-dabbrev-code company-dabbrev company-files company-cmake
company-xcode company-clang company-eclim company-template company-bbdb
yasnippet-snippets cl-extra yasnippet flymake-proc flymake warnings
thingatpt company-capf company pcase help-fns radix-tree help-mode elpy
edmacro kmacro elpy-rpc pyvenv eshell esh-cmd esh-ext esh-opt esh-proc
esh-io esh-arg esh-module esh-groups esh-util elpy-shell elpy-profile
elpy-django s elpy-refactor ido grep etags fileloop generator xref
project cus-edit python tramp-sh tramp tramp-loaddefs trampver
tramp-integration files-x tramp-compat parse-time iso8601 ls-lisp
format-spec vc-git diff-mode easy-mmode flyspell ispell tex-mode compile
shell pcomplete comint ansi-color midnight gnus nnheader gnus-util rmail
rmail-loaddefs rfc2047 rfc2045 ietf-drums text-property-search time-date
mail-utils mm-util mail-prsvr wid-edit bbdb-mua bbdb-com crm mailabbrev
bbdb bbdb-site timezone edit-server advice server winner ring which-func
imenu paren help-at-pt desktop frameset cus-start cus-load info package
easymenu browse-url url-handlers url-parse auth-source cl-seq eieio
eieio-core cl-macs eieio-loaddefs password-cache json subr-x map
url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win
tool-bar dnd fontset image regexp-opt fringe tabulated-list replace
newcomment text-mode elisp-mode lisp-mode prog-mode register page
tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse
jit-lock font-lock syntax facemenu font-core term/tty-colors frame
minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite charscript charprop case-table epa-hook jka-cmpr-hook help
simple abbrev obarray cl-preloaded nadvice loaddefs button faces
cus-face macroexp files text-properties overlay sha1 md5 base64 format
env code-pages mule custom widget hashtable-print-readable backquote
threads kqueue cocoa ns lcms2 multi-tty make-network-process emacs)

Memory information:
((conses 16 746922 99785)
 (symbols 48 43598 4)
 (strings 32 253372 6935)
 (string-bytes 1 8367079)
 (vectors 16 108253)
 (vector-slots 8 2367219 304738)
 (floats 8 1155 1391)
 (intervals 56 22200 137)
 (buffers 1000 168))

-- 
Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1671
http://childpsy.net http://calmchildstories.com http://steingoldpsychology.com
https://americancensorship.org http://think-israel.org
A number problem "solved" with floats turns into 1.9999999999999998 problems.





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

* bug#38592: 27.0.50; org mode insinuates itself into calendar
  2019-12-13 13:54 bug#38592: 27.0.50; org mode insinuates itself into calendar Sam Steingold
@ 2019-12-13 14:41 ` Eli Zaretskii
  2020-02-13  8:43   ` Bastien
  0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2019-12-13 14:41 UTC (permalink / raw)
  To: sds; +Cc: 38592

> From: Sam Steingold <sds@gnu.org>
> Date: Fri, 13 Dec 2019 08:54:08 -0500
> 
> I do not use org.
> Apparently it still slithers into Emacs.
> org-compat.el adds org--setup-calendar-bindings to calendar-mode-hook.
> I have no idea who or why loaded org-compat.
> However, I get this error:
> 
> --8<---------------cut here---------------start------------->8---
> Debugger entered--Lisp error: (void-variable org-agenda-diary-file)
>   org--setup-calendar-bindings()
>   run-hooks(change-major-mode-after-body-hook calendar-mode-hook)
>   apply(run-hooks (change-major-mode-after-body-hook calendar-mode-hook))
>   run-mode-hooks(calendar-mode-hook)
>   calendar-mode()
>   calendar-basic-setup(nil)
>   calendar()
> --8<---------------cut here---------------end--------------->8---

Outside of Org, org-compat appears only in cus-load.el, and I don't
believe what that does can load org-compat.

So I think you should report this to Org developers first, because it
sounds like an Org bug.





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

* bug#38592: 27.0.50; org mode insinuates itself into calendar
  2019-12-13 14:41 ` Eli Zaretskii
@ 2020-02-13  8:43   ` Bastien
  2020-02-13 14:31     ` Sam Steingold
  0 siblings, 1 reply; 11+ messages in thread
From: Bastien @ 2020-02-13  8:43 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: sds, 38592

Eli Zaretskii <eliz@gnu.org> 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

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

* bug#38592: 27.0.50; org mode insinuates itself into calendar
  2020-02-13  8:43   ` Bastien
@ 2020-02-13 14:31     ` Sam Steingold
  2020-02-13 15:40       ` Bastien
  0 siblings, 1 reply; 11+ messages in thread
From: Sam Steingold @ 2020-02-13 14:31 UTC (permalink / raw)
  To: Bastien; +Cc: Eli Zaretskii, 38592

Yes, I still have to (remove-hook 'calendar-mode-hook
'org--setup-calendar-bindings) manually

On Thu, 13 Feb 2020 at 03:43, Bastien <bzg@gnu.org> wrote:
>
> Eli Zaretskii <eliz@gnu.org> 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>

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

* bug#38592: 27.0.50; org mode insinuates itself into calendar
  2020-02-13 14:31     ` Sam Steingold
@ 2020-02-13 15:40       ` Bastien
  2020-02-13 16:45         ` Sam Steingold
  0 siblings, 1 reply; 11+ messages in thread
From: Bastien @ 2020-02-13 15:40 UTC (permalink / raw)
  To: Sam Steingold; +Cc: Eli Zaretskii, 38592

Hi Sam,

Sam Steingold <sds@gnu.org> 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

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

* bug#38592: 27.0.50; org mode insinuates itself into calendar
  2020-02-13 15:40       ` Bastien
@ 2020-02-13 16:45         ` Sam Steingold
  2020-02-14 10:02           ` Bastien
  0 siblings, 1 reply; 11+ messages in thread
From: Sam Steingold @ 2020-02-13 16:45 UTC (permalink / raw)
  To: Bastien; +Cc: Eli Zaretskii, 38592

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 <bzg@gnu.org> wrote:
>
> Hi Sam,
>
> Sam Steingold <sds@gnu.org> 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>

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

* bug#38592: 27.0.50; org mode insinuates itself into calendar
  2020-02-13 16:45         ` Sam Steingold
@ 2020-02-14 10:02           ` Bastien
  2020-02-17  4:12             ` Sam Steingold
  0 siblings, 1 reply; 11+ messages in thread
From: Bastien @ 2020-02-14 10:02 UTC (permalink / raw)
  To: Sam Steingold; +Cc: Eli Zaretskii, 38592

Hi Sam,

Sam Steingold <sds@gnu.org> 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

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

* bug#38592: 27.0.50; org mode insinuates itself into calendar
  2020-02-14 10:02           ` Bastien
@ 2020-02-17  4:12             ` Sam Steingold
  2020-02-17  7:43               ` Bastien
  0 siblings, 1 reply; 11+ messages in thread
From: Sam Steingold @ 2020-02-17  4:12 UTC (permalink / raw)
  To: Bastien; +Cc: Eli Zaretskii, 38592

Looks like a bug in ein,
https://github.com/millejoh/emacs-ipython-notebook/issues/668

On Fri, 14 Feb 2020 at 05:03, Bastien <bzg@gnu.org> wrote:
>
> Hi Sam,
>
> Sam Steingold <sds@gnu.org> 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>

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

* bug#38592: 27.0.50; org mode insinuates itself into calendar
  2020-02-17  4:12             ` Sam Steingold
@ 2020-02-17  7:43               ` Bastien
  2020-02-17 12:51                 ` Sam Steingold
  0 siblings, 1 reply; 11+ messages in thread
From: Bastien @ 2020-02-17  7:43 UTC (permalink / raw)
  To: Sam Steingold; +Cc: Eli Zaretskii, 38592

Hi Sam,

Sam Steingold <sds@gnu.org> writes:

> Looks like a bug in ein,
> https://github.com/millejoh/emacs-ipython-notebook/issues/668

Thanks for the follow-up.

I looked at ein-notebooklist.el a bit, where I could not understand
why logging in would call org--setup-calendar-bindings but I don't
know ein and cannot go further.

Feel free to close the bug report when you think it is resolved.

-- 
 Bastien

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

* bug#38592: 27.0.50; org mode insinuates itself into calendar
  2020-02-17  7:43               ` Bastien
@ 2020-02-17 12:51                 ` Sam Steingold
  2020-02-17 13:54                   ` Bastien
  0 siblings, 1 reply; 11+ messages in thread
From: Sam Steingold @ 2020-02-17 12:51 UTC (permalink / raw)
  To: Bastien; +Cc: Sam Steingold, 38592

[-- Attachment #1: Type: text/plain, Size: 253 bytes --]

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:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch --]
[-- Type: text/x-diff, Size: 559 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 82 bytes --]


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

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

* bug#38592: 27.0.50; org mode insinuates itself into calendar
  2020-02-17 12:51                 ` Sam Steingold
@ 2020-02-17 13:54                   ` Bastien
  0 siblings, 0 replies; 11+ messages in thread
From: Bastien @ 2020-02-17 13:54 UTC (permalink / raw)
  To: Sam Steingold; +Cc: Sam Steingold, 38592

Hi Sam,

Sam Steingold <dick.r.chiang@gmail.com> writes:

> emacs -Q -f package-initialize --eval "(require 'ob)" --eval "(and
> (cl-assert (featurep 'ob)) (cl-assert (not (featurep 'org))))" --eval
> "(call-interactively 'calendar)"

OK, I understand now, thanks for the reproducible recipe.

> How about, minimally:

I added another fix (in Org's maint branch, the one that will be
released soon and sync with Emacs): requiring 'org-agenda whenever
both org-compat.el and calendar are loaded.

Thanks for reporting this, I'll close the bug when upstream Org is
merged into Emacs and you can confirm the fix.

Best,

-- 
 Bastien

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

end of thread, other threads:[~2020-02-17 13:55 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-13 13:54 bug#38592: 27.0.50; org mode insinuates itself into calendar Sam Steingold
2019-12-13 14:41 ` Eli Zaretskii
2020-02-13  8:43   ` Bastien
2020-02-13 14:31     ` Sam Steingold
2020-02-13 15:40       ` Bastien
2020-02-13 16:45         ` Sam Steingold
2020-02-14 10:02           ` Bastien
2020-02-17  4:12             ` Sam Steingold
2020-02-17  7:43               ` Bastien
2020-02-17 12:51                 ` Sam Steingold
2020-02-17 13:54                   ` Bastien

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.