emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bernt Hansen <bernt@norang.ca>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: i in agenda complains mark is not active now [6.33trans (release_6.33c.26.ga839)]
Date: Fri, 20 Nov 2009 07:14:59 -0500	[thread overview]
Message-ID: <87lji1qtoc.fsf@gollum.intra.norang.ca> (raw)
In-Reply-To: <87pr7dqtud.fsf@gollum.intra.norang.ca> (Bernt Hansen's message of "Fri\, 20 Nov 2009 07\:11\:22 -0500")

If you hit i on the first line of the agenda you get

Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
  calendar-gregorian-from-absolute(nil)
  (setq d1 (calendar-gregorian-from-absolute (get-text-property ... ...)) d2 (and (ignore-errors ...) (save-excursion ... ...) (calendar-gregorian-from-absolute dp)))
  (if (equal (buffer-name) "*Calendar*") (setq d1 (calendar-cursor-to-date t) d2 (car calendar-mark-ring)) (setq d1 (calendar-gregorian-from-absolute ...) d2 (and ... ... ...)))
  (let (d1 d2 char (text "") dp) (if (equal ... "*Calendar*") (setq d1 ... d2 ...) (setq d1 ... d2 ...)) (message "Diary entry: [d]ay [a]nniversary [b]lock [j]ump to date tree") (setq char (read-char-exclusive)) (cond (... ... ...) (... ... ... ...) (... ... ... ...) (... ... ... ...) (t ...)))
  org-agenda-diary-entry-in-org-file()
  (if (not (eq org-agenda-diary-file ...)) (org-agenda-diary-entry-in-org-file) (require (quote diary-lib)) (let* (... ... ... ... ...) (unless cmd ...) (unless ... ...) (let ... ...)))
  org-agenda-diary-entry()
  call-interactively(org-agenda-diary-entry)
  recursive-edit()
  byte-code("Æ\x10	@Ç=ƒ!\0ÈÉÊ\"ˆËÉ!‰\x1aA@)¢Ì=ƒ!\0ÈÍÊ\"ˆÎ\v!ˆÏ ˆÐ	!ˆ\fƒc\0Ñed\"\rVƒW\0ebˆÒ\r¥yˆ`\x1e^[dbˆÒ\r¥\rZyˆ\x0e^[`|ˆ)ÓcˆebˆÔÕÖ \"ˆ× ˆÔØ!ˆÙÊ\x1e\x1c\x1e\x1dÔØ!ˆŠÚ ˆ+Ù‡" [unread-command-char debugger-args x debugger-buffer noninteractive debugger-batch-max-lines -1 debug backtrace-debug 4 t backtrace-frame lambda 5 pop-to-buffer debugger-mode debugger-setup-buffer count-lines 2 "...\n" message "%s" buffer-string kill-emacs "" nil recursive-edit 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-gregorian-from-absolute (get-text-property ... ...)))
  (setq d1 (calendar-gregorian-from-absolute (get-text-property ... ...)) d2 (and (mark) (get-text-property ... ...) (calendar-gregorian-from-absolute ...)))
  (if (equal (buffer-name) "*Calendar*") (setq d1 (calendar-cursor-to-date t) d2 (car calendar-mark-ring)) (setq d1 (calendar-gregorian-from-absolute ...) d2 (and ... ... ...)))
  (let (d1 d2 char (text "")) (if (equal ... "*Calendar*") (setq d1 ... d2 ...) (setq d1 ... d2 ...)) (message "Diary entry: [d]ay [a]nniversary [b]lock [j]ump to date tree") (setq char (read-char-exclusive)) (cond (... ... ...) (... ... ... ...) (... ... ... ...) (... ... ... ...) (t ...)))
  org-agenda-diary-entry-in-org-file()
  (if (not (eq org-agenda-diary-file ...)) (org-agenda-diary-entry-in-org-file) (require (quote diary-lib)) (let* (... ... ... ... ...) (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-p nil)
  calendar-gregorian-from-absolute(nil)
  (setq d1 (calendar-gregorian-from-absolute (get-text-property ... ...)) d2 (and (ignore-errors ...) (save-excursion ... ...) (calendar-gregorian-from-absolute dp)))
  (if (equal (buffer-name) "*Calendar*") (setq d1 (calendar-cursor-to-date t) d2 (car calendar-mark-ring)) (setq d1 (calendar-gregorian-from-absolute ...) d2 (and ... ... ...)))
  (let (d1 d2 char (text "") dp) (if (equal ... "*Calendar*") (setq d1 ... d2 ...) (setq d1 ... d2 ...)) (message "Diary entry: [d]ay [a]nniversary [b]lock [j]ump to date tree") (setq char (read-char-exclusive)) (cond (... ... ...) (... ... ... ...) (... ... ... ...) (... ... ... ...) (t ...)))
  org-agenda-diary-entry-in-org-file()
  (if (not (eq org-agenda-diary-file ...)) (org-agenda-diary-entry-in-org-file) (require (quote diary-lib)) (let* (... ... ... ... ...) (unless cmd ...) (unless ... ...) (let ... ...)))
  org-agenda-diary-entry()
  call-interactively(org-agenda-diary-entry)

-Bernt


Bernt Hansen <bernt@norang.ca> writes:

> Carsten Dominik <carsten.dominik@gmail.com> 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-gregorian-from-absolute (get-text-property ... ...)))
>   (setq d1 (calendar-gregorian-from-absolute (get-text-property ... ...)) d2 (and (mark) (get-text-property ... ...) (calendar-gregorian-from-absolute ...)))
>   (if (equal (buffer-name) "*Calendar*") (setq d1 (calendar-cursor-to-date t) d2 (car calendar-mark-ring)) (setq d1 (calendar-gregorian-from-absolute ...) d2 (and ... ... ...)))
>   (let (d1 d2 char (text "")) (if (equal ... "*Calendar*") (setq d1 ... d2 ...) (setq d1 ... d2 ...)) (message "Diary entry: [d]ay [a]nniversary [b]lock [j]ump to date tree") (setq char (read-char-exclusive)) (cond (... ... ...) (... ... ... ...) (... ... ... ...) (... ... ... ...) (t ...)))
>   org-agenda-diary-entry-in-org-file()
>   (if (not (eq org-agenda-diary-file ...)) (org-agenda-diary-entry-in-org-file) (require (quote diary-lib)) (let* (... ... ... ... ...) (unless cmd ...) (unless ... ...) (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 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 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

  reply	other threads:[~2009-11-20 12:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-19 16:26 Bug: i in agenda complains mark is not active now [6.33trans (release_6.33c.26.ga839)] Bernt Hansen
2009-11-20  5:52 ` Carsten Dominik
2009-11-20 12:11   ` Bernt Hansen
2009-11-20 12:14     ` Bernt Hansen [this message]
2009-11-20 12:56       ` Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lji1qtoc.fsf@gollum.intra.norang.ca \
    --to=bernt@norang.ca \
    --cc=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).