From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tassilo Horn Subject: Re: Args out of range when creating TODOs Date: Thu, 25 Oct 2007 12:25:57 +0200 Message-ID: <87ejfjwkwa.fsf@baldur.tsdh.de> References: <87bqany365.fsf@baldur.tsdh.de> <87r6jjlbp1.fsf@bzg.ath.cx> <87myu7wmk2.fsf@baldur.tsdh.de> <87ejfjfo0i.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ikzv4-0001se-OG for emacs-orgmode@gnu.org; Thu, 25 Oct 2007 06:26:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ikzv4-0001rz-5O for emacs-orgmode@gnu.org; Thu, 25 Oct 2007 06:26:30 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ikzv3-0001rc-Vo for emacs-orgmode@gnu.org; Thu, 25 Oct 2007 06:26:30 -0400 Received: from main.gmane.org ([80.91.229.2] 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 1Ikzv3-0006zi-Li for emacs-orgmode@gnu.org; Thu, 25 Oct 2007 06:26:30 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Ikzux-00015D-An for emacs-orgmode@gnu.org; Thu, 25 Oct 2007 10:26:23 +0000 Received: from dslb-084-063-008-006.pools.arcor-ip.net ([84.63.8.6]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Oct 2007 10:26:23 +0000 Received: from tassilo by dslb-084-063-008-006.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Oct 2007 10:26:23 +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 Bastien writes: Hi Bastien, > Mhh... strange, I still cannot reproduce here with a minimal config. > Can you debug step by step in this case? It fails in line 13497 of org.el (the call to replace-match). Here's the edebug output so far. --8<---------------cut here---------------start------------->8--- Edebug: edebug-anon0 Edebug: org-todo org-todo Result: t Result: "\\*+ " Result: t Result: 3 (#o3, #x3, ?\C-c) Result: 2 (#o2, #x2, ?\C-b) [3 times] Result: "\\<\\(TODO\\|STARTED\\|WAITING\\|DONE\\|DEFERRED\\|CANCELLED\\)\\>" Result: " +\\<\\(TODO\\|STARTED\\|WAITING\\|DONE\\|DEFERRED\\|CANCELLED\\)\\> *" Result: nil Result: t [2 times] Result: 1 (#o1, #x1, ?\C-a) Result: nil [5 times] Result: t Result: nil Result: 2 (#o2, #x2, ?\C-b) Result: nil [3 times] Result: ((#1=#("TODO" 0 4 (face org-todo)) . #2=(sequence #1# "DONE" "CANCELLED")) (#("STARTED" 0 7 (face org-todo)) . #2#) (#("WAITING" 0 7 (face org-todo)) . #2#) (#("DONE" 0 4 (face org-done)) . #2#) (#("DEFERRED" 0 8 (face org-done)) . #2#) (#("CANCELLED" 0 9 (face org-done)) . #2#)) Result: nil [8 times] Result: "" Result: nil Result: (#("TODO" 0 4 (face org-todo)) #("STARTED" 0 7 (face org-todo)) #("WAITING" 0 7 (face org-todo)) #("DONE" 0 4 (face org-done)) #("DEFERRED" 0 8 (face org-done)) #("CANCELLED" 0 9 (face org-done))) Result: nil [3 times] Result: (116 115 119 100 102 99) Result: nil [4 times] Result: t [3 times] Result: nil Result: t [4 times] [a-z..]:Set [SPC]:clear Result: #("TODO" 0 4 (face org-todo)) [4 times] Result: #(" TODO " 0 1 nil 1 5 (face org-todo) 5 6 nil) [2 times] Result: nil Result: #("TODO" 0 4 (face org-todo)) Result: 1 (#o1, #x1, ?\C-a) Result: (:type todo-state-change :from nil :to #("TODO" 0 4 (face org-todo)) :position 1) Result: nil [2 times] Result: #(" TODO " 0 1 nil 1 5 (face org-todo) 5 6 nil) Args out of range: 24, 40 --8<---------------cut here---------------end--------------->8--- > PS: I'm using Emacs 23.0.0, not latest Emacs CVS (as you do), but I > don't think the error might come from here. I don't know. Maybe someone with a recent 23.0.50 Emacs can check if he can reproduce the error. And what does Carsten use? Bye, Tassilo -- Chuck Norris has 12 moons. One of those moons is the Earth.