emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Folding last plain list entry
@ 2009-11-13 18:44 Dan Davison
  2009-11-15 13:27 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Davison @ 2009-11-13 18:44 UTC (permalink / raw)
  To: emacs org-mode mailing list

Org-cycle (tab) on the last item of a plain list folds all the rest of
the contents in the current heading, despite
org-empty-line-terminates-plain-lists being t. It shouldn't do that,
right?

For example

(setq org-empty-line-terminates-plain-lists t)

,----
| * h1
|   - item 1
|     item 1 contents
|   - item 2
|     item 2 contents
| 
| Non-list stuff
`----

Now if I hit <tab> at the start of the 'item 2' line it folds like this

,----
| * h1
|   - item 1
|     item 1 contents
|   - item 2
|     item 2...
`----

Dan

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

* Re: Folding last plain list entry
  2009-11-13 18:44 Folding last plain list entry Dan Davison
@ 2009-11-15 13:27 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2009-11-15 13:27 UTC (permalink / raw)
  To: Dan Davison; +Cc: emacs org-mode mailing list

Hi Dan,

the folding implementation of plain lists is limited - it works
by assuming, for the duration of the org-cycle instance, that
these lines are just normal headlines.

I believe it would be an awful lot of work to fix this.

- Carsten

On Nov 13, 2009, at 7:44 PM, Dan Davison wrote:

> Org-cycle (tab) on the last item of a plain list folds all the rest of
> the contents in the current heading, despite
> org-empty-line-terminates-plain-lists being t. It shouldn't do that,
> right?
>
> For example
>
> (setq org-empty-line-terminates-plain-lists t)
>
> ,----
> | * h1
> |   - item 1
> |     item 1 contents
> |   - item 2
> |     item 2 contents
> |
> | Non-list stuff
> `----
>
> Now if I hit <tab> at the start of the 'item 2' line it folds like  
> this
>
> ,----
> | * h1
> |   - item 1
> |     item 1 contents
> |   - item 2
> |     item 2...
> `----
>
> Dan
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten

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

end of thread, other threads:[~2009-11-15 13:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-13 18:44 Folding last plain list entry Dan Davison
2009-11-15 13:27 ` 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).