From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: BUG: plain lists inside drawers with org-cycle-include-plain-lists Date: Fri, 18 Jan 2008 09:42:09 +0100 Message-ID: <5946D7F0-5F96-4C7D-A80A-447E3EAE3B4B@gmail.com> References: Mime-Version: 1.0 (Apple Message framework v915) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JFnLX-0001gI-Pj for emacs-orgmode@gnu.org; Fri, 18 Jan 2008 04:17:08 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JFnLW-0001eu-5E for emacs-orgmode@gnu.org; Fri, 18 Jan 2008 04:17:06 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JFnLU-0001eS-5A for emacs-orgmode@gnu.org; Fri, 18 Jan 2008 04:17:04 -0500 Received: from ug-out-1314.google.com ([66.249.92.172]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JFnLU-0000vw-AI for emacs-orgmode@gnu.org; Fri, 18 Jan 2008 04:17:04 -0500 Received: by ug-out-1314.google.com with SMTP id a2so502186ugf.48 for ; Fri, 18 Jan 2008 01:17:03 -0800 (PST) In-Reply-To: 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: Tom Weissmann Cc: emacs-orgmode@gnu.org On Jan 9, 2008, at 11:58 AM, Tom Weissmann wrote: > 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 I have implemented this partial fix. > but the :END: tag is treated as the single child of > the last item in the plain list - meaning an extra visibility cycle. This is a general problem with cycling plain lists. Stuff after the final item is considered part of the last item as far as cycling is concerned. The reason for this is that with `org-cycle-include-plain-lists', all that happens is that item lines are consireded as headlines as well. The plain list editing commands on the other hand really look for the end of a plain list, based on line indentation. outline.el internals do not cater for the pssibility that there might be text "after a subtree", and so fixing this issue would involve rewriting parts of outline.el. I don't really know a good way forward on this point. Thanks for your report and the analysis. - Carsten > > > Tom SW > > ---- > Does the name Pavlov ring a bell? > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: