From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gregor Zattler Subject: Bug: creating the agenda gives "Arithmetic error" [8.2.6 (release_8.2.6-1034-g995808 @ /home/grfz/src/org-mode/lisp/)] Date: Sat, 24 May 2014 11:18:55 +0200 Message-ID: <8738fz1qm8.fsf@boo.workgroup> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44211) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wo86d-0004EX-Vj for emacs-orgmode@gnu.org; Sat, 24 May 2014 05:19:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wo86Y-00055s-Ef for emacs-orgmode@gnu.org; Sat, 24 May 2014 05:19:07 -0400 Received: from mout.gmx.net ([212.227.17.21]:56989) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wo86Y-00055m-52 for emacs-orgmode@gnu.org; Sat, 24 May 2014 05:19:02 -0400 Received: from boo.workgroup ([87.185.131.249]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0M7YF5-1WcwPi1UYh-00xJkB for ; Sat, 24 May 2014 11:19:01 +0200 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: emacs-orgmode@gnu.org Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. ------------------------------------------------------------------------ Dear org-mode developers, I cannnot create an agenda due to a erroneous stats cookie in a headline of an org file: If I do C-c a a emacs opens a *Org Agenda* window but it is empty and the message "Arithmetic Error" appears in the echo line. In the *Message* buffer I'm told: Press key for agenda command: if: Arithmetic error I bisected the repo: 45c4f276f266fc41530128e1069979eb8df50fa2 is the first bad commit commit 45c4f276f266fc41530128e1069979eb8df50fa2 Author: Bastien Guerry Date: Fri May 23 15:54:50 2014 +0200 org.el: Implement agenda sorting against stats cookies. Code cleanup I bisected my org-agenda-files and found a minimal example which triggers the bug: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ******* Some Appointment [0/0] <2013-09-12 Do 19:00> - People [6/11] - [X] Alice - [X] Bob - [X] Mallorey - [X] A - [ ] B - [ ] C - [X] D - [ ] E - [X] F - [ ] G - [ ] H <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Note the wrong stats cookie '[0/0]' in the headline. I'll remove the '[0/0]' but it woukld be nice if org-mode would report the erroneous stats cookie instead of throwing an arithmetic error. Thanks, Gregor Emacs : GNU Emacs 24.4.50.1 (i686-pc-linux-gnu, GTK+ Version 3.12.2) of 2014-05-23 on boo Package: Org-mode version 8.2.6 (release_8.2.6-1034-g995808 @ /home/grfz/src/org-mode/lisp/)