From mboxrd@z Thu Jan 1 00:00:00 1970 From: Manish Subject: Re: checkbox problem Date: Fri, 19 Jun 2009 12:24:43 +0530 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MHY0A-0005bl-F3 for emacs-orgmode@gnu.org; Fri, 19 Jun 2009 02:55:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MHY09-0005a7-Om for emacs-orgmode@gnu.org; Fri, 19 Jun 2009 02:55:05 -0400 Received: from [199.232.76.173] (port=56290 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHY09-0005Zt-DY for emacs-orgmode@gnu.org; Fri, 19 Jun 2009 02:55:05 -0400 Received: from mx20.gnu.org ([199.232.41.8]:12292) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MHY08-0003ji-M6 for emacs-orgmode@gnu.org; Fri, 19 Jun 2009 02:55:04 -0400 Received: from qw-out-1920.google.com ([74.125.92.149]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MHY08-0001DD-1J for emacs-orgmode@gnu.org; Fri, 19 Jun 2009 02:55:04 -0400 Received: by qw-out-1920.google.com with SMTP id 9so945415qwj.24 for ; Thu, 18 Jun 2009 23:55:03 -0700 (PDT) In-Reply-To: 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: "Thomas S. Dye" Cc: emacs-orgmode@gnu.org On Wed, Jun 17, 2009 at 12:24 AM, Thomas S. Dye wrote: > Aloha all, > First, org-mode is really useful. The more I use it, the more useful it > gets and the more I appreciate its flexibility. I've been using it for > several months but still feel like a newbie. Perhaps the problem I'm having > stems from this. > I use the checkbox feature a lot, with good effect, like this: > *** Task 1 [/] > - [ ] Step 1 > - [ ] Step 2 > - [ ] Step 3 > > Recently, I received via email comments from 4 reviewers on a paper I'd > submitted for publication. The editor asked me to keep track of how I'd > responded to all of the comments, so I tried this: > *** Reviewer 1 [/] > - [ ] Comment 1 > - [ ] Comment 2 > etc. > I cut the comments out of the email message and pasted them directly into > the org file in Aquamacs Emacs. Some of the comments are quite lengthy, > others are short. > My problem is that midway down a list of comments org-mode ceases to > recognize that the comment checkboxes are associated with the heading. In > each case, the last comment checkbox that is correctly associated with the > heading formats differently (with Esc-Q) than the comments above it. The > comment checkboxes that are associated correctly format as indented blocks > with the second and subsequent lines of text left justified on the "[" of > the first line. The last associated checkbox justifies the second and > subsequent lines two characters left of the "-" of the first line. > Subsequent, unassociated checkboxes align the "-" of the first line with > last line of the item above it. Here is an example: > > *** Reviewer 3 [2/6] > ... (Several items omitted) > - [X] p. 7 In 1779, Kamehameha was a young man on his way up as a > favored nephew of Kalaniopu`u, but isn't it a little early to > refer to his dynasty? > - [X] p. 7 It is true Kamehameha benefited greatly from Western > advice and weapons, but the tradition of conquest was well > established by the time he embarked on his career as a conqueror by > chiefs including Kalaniopu`u, and especially Kahekili. > - [X] p. 7 According to traditions 'Umi's father had been recognized > as paramount of the island. `Umi regained his father's status by > putting down a rebellion of the five districts other than Hamakua > and reunited the polity. I think of this as a civil war rather > than the capture of territory to which he had no previous claim. > In this case the first two items are counted in the headline, but the last > one isn't. It behaves as expected if you keep the lines below checkboxes indented at least one character right to the "-" above them. I find it unsettling when lines/checkboxes are formatted with indentation jutting to the left, so I never use it personally. Moreover, if you paste a long time against a checkbox and format it with Esc-Q (I find ALT-q easier), it is formatted correctly so as not to cause the problem you described. Following example behaves fine. ,---- | *** Reviewer 3 [4/5] | | ... (Several items omitted) | | - [X] p. 7 In 1779, Kamehameha was a young man on his way up as a | favored nephew of Kalaniopu`u, but isn't it a little early to | refer to his dynasty? | - [X] p. 7 It is true Kamehameha benefited greatly from Western | advice and weapons, but the tradition of conquest was well | established by the time he embarked on his career as a | conqueror by chiefs including Kalaniopu`u, and especially | Kahekili. | - [ ] kjsvhkjshvjk slv lsk jvjlk jvlks jvlkj slkvj slkv jlksj | fvkls jlvkj flkjv lksjf vlksj vlks jlkv jslkvj lksv jlks jvls jv | lksfjvlksjvlkdjskl | - [X] p. 7 According to traditions 'Umi's father had been | recognized as paramount of the island. `Umi regained his | father's status by putting down a rebellion of the five | districts other than Hamakua and reunited the polity. I think | of this as a civil war rather than the capture of territory to | which he had no previous claim. | - [X] jkhfkuwhkfh wkrh fkjwehtkjherkgh woe ghoi2h giw htig hil2 | hgowttwhet tgh rltig hl4 ghl2 h5li hlti h245t hil h4wlg h42ot | h54 htou h5 `---- There must be a technical requirement for indentation to behave as it does since Org uses indentation extensively to determine appropriate behavior. May be someone knowledgeable about Org internals can shed more light. HTH -- Manish