Nicolas Goaziou <n.goaz...@gmail.com> writes:

> Bastien <b...@gnu.org> writes:
>
>> Nicolas Goaziou <n.goaz...@gmail.com> writes:
>>
>>>   (cond (org-startup-indented (require 'org-indent) (org-indent-mode 1))
>>>         ((org-bound-and-true-p org-indent-mode) (org-indent-mode -1)))
>>
>> This will not work, because (org-bound-and-true-p org-indent-mode)
>> returns nil at the time `org-mode' is called.
>
> If it returns nil, it means that `org-startup-indented' is nil and
> either `org-indent' isn't loaded or `org-indent-mode' is off.
>
> I don't get why it wouldn't work.

Try to edebug-defun `org-mode' with the recipe I posted and you'll
see: yes, `org-startup-indented' and `org-indent-mode' are off,
but the org-indent properties have not been removed from the before,
as they are by manually turning off with M-x org-indent-mode RET

-- 
 Bastien

Reply via email to