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: marmot-te
Subject: bug#46888: 26.1; org-mode add rmail-after-save-hook to after-save-hook
Date: Wed, 03 Mar 2021 10:36:09 +0000


Eli Zaretskii <eliz@gnu.org> writes:

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?

None. Sorry for the inconvenience.

Alternatively, you could customize org-modules to
exclude ol-gnus and ol-rmail, if you don't need that in your Org
related workflows.

Thank you for the detailled answer. Have a nice day





reply via email to

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