bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#46888: 26.1; org-mode add rmail-after-save-hook to after-save-hook


From: Eli Zaretskii
Subject: bug#46888: 26.1; org-mode add rmail-after-save-hook to after-save-hook
Date: Wed, 03 Mar 2021 08:55:35 +0200

> From: marmot-te <marmot-te@riseup.net>
> Date: Wed, 03 Mar 2021 05:50:55 +0000
> 
> $ emacs -Q
> 
> in scratch buffer :
> 
> (org-mode)
> 
> after-save-hook
> ;; => (rmail-after-save-hook)
> 
> 
> I found this rather confusing because I cannot find any reference 
> in org files to this or vis-versa.

This happens because turning on Org mode runs org-load-modules-maybe,
which by default loads ol-gnus, which loads gnus-util, which loads
rmail.  And loading rmail unconditionally adds rmail-after-save-hook
to after-save-hook.

Does this produce any problems in practice?  If so, can you describe
those problems?  Alternatively, you could customize org-modules to
exclude ol-gnus and ol-rmail, if you don't need that in your Org
related workflows.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]