emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: org structuresin a drawer? (or some other presentation soution)
Date: Thu, 12 Sep 2013 21:13:33 +0200	[thread overview]
Message-ID: <D95AE32D-FE3C-4354-9AB6-AE3B147302CA@gmail.com> (raw)
In-Reply-To: <87sixaorpw.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1035 bytes --]


On 12.9.2013, at 19:49, Nicolas Goaziou <n.goaziou@gmail.com> wrote:

> Matt Price <moptop99@gmail.com> 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 #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

  reply	other threads:[~2013-09-12 19:13 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-12 17:06 org structuresin a drawer? (or some other presentation soution) Matt Price
2013-09-12 17:16 ` Thorsten Jolitz
2013-09-12 17:38   ` Matt Price
2013-09-12 17:26 ` Nicolas Goaziou
2013-09-12 17:30   ` Matt Price
2013-09-12 17:49     ` Nicolas Goaziou
2013-09-12 19:13       ` Carsten Dominik [this message]
2013-09-12 19:18         ` Michael Brand
2013-09-12 19:24           ` Carsten Dominik
2013-09-12 20:17           ` Nicolas Goaziou
2013-09-12 19:41         ` Nicolas Goaziou
2013-09-12 20:13           ` Nicolas Goaziou
2013-09-12 20:16           ` Carsten Dominik
2013-09-12 20:35             ` Nicolas Goaziou
2013-09-12 20:41               ` Carsten Dominik
2013-09-12 20:42               ` Michael Brand
2013-09-13  0:43               ` Matt Price

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=D95AE32D-FE3C-4354-9AB6-AE3B147302CA@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=n.goaziou@gmail.com \
    /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 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).