From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ethan Blanton Subject: org-clock-find-position confusion (bug?) Date: Sat, 27 Sep 2008 23:49:23 -0400 Message-ID: <20080928034922.GA22412@elb.elitists.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0093177876==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KjnI6-0001NN-0b for emacs-orgmode@gnu.org; Sat, 27 Sep 2008 23:49:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KjnI4-0001NB-El for emacs-orgmode@gnu.org; Sat, 27 Sep 2008 23:49:48 -0400 Received: from [199.232.76.173] (port=58217 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KjnI4-0001N8-9r for emacs-orgmode@gnu.org; Sat, 27 Sep 2008 23:49:48 -0400 Received: from psg.com ([147.28.0.62]:50713) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KjnI4-0000IU-0R for emacs-orgmode@gnu.org; Sat, 27 Sep 2008 23:49:48 -0400 Received: from [67.59.52.214] (helo=elb.elitists.net) by psg.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KjnHz-0002hC-8N for emacs-orgmode@gnu.org; Sun, 28 Sep 2008 03:49:45 +0000 Received: from colt.internal (colt [192.168.33.1]) by elb.elitists.net (Postfix) with ESMTP id DB1832BE23 for ; Sat, 27 Sep 2008 23:49:23 -0400 (EDT) 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 --===============0093177876== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Nq2Wo0NMKNjxTN9z" Content-Disposition: inline --Nq2Wo0NMKNjxTN9z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Thanks for taking care of my last issue so quickly; as a reward, I've found another one! ;-) (Seriously, thanks for the blazing turn around last time -- and thanks for org-mode, I'm finding a lot of things to love!) org-clock-find-position (6.07b again) displays unexpected behavior when it encounters a clock line preceding a bulleted list. Specifically, when a :CLOCK: drawer is created, the drawer encompasses the first list item. E.g.: * Heading CLOCK: [2008-09-27 Sat 14:00]--[2008-09-27 Sat 14:30] =3D> 0:30 - Bullet 1 - Bullet 2 Clocking in on this item again will yield (if drawer creation is enabled): * Heading :CLOCK: CLOCK: [2008-09-27 Sat 15:00] CLOCK: [2008-09-27 Sat 14:00]--[2008-09-27 Sat 14:30] =3D> 0:30 - Bullet 1 :END: - Bullet 2 Looking at org-clock-find-position, this seems to be intentional; removing the (if (org-at-item-p) (org-end-of-item)) statement "fixes" this behavior for me, but may be breaking something else which I am not seeing. Ethan --=20 The laws that forbid the carrying of arms are laws [that have no remedy for evils]. They disarm only those who are neither inclined nor determined to commit crimes. -- Cesare Beccaria, "On Crimes and Punishments", 1764 --Nq2Wo0NMKNjxTN9z Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFI3v7Cr9kA9Ig8HBQRAj0ZAJ45LWoqTUeN6/0gMlZsbuUv0IGmogCgkSlQ lny1IvprmUC9lC2XHFEbNeo= =TNou -----END PGP SIGNATURE----- --Nq2Wo0NMKNjxTN9z-- --===============0093177876== 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 --===============0093177876==--