emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [BUG, PATCH] org-indent-mode not correctly deactivated


From: Bastien
Subject: Re: [O] [BUG, PATCH] org-indent-mode not correctly deactivated
Date: Wed, 15 Jan 2014 17:53:33 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Nicolas Goaziou <address@hidden> writes:

> Bastien <address@hidden> writes:
>
>> Nicolas Goaziou <address@hidden> 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

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