emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] org structuresin a drawer? (or some other presentation soution)


From: Carsten Dominik
Subject: Re: [O] org structuresin a drawer? (or some other presentation soution)
Date: Thu, 12 Sep 2013 21:13:33 +0200

On 12.9.2013, at 19:49, Nicolas Goaziou <address@hidden> wrote:

> Matt Price <address@hidden> writes:
> 
>> inside a drawer, when I try to make a lit, org-meta-return doesn't
>> seem to create a new ist item, but instead just indents the next line
>> without also inserting a "- ".  Is this a bug? THanks,
> 
> I think it is a bug, indeed.
> 
> There's this condition in `org-meta-return', but I'm not sure why it is
> here. Probably historical reasons.

Well, it is to avoid that a new headline would be made inside a drawer,
because it would violate Org syntax.  But of course, it would be OK to
insert an item.  What would be a good solution?  Maybe we better catch
this problem in org-insert-heading?  Or maybe not at all?  We also do
not catch it in src block, for example.  So I am fine with removing
this condition in org-meta-return.

- Carsten

> 
>  (cond
>   ...
>   ((or (org-at-drawer-p) (org-in-drawer-p) (org-at-property-p))
>    (newline-and-indent))
>   ...)
> 
> 
> Regards,
> 
> -- 
> Nicolas Goaziou
> 

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail


reply via email to

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