From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: [BUG, PATCH] org-indent-mode not correctly deactivated Date: Tue, 14 Jan 2014 17:00:44 +0100 Message-ID: <87fvoqh7tf.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W36QU-0004Ya-22 for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 11:01:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W36QL-0004Wo-BZ for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 11:01:13 -0500 Received: from plane.gmane.org ([80.91.229.3]:42014) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W36QL-0004Wg-5A for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 11:01:05 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W36QF-0003f4-7n for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 17:00:59 +0100 Received: from amontsouris-651-1-141-120.w90-46.abo.wanadoo.fr ([90.46.120.120]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Jan 2014 17:00:59 +0100 Received: from bzg by amontsouris-651-1-141-120.w90-46.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Jan 2014 17:00:59 +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: emacs-orgmode@gnu.org With a file like ,---- | #+STARTUP: indent | | * Heading | ** Subheading `---- org-mode will correctly use org-indent-mode when displaying it. Now edit the file to deactivate org-indent: ,---- | #+STARTUP: noindent | | * Heading | ** Subheading `---- Go to #+STARTUP and hit C-c C-c : org-indent-mode will not be activated, but it will not be properly deactivated, leaving a confusing whitespace before indented headlines. The attached patch fixes the problem, but it is wrong, because it "actively" deactivates org-indent-mode each time a buffer is not using org-indent-mode, in sessions where org-indent-mode has been used at least once. I could not come up with a better fix -- Nicolas, Carsten, do you have an idea on how to fix this? Thanks! -- Bastien