From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Weissmann Subject: BUG: plain lists inside drawers with org-cycle-include-plain-lists Date: Wed, 9 Jan 2008 10:58:48 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JCYfB-0001bK-GE for emacs-orgmode@gnu.org; Wed, 09 Jan 2008 06:00:01 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JCYf6-0001ac-JA for emacs-orgmode@gnu.org; Wed, 09 Jan 2008 06:00:00 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JCYf6-0001aZ-A2 for emacs-orgmode@gnu.org; Wed, 09 Jan 2008 05:59:56 -0500 Received: from main.gmane.org ([80.91.229.2] 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 1JCYex-0006SY-5R for emacs-orgmode@gnu.org; Wed, 09 Jan 2008 05:59:55 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JCYe5-00054p-J0 for emacs-orgmode@gnu.org; Wed, 09 Jan 2008 10:58:53 +0000 Received: from mail2.siscog.pt ([195.22.30.41]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 09 Jan 2008 10:58:53 +0000 Received: from trmsw by mail2.siscog.pt with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 09 Jan 2008 10:58:53 +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 If you set org-cycle-include-plain-lists and then put a plain list inside a drawer, the drawer stops working: :FOO: - Ingredients + Chickpeas + Spinach + Aubergine + Pomegranate dressing :END: The error is ":END: line missing". What happens in this case is that outline-regexp is changed within the dynamic scope of org-cycle, and that includes org-flag-drawer - which needs to use the original version of outline-regexp. Saving outline-regexp and using the orignal version inside org-flag-drawer partly solves the problem but the :END: tag is treated as the single child of the last item in the plain list - meaning an extra visibility cycle. Tom SW ---- Does the name Pavlov ring a bell?