emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* BUG: plain lists inside drawers with org-cycle-include-plain-lists
@ 2008-01-09 10:58 Tom Weissmann
  2008-01-18  8:42 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Tom Weissmann @ 2008-01-09 10:58 UTC (permalink / raw)
  To: emacs-orgmode

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?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: BUG: plain lists inside drawers with org-cycle-include-plain-lists
  2008-01-09 10:58 BUG: plain lists inside drawers with org-cycle-include-plain-lists Tom Weissmann
@ 2008-01-18  8:42 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2008-01-18  8:42 UTC (permalink / raw)
  To: Tom Weissmann; +Cc: emacs-orgmode


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:

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-01-18  9:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-09 10:58 BUG: plain lists inside drawers with org-cycle-include-plain-lists Tom Weissmann
2008-01-18  8:42 ` Carsten Dominik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).