all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Tom Weissmann <trmsw@yahoo.co.uk>
Cc: emacs-orgmode@gnu.org
Subject: Re: BUG: plain lists inside drawers with org-cycle-include-plain-lists
Date: Fri, 18 Jan 2008 09:42:09 +0100	[thread overview]
Message-ID: <5946D7F0-5F96-4C7D-A80A-447E3EAE3B4B@gmail.com> (raw)
In-Reply-To: <loom.20080109T103531-173@post.gmane.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:

      reply	other threads:[~2008-01-18  9:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5946D7F0-5F96-4C7D-A80A-447E3EAE3B4B@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=trmsw@yahoo.co.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.