From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: org structuresin a drawer? (or some other presentation soution) Date: Thu, 12 Sep 2013 21:13:33 +0200 Message-ID: References: <871u4uq7c4.fsf@gmail.com> <87sixaorpw.fsf@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: multipart/signed; boundary="Apple-Mail=_E2E66B8C-6F0A-433F-B7CF-45061C9BA98D"; protocol="application/pgp-signature"; micalg=pgp-sha1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKCKo-0007uR-CS for emacs-orgmode@gnu.org; Thu, 12 Sep 2013 15:13:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VKCKf-00032v-VR for emacs-orgmode@gnu.org; Thu, 12 Sep 2013 15:13:46 -0400 Received: from mail-ea0-x22c.google.com ([2a00:1450:4013:c01::22c]:58437) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKCKf-00032X-O5 for emacs-orgmode@gnu.org; Thu, 12 Sep 2013 15:13:37 -0400 Received: by mail-ea0-f172.google.com with SMTP id r16so111416ead.31 for ; Thu, 12 Sep 2013 12:13:36 -0700 (PDT) In-Reply-To: <87sixaorpw.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: Org Mode --Apple-Mail=_E2E66B8C-6F0A-433F-B7CF-45061C9BA98D Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 12.9.2013, at 19:49, Nicolas Goaziou wrote: > Matt Price 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 > --Apple-Mail=_E2E66B8C-6F0A-433F-B7CF-45061C9BA98D Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJSMhJdAAoJEO+gg/nAZuwMwxsIAMJjTs2oXG7f0ypc0DhNLHKQ fs5Ve4qGVIT5itky4S1OA71g8bDI63N5s1sYXFkUA9nPRXSFyLWak4Q28SkUhUng l2wZN3rT2zspL2y6beYP0dsHkmo72Tq/mNMt7nWIs5a7rQtx1aUf2O5aRuvtyt6o wn6VgDVIeR13gRkei7SKaiN3+06X+BOUm5iMrT4sLu9/qH5kISV6Tt75LiGXQUJA GUaRQTU1ZbWPMggMM/Clff3Qe1PG3LCthlXRX0vQtUfmjWncPYF3xcBENZv5qsaz IXxZAn9JMbSUDQzOD0lEm+titt8hUmQqxEbYFg8QVJoMe5xn4bHgoFHYYl/v6qU= =iRRJ -----END PGP SIGNATURE----- --Apple-Mail=_E2E66B8C-6F0A-433F-B7CF-45061C9BA98D--