From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Bug: i in agenda complains mark is not active now [6.33trans (release_6.33c.26.ga839)] Date: Fri, 20 Nov 2009 13:56:54 +0100 Message-ID: <5389B991-54CB-450B-9EF2-5A4ABEB30CBA@gmail.com> References: <200911191626.nAJGQaTT022814@gollum.intra.norang.ca> <1017F01F-6BCA-45A4-8AEA-3676668374C4@gmail.com> <87pr7dqtud.fsf@gollum.intra.norang.ca> <87lji1qtoc.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NBT2v-0007GO-2Y for emacs-orgmode@gnu.org; Fri, 20 Nov 2009 07:57:05 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NBT2q-0007Cf-0F for emacs-orgmode@gnu.org; Fri, 20 Nov 2009 07:57:04 -0500 Received: from [199.232.76.173] (port=47009 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NBT2p-0007CH-Jh for emacs-orgmode@gnu.org; Fri, 20 Nov 2009 07:56:59 -0500 Received: from ey-out-1920.google.com ([74.125.78.145]:35396) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NBT2o-0007XW-3j for emacs-orgmode@gnu.org; Fri, 20 Nov 2009 07:56:58 -0500 Received: by ey-out-1920.google.com with SMTP id 3so1088282eyh.34 for ; Fri, 20 Nov 2009 04:56:57 -0800 (PST) In-Reply-To: <87lji1qtoc.fsf@gollum.intra.norang.ca> 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: Bernt Hansen Cc: emacs-orgmode@gnu.org Fixed, thanks. - Carsten On Nov 20, 2009, at 1:14 PM, Bernt Hansen wrote: > If you hit i on the first line of the agenda you get > > Debugger entered--Lisp error: (wrong-type-argument number-or-marker-=20= > p nil) > calendar-gregorian-from-absolute(nil) > (setq d1 (calendar-gregorian-from-absolute (get-text-=20 > property ... ...)) d2 (and (ignore-errors ...) (save-=20 > excursion ... ...) (calendar-gregorian-from-absolute dp))) > (if (equal (buffer-name) "*Calendar*") (setq d1 (calendar-cursor-to-=20= > date t) d2 (car calendar-mark-ring)) (setq d1 (calendar-gregorian-=20 > from-absolute ...) d2 (and ... ... ...))) > (let (d1 d2 char (text "") dp) (if (equal ... "*Calendar*") (setq =20 > d1 ... d2 ...) (setq d1 ... d2 ...)) (message "Diary entry: [d]ay =20 > [a]nniversary [b]lock [j]ump to date tree") (setq char (read-char-=20 > exclusive)) (cond (... ... ...) (... ... ... ...) (... ... ... ...) =20= > (... ... ... ...) (t ...))) > org-agenda-diary-entry-in-org-file() > (if (not (eq org-agenda-diary-file ...)) (org-agenda-diary-entry-in-=20= > org-file) (require (quote diary-lib)) (let* (... ... ... ... ...) =20 > (unless cmd ...) (unless ... ...) (let ... ...))) > org-agenda-diary-entry() > call-interactively(org-agenda-diary-entry) > recursive-edit() > byte-code("=C6=10 @=C7=3D=83!=C8=C9=CA\"=88=CB=C9!=89=1AA@)=A2=CC=3D= =83!=C8=CD=CA\"=88=CE=0B!=88=CF =88=D0 !=88\f=83c=D1ed\" > V=83Web=88=D2 > =A5y=88`=1E=1Bdb=88=D2 > =A5 > Zy=88=0E=1B`|=88)=D3c=88eb=88=D4=D5=D6 \"=88=D7 =88=D4=D8!=88=D9=CA=1E=1C= =1E=1D=D4=D8!=88=8A=DA =88+=D9=87" [unread-command-char =20 > debugger-args x debugger-buffer noninteractive debugger-batch-max-=20 > lines -1 debug backtrace-debug 4 t backtrace-frame lambda 5 pop-to-=20 > buffer debugger-mode debugger-setup-buffer count-lines 2 "...\n" =20 > message "%s" buffer-string kill-emacs "" nil recursive-edit =20 > middlestart buffer-read-only standard-output] 4) > debug(error (mark-inactive)) > signal(mark-inactive nil) > mark() > (and (mark) (get-text-property (mark) (quote day)) (calendar-=20 > gregorian-from-absolute (get-text-property ... ...))) > (setq d1 (calendar-gregorian-from-absolute (get-text-=20 > property ... ...)) d2 (and (mark) (get-text-property ... ...) =20 > (calendar-gregorian-from-absolute ...))) > (if (equal (buffer-name) "*Calendar*") (setq d1 (calendar-cursor-to-=20= > date t) d2 (car calendar-mark-ring)) (setq d1 (calendar-gregorian-=20 > from-absolute ...) d2 (and ... ... ...))) > (let (d1 d2 char (text "")) (if (equal ... "*Calendar*") (setq =20 > d1 ... d2 ...) (setq d1 ... d2 ...)) (message "Diary entry: [d]ay =20 > [a]nniversary [b]lock [j]ump to date tree") (setq char (read-char-=20 > exclusive)) (cond (... ... ...) (... ... ... ...) (... ... ... ...) =20= > (... ... ... ...) (t ...))) > org-agenda-diary-entry-in-org-file() > (if (not (eq org-agenda-diary-file ...)) (org-agenda-diary-entry-in-=20= > org-file) (require (quote diary-lib)) (let* (... ... ... ... ...) =20 > (unless cmd ...) (unless ... ...) (let ... ...))) > org-agenda-diary-entry() > call-interactively(org-agenda-diary-entry) > > and if you hit i on the last line of the agenda you get > > Debugger entered--Lisp error: (wrong-type-argument number-or-marker-=20= > p nil) > calendar-gregorian-from-absolute(nil) > (setq d1 (calendar-gregorian-from-absolute (get-text-=20 > property ... ...)) d2 (and (ignore-errors ...) (save-=20 > excursion ... ...) (calendar-gregorian-from-absolute dp))) > (if (equal (buffer-name) "*Calendar*") (setq d1 (calendar-cursor-to-=20= > date t) d2 (car calendar-mark-ring)) (setq d1 (calendar-gregorian-=20 > from-absolute ...) d2 (and ... ... ...))) > (let (d1 d2 char (text "") dp) (if (equal ... "*Calendar*") (setq =20 > d1 ... d2 ...) (setq d1 ... d2 ...)) (message "Diary entry: [d]ay =20 > [a]nniversary [b]lock [j]ump to date tree") (setq char (read-char-=20 > exclusive)) (cond (... ... ...) (... ... ... ...) (... ... ... ...) =20= > (... ... ... ...) (t ...))) > org-agenda-diary-entry-in-org-file() > (if (not (eq org-agenda-diary-file ...)) (org-agenda-diary-entry-in-=20= > org-file) (require (quote diary-lib)) (let* (... ... ... ... ...) =20 > (unless cmd ...) (unless ... ...) (let ... ...))) > org-agenda-diary-entry() > call-interactively(org-agenda-diary-entry) > > -Bernt > > > Bernt Hansen writes: > >> Carsten Dominik writes: >> >>> I cannot reproduce this. Can you please send a backtrace? >>> >>> - Carsten >> >> I can't reproduce it with the tip of master today either so I think >> it's fixed. It's broken on the commit I was on yesterday which is >> >> 1bb0df0 (Allow diary entry insertion at top-level, 2009-11-19) >> >> Debugger entered--Lisp error: (mark-inactive) >> signal(mark-inactive nil) >> mark() >> (and (mark) (get-text-property (mark) (quote day)) (calendar-=20 >> gregorian-from-absolute (get-text-property ... ...))) >> (setq d1 (calendar-gregorian-from-absolute (get-text-=20 >> property ... ...)) d2 (and (mark) (get-text-property ... ...) =20 >> (calendar-gregorian-from-absolute ...))) >> (if (equal (buffer-name) "*Calendar*") (setq d1 (calendar-cursor-=20 >> to-date t) d2 (car calendar-mark-ring)) (setq d1 (calendar-=20 >> gregorian-from-absolute ...) d2 (and ... ... ...))) >> (let (d1 d2 char (text "")) (if (equal ... "*Calendar*") (setq =20 >> d1 ... d2 ...) (setq d1 ... d2 ...)) (message "Diary entry: [d]ay =20 >> [a]nniversary [b]lock [j]ump to date tree") (setq char (read-char-=20 >> exclusive)) (cond (... ... ...) (... ... ... ...) (... ... ... ...) =20= >> (... ... ... ...) (t ...))) >> org-agenda-diary-entry-in-org-file() >> (if (not (eq org-agenda-diary-file ...)) (org-agenda-diary-entry-=20 >> in-org-file) (require (quote diary-lib)) (let* =20 >> (... ... ... ... ...) (unless cmd ...) (unless ... ...) =20 >> (let ... ...))) >> org-agenda-diary-entry() >> call-interactively(org-agenda-diary-entry) >> >> -Bernt >> >>> >>> On Nov 19, 2009, at 5:26 PM, Bernt Hansen wrote: >>> >>>> >>>> Remember to cover the basics, that is, what you expected to =20 >>>> 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. >>>> = ------------------------------------------------------------------------ >>>> When org-agenda-diary-file is set to a special org file for diary >>>> entries and transient mark mode is enabled 'i' in the agenda fails >>>> with 'mark is not active now' >>>> >>>> My workaround for this is C-SPC to set the mark anywhere legal in =20= >>>> the >>>> agenda display (ie not on the first or last line) and then hit 'i' >>>> to insert my diary entries. >>>> >>>> -Bernt >>>> >>>> Emacs : GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) >>>> of 2008-11-09 on raven, modified by Debian >>>> Package: Org-mode version 6.33trans (release_6.33c.26.ga839) >>>> >>>> >>>> _______________________________________________ >>>> 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 >>> >>> - Carsten - Carsten