From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anupam Sengupta Subject: Re: Orgmode 8.0.2: Possible bug in `org-insert-heading` when invoked at end of a heading with a property Date: Tue, 14 May 2013 23:42:29 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51181) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcSc5-0006O4-8n for emacs-orgmode@gnu.org; Tue, 14 May 2013 23:42:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UcSc4-0006X4-DY for emacs-orgmode@gnu.org; Tue, 14 May 2013 23:42:49 -0400 Received: from mail-ie0-x232.google.com ([2607:f8b0:4001:c03::232]:37771) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcSc4-0006X0-7D for emacs-orgmode@gnu.org; Tue, 14 May 2013 23:42:48 -0400 Received: by mail-ie0-f178.google.com with SMTP id b11so2652972iee.23 for ; Tue, 14 May 2013 20:42:47 -0700 (PDT) Received: from Anupams-MacBook-Pro.local (dynamic-acs-24-101-168-157.zoominternet.net. [24.101.168.157]) by mx.google.com with ESMTPSA id ij6sm692848igb.1.2013.05.14.20.42.44 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 14 May 2013 20:42:44 -0700 (PDT) In-Reply-To: (Anupam Sengupta's message of "Mon, 29 Apr 2013 19:41:43 -0400") 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 All, Finally found the cause of the issue I had reported a few weeks back: Anupam> Looks like M-RET (`org-insert-heading`), and it's equivalent Anupam> M-S-RET (`org-insert-todo-heading`) are behaving a little Anupam> erratically when invoked from the _end_ of a heading that Anupam> has a property drawer. [...] Anupam> behavior when M-RET is invoked from the _end_ of the line Anupam> is: Anupam> *** A Heading with a Drawer Anupam> :PROPERTIES: Anupam> :CATEGORY: TEST Anupam> :END: Anupam> *** <----- The second item's outline Anupam> ^^^ Note that the second item's outline got indented, Anupam> and has leading spaces (indented?) Basically, the issue is that there is a bad interplay with the `electric-indent-mode`, which is causing the additional indentation to be added during the invocation of `org-insert-heading`. Apologies for the noise, and hopefully this helps someone. It might be useful to add this minor mode in the list of conflicts in the manual also. Regards, -- Anupam