emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] BUG: plain lists inside drawers with org-cycle-include-pla


From: Carsten Dominik
Subject: Re: [Orgmode] BUG: plain lists inside drawers with org-cycle-include-plain-lists
Date: Fri, 18 Jan 2008 09:42:09 +0100


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:





reply via email to

[Prev in Thread] Current Thread [Next in Thread]