From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: [BUG, PATCH] org-indent-mode not correctly deactivated Date: Wed, 15 Jan 2014 17:53:33 +0100 Message-ID: <87a9exrxte.fsf@bzg.ath.cx> References: <87fvoqh7tf.fsf@bzg.ath.cx> <877ga1s8s1.fsf@gmail.com> <87txd5ryox.fsf@bzg.ath.cx> <87txd5qjoc.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53523) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3Tip-0001vS-Rx for emacs-orgmode@gnu.org; Wed, 15 Jan 2014 11:53:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3Tij-0002Mf-JS for emacs-orgmode@gnu.org; Wed, 15 Jan 2014 11:53:43 -0500 Received: from mail-we0-x22d.google.com ([2a00:1450:400c:c03::22d]:36197) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3Tij-0002Mb-Cw for emacs-orgmode@gnu.org; Wed, 15 Jan 2014 11:53:37 -0500 Received: by mail-we0-f173.google.com with SMTP id t60so2067972wes.32 for ; Wed, 15 Jan 2014 08:53:36 -0800 (PST) In-Reply-To: <87txd5qjoc.fsf@gmail.com> (Nicolas Goaziou's message of "Wed, 15 Jan 2014 17:44:19 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Nicolas Goaziou writes: > Bastien writes: > >> Nicolas Goaziou 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