From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: [Bug] element cache problem with repeating timestamps Date: Sun, 22 Jun 2014 23:18:06 -0500 Message-ID: <87tx7c6yyp.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54876) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wyvhx-00027q-1f for emacs-orgmode@gnu.org; Mon, 23 Jun 2014 00:18:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wyvhr-0000yO-6z for emacs-orgmode@gnu.org; Mon, 23 Jun 2014 00:18:16 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:55366) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wyvhq-0000xx-Sb for emacs-orgmode@gnu.org; Mon, 23 Jun 2014 00:18:11 -0400 Received: from archthink (unknown [50.172.132.15]) by mail.messagingengine.com (Postfix) with ESMTPA id DFEB7680292 for ; Mon, 23 Jun 2014 00:18:06 -0400 (EDT) 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: Orgmode List --=-=-= Content-Type: text/plain A recent git pull broke logging with repeating todos. I'm guessing this has something to do with one of the recent changes to the org element cache, since setting org-element-use-cache to nil solves the problem. Recipe to replicate: 1. /usr/bin/emacs -Q -l ~/minimal.el Here is minimal.el: --=-=-= Content-Type: application/emacs-lisp Content-Disposition: inline; filename=minimal.el Content-Transfer-Encoding: quoted-printable (add-to-list 'load-path "~/org-mode/lisp") (setq org-log-into-drawer t) --=-=-= Content-Type: text/plain 2. Open a file containing the following: --8<---------------cut here---------------start------------->8--- * TODO Repeating task SCHEDULED: <2014-06-23 Mon 20:00 .+1d> :LOGBOOK: - State "DONE" from "TODO" [2014-06-22 Sun 23:01] :END: :PROPERTIES: :LAST_REPEAT: [2014-06-22 Sun 23:01] :END: --8<---------------cut here---------------end--------------->8--- 3. Hit org-todo on the headline. The buffer then looks like this: --8<---------------cut here---------------start------------->8--- * TODO Repeating task <2014-06-23 Mon 20:00 .+1d> SCHEDULED: :LOGBOOK: - State "DONE" from "TODO" [2014-06-22 Sun 23:10] - State "DONE" from "TODO" [2014-06-22 Sun 23:10] - State "DONE" from "TODO" [2014-06-22 Sun 23:01] :END: :PROPERTIES: :LAST_REPEAT: [2014-06-22 Sun 23:10] :END: --8<---------------cut here---------------end--------------->8--- Sometimes (more difficult to replicate) the LAST_REPEAT ends up in the wrong place (e.g., the beginning of the buffer). Also, emacs sometimes freezes when calling org-todo. - Org-mode version beta_8.3 (beta_8.3-16-g8ad206 @ /home/user134/org-mode/lisp/) - GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.12.2) of 2014-06-11 on var-lib-archbuild-staging-x86_64-jgc Thanks, Matt --=-=-=--