From mboxrd@z Thu Jan 1 00:00:00 1970 From: Austin Frank Subject: bug? in orgstruct-mode Date: Sat, 21 Feb 2009 18:23:22 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0197814654==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lb1CB-000669-He for emacs-orgmode@gnu.org; Sat, 21 Feb 2009 18:23:43 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lb1C9-00065e-Cb for emacs-orgmode@gnu.org; Sat, 21 Feb 2009 18:23:42 -0500 Received: from [199.232.76.173] (port=43127 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lb1C9-00065a-85 for emacs-orgmode@gnu.org; Sat, 21 Feb 2009 18:23:41 -0500 Received: from main.gmane.org ([80.91.229.2]:34733 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lb1C8-0000PG-PF for emacs-orgmode@gnu.org; Sat, 21 Feb 2009 18:23:40 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Lb1C5-0001Bw-UQ for emacs-orgmode@gnu.org; Sat, 21 Feb 2009 23:23:37 +0000 Received: from urwireless-dhcp-128-151-24-170.wireless.rochester.edu ([128.151.24.170]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Feb 2009 23:23:37 +0000 Received: from austin.frank by urwireless-dhcp-128-151-24-170.wireless.rochester.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Feb 2009 23:23:37 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --===============0197814654== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable Hi all-- In normal org buffers, creating a new list item works fine at the end of a multi-line list item, or on the line following a multi-line list item, even if the multi-line item covers lots of lines. In orgstruct-mode, it seems that new items can't be inserted unless the current line is a list item. Can orgstruct-mode be made to be as good as org-mode at recognizing when it's in a plain list? It'd be nice to be able to create a new list item after a multi-line item in orgstruct-mode. Steps to reproduce: 1. emacs -Q -nw test.txt 2. `M-:' (require 'org-install) 3. `M-x orgstruct-mode' 4. Create a list item like =2D-8<---------------cut here---------------start------------->8--- =2D item 1 =2D-8<---------------cut here---------------end--------------->8--- 5. `M-return' to get a new list item 6. `C-u C-4 C-0 x SPC C-u C-4 C-0 x' to get two long "words" 7. `M-q' to wrap the long list item. Now looks like: =2D-8<---------------cut here---------------start------------->8--- =2D item 1 =2D xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx =2D-8<---------------cut here---------------end--------------->8--- 8a. At the end of the third line, try to add a new list item with `M-return'. I get the message: #v+ orgstruct-error: This key has no function outside structure elements #v- 8b. At the beginning of a new line below the third line, hit `M-return'. Same error. Expected behavior: Following the same sequence in org-mode, steps 8a and 8b will both result in a new list item being created correctly. This took me longer to figure out than it should have, but this also has an unpleasant interaction with the default keybindings for message-mode. If I am writing an email and try to insert a new list item after a wrapped like using `M-return' I end up invoking `message-newline-and-reformat', which moves me down a line and then inserts four blank lines-- not what I wanted to do! If orgstruct-mode learns to recognize when it's in plain list context, this problem will disappear :) Thanks! /au =2D-=20 Austin Frank http://aufrank.net GPG Public Key (D7398C2F): http://aufrank.net/personal.asc --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) iEYEARECAAYFAkmgjOsACgkQlHMl2/XbR4HxfgCfXkjl4/bOGJaknvBAfhlAdLBX k9cAn1DwbDa0Z6w1J8wCzn+MaUj87LA8 =Fq7M -----END PGP SIGNATURE----- --=-=-=-- --===============0197814654== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============0197814654==--