* how to debug Archive view in custom agenda
@ 2014-04-11 16:07 Ken Mankoff
2014-04-11 16:26 ` Nick Dokos
0 siblings, 1 reply; 7+ messages in thread
From: Ken Mankoff @ 2014-04-11 16:07 UTC (permalink / raw)
To: emacs-orgmode
when I try to view the Archive (v A) in my custom agenda view, I get an
error:
Rebuilding agenda buffer...
org-refresh-properties: Wrong type argument: integer-or-marker-p, nil
When I view Archive in the timeline for a single Org file (C-c a L v A)
it works just fine.
How do I debug the above message to determine what might be the cause of
the error?
Thanks,
-k.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: how to debug Archive view in custom agenda
2014-04-11 16:07 how to debug Archive view in custom agenda Ken Mankoff
@ 2014-04-11 16:26 ` Nick Dokos
2014-04-11 16:46 ` Ken Mankoff
0 siblings, 1 reply; 7+ messages in thread
From: Nick Dokos @ 2014-04-11 16:26 UTC (permalink / raw)
To: emacs-orgmode
Ken Mankoff <mankoff@gmail.com> writes:
> when I try to view the Archive (v A) in my custom agenda view, I get an
> error:
>
> Rebuilding agenda buffer...
> org-refresh-properties: Wrong type argument: integer-or-marker-p, nil
>
> When I view Archive in the timeline for a single Org file (C-c a L v A)
> it works just fine.
>
> How do I debug the above message to determine what might be the cause of
> the error?
>
(setq debug-on-error t)
try the v A again and send in the backtrace.
I think I saw a note on the ML that described this problem but I cannot
find it now: anybody?
Nick
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: how to debug Archive view in custom agenda
2014-04-11 16:26 ` Nick Dokos
@ 2014-04-11 16:46 ` Ken Mankoff
2014-04-11 17:04 ` Nick Dokos
0 siblings, 1 reply; 7+ messages in thread
From: Ken Mankoff @ 2014-04-11 16:46 UTC (permalink / raw)
To: Nick Dokos; +Cc: emacs-orgmode
On 2014-04-11 at 18:26, Nick Dokos wrote:
> Ken Mankoff <mankoff@gmail.com> writes:
>
>> when I try to view the Archive (v A) in my custom agenda view, I get an
>> error:
>>
>> Rebuilding agenda buffer...
>> org-refresh-properties: Wrong type argument: integer-or-marker-p, nil
>>
>> When I view Archive in the timeline for a single Org file (C-c a L v A)
>> it works just fine.
>>
>> How do I debug the above message to determine what might be the cause of
>> the error?
>>
>
> (setq debug-on-error t)
>
> try the v A again and send in the backtrace.
>
I can send the backtrace if you want, but I figure it out. I had an "
:Effort: :15" in an archive file which was causing the problem. Not sure
why. Perhaps it needed to be 00:15? Anyway, I just removed it and it
works again.
Thank you,
-k.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: how to debug Archive view in custom agenda
2014-04-11 16:46 ` Ken Mankoff
@ 2014-04-11 17:04 ` Nick Dokos
2014-04-11 17:47 ` Ken Mankoff
0 siblings, 1 reply; 7+ messages in thread
From: Nick Dokos @ 2014-04-11 17:04 UTC (permalink / raw)
To: emacs-orgmode
Ken Mankoff <mankoff@gmail.com> writes:
> On 2014-04-11 at 18:26, Nick Dokos wrote:
>> Ken Mankoff <mankoff@gmail.com> writes:
>>
>>> when I try to view the Archive (v A) in my custom agenda view, I get an
>>> error:
>>>
>>> Rebuilding agenda buffer...
>>> org-refresh-properties: Wrong type argument: integer-or-marker-p, nil
>>>
>>> When I view Archive in the timeline for a single Org file (C-c a L v A)
>>> it works just fine.
>>>
>>> How do I debug the above message to determine what might be the cause of
>>> the error?
>>>
>>
>> (setq debug-on-error t)
>>
>> try the v A again and send in the backtrace.
>>
>
> I can send the backtrace if you want, but I figure it out. I had an "
> :Effort: :15" in an archive file which was causing the problem. Not sure
> why. Perhaps it needed to be 00:15? Anyway, I just removed it and it
> works again.
>
Did you figure it out with the help of the backtrace?
Send it anyway: it can't hurt and it might help somebody.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: how to debug Archive view in custom agenda
2014-04-11 17:04 ` Nick Dokos
@ 2014-04-11 17:47 ` Ken Mankoff
2014-04-11 17:49 ` Ken Mankoff
0 siblings, 1 reply; 7+ messages in thread
From: Ken Mankoff @ 2014-04-11 17:47 UTC (permalink / raw)
To: Nick Dokos; +Cc: emacs-orgmode
On 2014-04-11 at 19:04, Nick Dokos wrote:
> Did you figure it out with the help of the backtrace?
Yes. Pasted below. But when I send it, mu4e warns than NUL characters
exist. I've replaced them with one of the options provided, the "."
character.
> Send it anyway: it can't hurt and it might help somebody.
Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
put-text-property(28799 nil org-effort ":15")
org-refresh-properties("Effort" org-effort)
byte-code("\306\b!\203\f.\bq\210\202.\0\307\b!\210\310\b!q\210~\210\311 \210`.eb\210\312.\313\314\315\312#\203,.\316 \210)\317\v>\2046.\320 \210\321\v>\204A.\322\f\323\"\210\324\v>\204L.\322\325\326\"\210\327.\x0e%\".\327.&.'\".&\327.(.)\".(\327.*.+\".*\327.,.-..#./\330./!.0\331.0!*.,.1\203\220.\332\327.2.3\"!.2\333 .4\312\211.5.6\312.7\315\211.8.9\315.:\334\216\212\335ed.;#\210.<\203\324.eb\210\336.=\315\312#\203\324.\337\312!\203\270.\340\341 \342\312!.>#\210\202\270.eb\210\343.?.@\".A\336.A\315\312#\203\365.\340\344\224\342\312!.B#\210\202\337.. b\207" [file pos case-fold-search org-agenda-ignore-drawer-properties org-effort-property org-todo-keywords-for-agenda bufferp org-check-agenda-file org-get-agenda-file-buffer org-set-regexps-and-options-for-tags t search-forward "#+setupfile" nil org-set-regexps-and-options category org-refresh-category-properties effort org-refresh-properties org-effort appt "APPT_WARNTIME" org-appt-warntime append copy-sequence delete-dups org-uniquify-alist buffer-modified-p ((byte-code "\b\204\b.\301\302!\210\302\207" [modified restore-buffer-modified-p nil] 2)) remove-text-properties re-search-forward org-at-heading-p add-text-properties point-at-bol org-end-of-subtree format 0 org-todo-keywords-1 org-done-keywords-for-agenda org-done-keywords org-todo-keyword-alist-for-agenda org-todo-key-alist org-drawers-for-agenda org-drawers org-tag-alist-for-agenda org-tag-alist org-tag-persistent-alist list res org-group-tags ...] 5)
org-agenda-prepare-buffers( ...list_of_files... )
org-agenda-prepare("My Custom Agenda")
(let nil (org-agenda-prepare name))
eval((let nil (org-agenda-prepare name)))
org-let(nil (org-agenda-prepare name))
org-agenda-run-series("My Custom Agenda" (((tags-todo "+DEADLINE<=\"<+3d>\"" ((org-agenda-overriding-header "Deadline <= 3 Days"))) (tags-todo "+SCHEDULED<\"<tomorrow>\"" ((org-agenda-overriding-header "Scheduled Today"))) (todo "INPROGRESS" ((org-agenda-overriding-header "In Progress"))) (todo "WAITING|VERIFY" ((org-agenda-overriding-header "Waiting or Verify"))) (agenda "" ((org-agenda-overriding-header "Scheduled") (org-deadline-warning-days 0))) (todo "SOMEDAY" ((org-agenda-overriding-header "Someday"))) (tags "REFILE" ((org-agenda-overriding-header "REFILE")))) nil ("org.txt" "org.html" "org.ics")))
eval((org-agenda-run-series "My Custom Agenda" (quote (((tags-todo "+DEADLINE<=\"<+3d>\"" ((org-agenda-overriding-header "Deadline <= 3 Days"))) (tags-todo "+SCHEDULED<\"<tomorrow>\"" ((org-agenda-overriding-header "Scheduled Today"))) (todo "INPROGRESS" ((org-agenda-overriding-header "In Progress"))) (todo "WAITING|VERIFY" ((org-agenda-overriding-header "Waiting or Verify"))) (agenda "" ((org-agenda-overriding-header "Scheduled") (org-deadline-warning-days 0))) (todo "SOMEDAY" ((org-agenda-overriding-header "Someday"))) (tags "REFILE" ((org-agenda-overriding-header "REFILE")))) nil ("org.txt" "org.html" "org.ics")))))
org-agenda-redo()
org-agenda-archives-mode(files)
org-agenda-view-mode-dispatch()
call-interactively(org-agenda-view-mode-dispatch nil nil)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: how to debug Archive view in custom agenda
2014-04-11 17:47 ` Ken Mankoff
@ 2014-04-11 17:49 ` Ken Mankoff
2014-04-13 15:53 ` Sacha Chua
0 siblings, 1 reply; 7+ messages in thread
From: Ken Mankoff @ 2014-04-11 17:49 UTC (permalink / raw)
To: Nick Dokos, emacs-orgmode
Hm.. That didn't work. Trying again...
On 2014-04-11 at 19:47, Ken Mankoff wrote:
> On 2014-04-11 at 19:04, Nick Dokos wrote:
>> Did you figure it out with the help of the backtrace?
>
> Yes. Pasted below. But when I send it, mu4e warns than NUL characters
> exist. I've replaced them with one of the options provided, the "."
> character.
>
>
>> Send it anyway: it can't hurt and it might help somebody.
>
> Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
> put-text-property(28799 nil org-effort ":15")
> org-refresh-properties("Effort" org-effort)
> byte-code("\306\b!\203\f.\bq\210\202.
Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
put-text-property(28799 nil org-effort ":15")
org-refresh-properties("Effort" org-effort)
byte-code("\306\b!\203\f\bq\210\202\0\307\b!\210\310\b!q\210~\210\311 \210`eb\210\312\313\314\315\312#\203,\316 \210)\317\v>\2046\320 \210\321\v>\204A\322\f\323\"\210\324\v>\204L\322\325\326\"\210\327\x0e%\"\327&'\"&\327()\"(\327*+\"*\327,-.#/\330/!0\3310!*,1\203\220\332\32723\"!2\333 4\312\21156\3127\315\21189\315:\334\216\212\335ed;#\210<\203\324eb\210\336=\315\312#\203\324\337\312!\203\270\340\341 \342\312!>#\210\202\270eb\210\343?@\"A\336A\315\312#\203\365\340\344\224\342\312!B#\210\202\337. b\207" [file pos case-fold-search org-agenda-ignore-drawer-properties org-effort-property org-todo-keywords-for-agenda bufferp org-check-agenda-file org-get-agenda-file-buffer org-set-regexps-and-options-for-tags t search-forward "#+setupfile" nil org-set-regexps-and-options category org-refresh-category-properties effort org-refresh-properties org-effort appt "APPT_WARNTIME" org-appt-warntime append copy-sequence delete-dups org-uniquify-alist buffer-modified-p ((byte-code "\b\204\b\301\302!\210\302\207" [modified restore-buffer-modified-p nil] 2)) remove-text-properties re-search-forward org-at-heading-p add-text-properties point-at-bol org-end-of-subtree format 0 org-todo-keywords-1 org-done-keywords-for-agenda org-done-keywords org-todo-keyword-alist-for-agenda org-todo-key-alist org-drawers-for-agenda org-drawers org-tag-alist-for-agenda org-tag-alist org-tag-persistent-alist list res org-group-tags ...] 5)
org-agenda-prepare-buffers( ...list_of_files... )
org-agenda-prepare("My Custom Agenda")
(let nil (org-agenda-prepare name))
eval((let nil (org-agenda-prepare name)))
org-let(nil (org-agenda-prepare name))
org-agenda-run-series("My Custom Agenda" (((tags-todo "+DEADLINE<=\"<+3d>\"" ((org-agenda-overriding-header "Deadline <= 3 Days"))) (tags-todo "+SCHEDULED<\"<tomorrow>\"" ((org-agenda-overriding-header "Scheduled Today"))) (todo "INPROGRESS" ((org-agenda-overriding-header "In Progress"))) (todo "WAITING|VERIFY" ((org-agenda-overriding-header "Waiting or Verify"))) (agenda "" ((org-agenda-overriding-header "Scheduled") (org-deadline-warning-days 0))) (todo "SOMEDAY" ((org-agenda-overriding-header "Someday"))) (tags "REFILE" ((org-agenda-overriding-header "REFILE")))) nil ("org.txt" "org.html" "org.ics")))
eval((org-agenda-run-series "My Custom Agenda" (quote (((tags-todo "+DEADLINE<=\"<+3d>\"" ((org-agenda-overriding-header "Deadline <= 3 Days"))) (tags-todo "+SCHEDULED<\"<tomorrow>\"" ((org-agenda-overriding-header "Scheduled Today"))) (todo "INPROGRESS" ((org-agenda-overriding-header "In Progress"))) (todo "WAITING|VERIFY" ((org-agenda-overriding-header "Waiting or Verify"))) (agenda "" ((org-agenda-overriding-header "Scheduled") (org-deadline-warning-days 0))) (todo "SOMEDAY" ((org-agenda-overriding-header "Someday"))) (tags "REFILE" ((org-agenda-overriding-header "REFILE")))) nil ("org.txt" "org.html" "org.ics")))))
org-agenda-redo()
org-agenda-archives-mode(files)
org-agenda-view-mode-dispatch()
call-interactively(org-agenda-view-mode-dispatch nil nil)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: how to debug Archive view in custom agenda
2014-04-11 17:49 ` Ken Mankoff
@ 2014-04-13 15:53 ` Sacha Chua
0 siblings, 0 replies; 7+ messages in thread
From: Sacha Chua @ 2014-04-13 15:53 UTC (permalink / raw)
To: emacs-orgmode
Ken Mankoff <mankoff@gmail.com> writes:
Hello, Ken!
>> Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
>> put-text-property(28799 nil org-effort ":15")
>> org-refresh-properties("Effort" org-effort)
>> byte-code("\306\b!\203\f.\bq\210\202.
I think Bastien has just committed a patch fixing this in the maint branch.
Hope that helps! =)
Sacha
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-04-13 15:53 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-11 16:07 how to debug Archive view in custom agenda Ken Mankoff
2014-04-11 16:26 ` Nick Dokos
2014-04-11 16:46 ` Ken Mankoff
2014-04-11 17:04 ` Nick Dokos
2014-04-11 17:47 ` Ken Mankoff
2014-04-11 17:49 ` Ken Mankoff
2014-04-13 15:53 ` Sacha Chua
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).