From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Jones Subject: Re: Fix Subtle Heading Creation Bugs Date: Wed, 22 Oct 2008 18:30:51 -0600 Message-ID: References: <6FE33468-00B0-4CEE-87AC-65F12E8BC847@uva.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kso6d-0006UD-95 for emacs-orgmode@gnu.org; Wed, 22 Oct 2008 20:31:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kso6a-0006Td-Gf for emacs-orgmode@gnu.org; Wed, 22 Oct 2008 20:31:14 -0400 Received: from [199.232.76.173] (port=41453 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kso6a-0006TW-9k for emacs-orgmode@gnu.org; Wed, 22 Oct 2008 20:31:12 -0400 Received: from main.gmane.org ([80.91.229.2]:50829 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kso6a-00079J-A3 for emacs-orgmode@gnu.org; Wed, 22 Oct 2008 20:31:12 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Kso6T-0007kf-Nr for emacs-orgmode@gnu.org; Thu, 23 Oct 2008 00:31:05 +0000 Received: from c-67-177-235-141.hsd1.co.comcast.net ([67.177.235.141]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Oct 2008 00:31:05 +0000 Received: from mlists by c-67-177-235-141.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Oct 2008 00:31:05 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Carsten Dominik writes: > I have applied your full patch, thanks. > > Please verify the push, I did have a little technical problem when > applying, so please make sure it worked correctly. Almost, I must have forgotten this: diff --git a/lisp/org.el b/lisp/org.el index ad0f106..5bca9e8 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -4694,7 +4694,7 @@ but create the new hedline after the current line." If the heading has no TODO state, or if the state is DONE, use the first state (TODO by default). Also with prefix arg, force first state." (interactive "P") - (when (not (org-insert-item 'checkbox)) + (when (or force-heading (not (org-insert-item 'checkbox))) (org-insert-heading force-heading) (save-excursion (org-back-to-heading) -- Peter Jones, http://pmade.com pmade inc. Louisville, CO US