From: marmot-te <marmot-te@riseup.net>
To: 46888@debbugs.gnu.org
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 [thread overview]
Message-ID: <87ft1c8qxy.fsf@host.localdomain> (raw)
In-Reply-To: <83im68680o.fsf@gnu.org>
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
next prev parent reply other threads:[~2021-03-03 10:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-03 5:50 bug#46888: 26.1; org-mode add rmail-after-save-hook to after-save-hook marmot-te
2021-03-03 6:55 ` Eli Zaretskii
2021-03-03 10:36 ` marmot-te [this message]
2021-03-03 11:19 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ft1c8qxy.fsf@host.localdomain \
--to=marmot-te@riseup.net \
--cc=46888@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.