From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [BUG, PATCH] org-indent-mode not correctly deactivated Date: Wed, 15 Jan 2014 17:44:19 +0100 Message-ID: <87txd5qjoc.fsf@gmail.com> References: <87fvoqh7tf.fsf@bzg.ath.cx> <877ga1s8s1.fsf@gmail.com> <87txd5ryox.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50680) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3TZV-0003mF-Si for emacs-orgmode@gnu.org; Wed, 15 Jan 2014 11:44:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3TZO-0007D7-Iz for emacs-orgmode@gnu.org; Wed, 15 Jan 2014 11:44:05 -0500 In-Reply-To: <87txd5ryox.fsf@bzg.ath.cx> (Bastien's message of "Wed, 15 Jan 2014 17:34:38 +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: Bastien Cc: emacs-orgmode@gnu.org 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. Regards, -- Nicolas Goaziou