Alaric Snell-Pym <ala...@snell-pym.org.uk> writes:

> ;;(add-hook 'text-mode-hook 'turn-on-auto-fill)
> (add-hook 'org-mode-hook 'turn-on-auto-fill)
> (add-hook 'prog-mode-hook 'turn-off-auto-fill)
>
> No other references to the word "fill" in there. I just tried restarting 
> emacs (shock horror!) and auto-fill-function is now globally nil again - 
> so presumably somewhere in the past, its buffer-local binding in org 
> mode "leaked" into global scope... How could that have happened?!

Hard to say. Maybe some package. Maybe something else.
You may intrument changes in `normal-auto-fill-function' variable
(that's what auto-fill-mode uses) to watch when and how it happens.

The simplest way to do it is M-x debug-on-variable-change.
Another way (from Elisp) is `add-variable-watcher'.

Looks like there is no problem on Org side, so I am closing this bug (we
can continue the thread though, if necessary).
Canceled.

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to