* (void-variable timestamp-up) when building an agenda buffer
@ 2021-05-11 7:38 alan.schmitt
2021-05-11 7:53 ` Alan Schmitt
0 siblings, 1 reply; 5+ messages in thread
From: alan.schmitt @ 2021-05-11 7:38 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 7417 bytes --]
Hello,
After a recent update, I no longer can build an agenda buffer. I put the
backtrace that I get at the end of this message. On the top of the trace
there is a call to org-entries-lessp, which looks like this:
(defun org-entries-lessp (a b)
"Predicate for sorting agenda entries."
;; The following variables will be used when the form is evaluated.
;; So even though the compiler complains, keep them.
(let ((ss org-agenda-sorting-strategy-selected))
(org-dlet
((timestamp-up (and (org-em 'timestamp-up 'timestamp-down ss)
(org-cmp-ts a b "")))
Did something change recently around this code?
Thanks,
Alan
Debugger entered--Lisp error: (void-variable timestamp-up)
org-entries-lessp(#(" Mobile: TODO 2..." 0 14 (type "tagsmatch" priority 1000 ts-date nil todo-state "TODO" org-hd-marker #<marker (moves after insertion) at 635 in mobile.org> org-marker #<marker (moves after insertion) at 635 in mobile.org> help-echo "mouse-2 or RET jump ..." org-complex-heading-regexp "^\\(\\*+\\)\\(?: +\\(CANC..." org-todo-regexp "\\(CANCELLED\\|DONE\\|H..." org-not-done-regexp "\\(HOLD\\|NEXT\\|TODO\\|..." ...) 14 18 (org-heading t fontified t face org-todo org-category "Mobile" tags ... org-priority-highest 65 org-priority-lowest 67 time-of-day nil duration nil breadcrumbs nil ...) 18 19 (type "tagsmatch" priority 1000 ts-date nil todo-state "TODO" org-hd-marker #<marker (moves after insertion) at 635 in mobile.org> org-marker #<marker (moves after insertion) at 635 in mobile.org> help-echo "mouse-2 or RET jump ..." org-complex-heading-regexp "^\\(\\*+\\)\\(?: +\\(CANC..." org-todo-regexp "\\(CANCELLED\\|DONE\\|H..." org-not-done-regexp "\\(HOLD\\|NEXT\\|TODO\\|..." ...) 19 30 (type "tagsmatch" priority 1000 ts-date nil todo-state "TODO" org-hd-marker #<marker (moves after insertion) at 635 in mobile.org> org-marker #<marker (moves after insertion) at 635 in mobile.org> help-echo "mouse-2 or RET jump ..." org-complex-heading-regexp "^\\(\\*+\\)\\(?: +\\(CANC..." org-todo-regexp "\\(CANCELLED\\|DONE\\|H..." org-not-done-regexp "\\(HOLD\\|NEXT\\|TODO\\|..." ...) 30 55 (type "tagsmatch" priority 1000 ts-date nil todo-state "TODO" org-hd-marker #<marker (moves after insertion) at 635 in mobile.org> org-marker #<marker (moves after insertion) at 635 in mobile.org> help-echo "mouse-2 or RET jump ..." org-complex-heading-regexp "^\\(\\*+\\)\\(?: +\\(CANC..." org-todo-regexp "\\(CANCELLED\\|DONE\\|H..." org-not-done-regexp "\\(HOLD\\|NEXT\\|TODO\\|..." ...) 55 61 (type "tagsmatch" priority 1000 ts-date nil todo-state "TODO" org-hd-marker #<marker (moves after insertion) at 635 in mobile.org> org-marker #<marker (moves after insertion) at 635 in mobile.org> help-echo "mouse-2 or RET jump ..." org-complex-heading-regexp "^\\(\\*+\\)\\(?: +\\(CANC..." org-todo-regexp "\\(CANCELLED\\|DONE\\|H..." org-not-done-regexp "\\(HOLD\\|NEXT\\|TODO\\|..." ...) ...) #(" Mobile: Au rez..." 0 14 (type "tagsmatch" priority 1000 ts-date nil todo-state nil org-hd-marker #<marker (moves after insertion) at 481 in mobile.org> org-marker #<marker (moves after insertion) at 481 in mobile.org> help-echo "mouse-2 or RET jump ..." org-complex-heading-regexp "^\\(\\*+\\)\\(?: +\\(CANC..." org-todo-regexp "\\(CANCELLED\\|DONE\\|H..." org-not-done-regexp "\\(HOLD\\|NEXT\\|TODO\\|..." ...) 14 165 (type "tagsmatch" priority 1000 ts-date nil todo-state nil org-hd-marker #<marker (moves after insertion) at 481 in mobile.org> org-marker #<marker (moves after insertion) at 481 in mobile.org> help-echo "mouse-2 or RET jump ..." org-complex-heading-regexp "^\\(\\*+\\)\\(?: +\\(CANC..." org-todo-regexp "\\(CANCELLED\\|DONE\\|H..." org-not-done-regexp "\\(HOLD\\|NEXT\\|TODO\\|..." ...) 165 167 (type "tagsmatch" priority 1000 ts-date nil todo-state nil org-hd-marker #<marker (moves after insertion) at 481 in mobile.org> org-marker #<marker (moves after insertion) at 481 in mobile.org> help-echo "mouse-2 or RET jump ..." org-complex-heading-regexp "^\\(\\*+\\)\\(?: +\\(CANC..." org-todo-regexp "\\(CANCELLED\\|DONE\\|H..." org-not-done-regexp "\\(HOLD\\|NEXT\\|TODO\\|..." ...) 167 173 (type "tagsmatch" priority 1000 ts-date nil todo-state nil org-hd-marker #<marker (moves after insertion) at 481 in mobile.org> org-marker #<marker (moves after insertion) at 481 in mobile.org> help-echo "mouse-2 or RET jump ..." org-complex-heading-regexp "^\\(\\*+\\)\\(?: +\\(CANC..." org-todo-regexp "\\(CANCELLED\\|DONE\\|H..." org-not-done-regexp "\\(HOLD\\|NEXT\\|TODO\\|..." ...) 173 175 (type "tagsmatch" priority 1000 ts-date nil todo-state nil org-hd-marker #<marker (moves after insertion) at 481 in mobile.org> org-marker #<marker (moves after insertion) at 481 in mobile.org> help-echo "mouse-2 or RET jump ..." org-complex-heading-regexp "^\\(\\*+\\)\\(?: +\\(CANC..." org-todo-regexp "\\(CANCELLED\\|DONE\\|H..." org-not-done-regexp "\\(HOLD\\|NEXT\\|TODO\\|..." ...)))
sort((... ... ...) org-entries-lessp)
org-agenda-finalize-entries((... ... ... ... ... ...) tags)
org-tags-view(nil "REFILE")
#f(compiled-function () #<bytecode 0x1589f0aa081d>)()
funcall(#f(compiled-function () #<bytecode 0x1589f0aa081d>))
(let ((org-agenda-overriding-header '"Tasks to Refile")) (funcall '#f(compiled-function () #<bytecode 0x1589f0aa081d>)))
eval((let ((org-agenda-overriding-header '"Tasks to Refile")) (funcall '#f(compiled-function () #<bytecode 0x1589f0aa081d>))))
org-agenda-run-series("daily review" (((tags "REFILE" ((org-agenda-overriding-header "Tasks to Refile"))) (tags-todo "-CANCELLED-@maybe/!-HOLD" ((org-agenda-overriding-header "Stuck Projects") (org-agenda-skip-function 'bh/skip-non-stuck-projects))) (agenda "" ((org-agenda-skip-scheduled-if-deadline-is-shown t) (org-agenda-skip-deadline-prewarning-if-scheduled 'pre-scheduled) (org-agenda-span 'day) (org-agenda-overriding-header "Today"))) (agenda "" ((org-agenda-skip-scheduled-if-deadline-is-shown t) (org-agenda-skip-deadline-prewarning-if-scheduled 'pre-scheduled) (org-agenda-span 6) (org-agenda-start-day "+1d") (org-agenda-overriding-header "Upcoming events"))) (tags-todo "-CANCELLED-@maybe-HOLD/!-HOLD-WAITING" ((org-agenda-overriding-header "Next Tasks") (org-agenda-skip-function 'bh/skip-project-habits-single-blocked-scheduled) (org-agenda-sorting-strategy '(todo-state-down effort-up category-keep)))) (tags-todo "-CANCELLED-@maybe-HOLD/!-HOLD-WAITING-REFILE" ((org-agenda-overriding-header "Tasks") (org-agenda-skip-function 'bh/skip-project-tasks-maybe) (org-agenda-todo-ignore-scheduled 'all) (org-agenda-sorting-strategy '(category-keep)))) (tags-todo "-CANCELLED-@maybe/!-HOLD" ((org-agenda-overriding-header "Projects") (org-agenda-skip-function 'as/skip-non-projects) (org-agenda-sorting-strategy '(category-keep)))) (tags-todo "-CANCELLED-@maybe/!+HOLD" ((org-agenda-overriding-header "Projects and Tasks On Hold") (org-agenda-sorting-strategy '(category-keep)))) (tags-todo "-CANCELLED-@maybe/!+WAITING" ((org-agenda-overriding-header "Waiting and Postponed Tasks") (org-agenda-skip-function 'bh/skip-stuck-projects) (org-agenda-todo-ignore-scheduled 'future))) (tags "-REFILE-@maybe/" ((org-agenda-overriding-header "Tasks to Archive") (org-agenda-skip-function 'bh/skip-non-archivable-tasks)))) nil))
org-agenda(nil)
funcall-interactively(org-agenda nil)
call-interactively(org-agenda nil nil)
command-execute(org-agenda)
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 528 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: (void-variable timestamp-up) when building an agenda buffer
2021-05-11 7:38 (void-variable timestamp-up) when building an agenda buffer alan.schmitt
@ 2021-05-11 7:53 ` Alan Schmitt
2021-05-11 9:06 ` Tim Cross
2021-05-11 9:28 ` Alan Schmitt
0 siblings, 2 replies; 5+ messages in thread
From: Alan Schmitt @ 2021-05-11 7:53 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 279 bytes --]
Hello,
It seems the problem is deeper than that: I cannot use any code that
uses =org-dlet=… I’m on emacs 27.2.
I did a quick test with no configuration, so the problem seems to be in
my config, but I’m cursious if this rings a bell for anyone.
Thanks,
Alan
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 528 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: (void-variable timestamp-up) when building an agenda buffer
2021-05-11 7:53 ` Alan Schmitt
@ 2021-05-11 9:06 ` Tim Cross
2021-05-11 10:21 ` Alan Schmitt
2021-05-11 9:28 ` Alan Schmitt
1 sibling, 1 reply; 5+ messages in thread
From: Tim Cross @ 2021-05-11 9:06 UTC (permalink / raw)
To: emacs-orgmode
Alan Schmitt <alan.schmitt@polytechnique.org> writes:
> [[PGP Signed Part:Undecided]]
> Hello,
>
> It seems the problem is deeper than that: I cannot use any code that
> uses =org-dlet=… I’m on emacs 27.2.
>
> I did a quick test with no configuration, so the problem seems to be in
> my config, but I’m cursious if this rings a bell for anyone.
>
> Thanks,
>
The type of error you appear to be seeing is common with a broken
install. In your config, are you installing org from orgmode.org or
melpa rather than just using the version bundled with Emacs 27.2? If so,
it is likely that you have a 'mixed' install. This can happen if org is
loaded when you try to install or update the org version. A common
problem is not realising that something in your init file is causing org
to be loaded during startup - then when you try to do a package update,
you get a broken build.
If your not installing org from a package, then it is likely something
else in your init file and unfortunately, you may have to do the painful
bisecting and debugging to find the cause.
--
Tim Cross
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: (void-variable timestamp-up) when building an agenda buffer
2021-05-11 7:53 ` Alan Schmitt
2021-05-11 9:06 ` Tim Cross
@ 2021-05-11 9:28 ` Alan Schmitt
1 sibling, 0 replies; 5+ messages in thread
From: Alan Schmitt @ 2021-05-11 9:28 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 624 bytes --]
Hello again,
On 2021-05-11 09:53, Alan Schmitt <alan.schmitt@polytechnique.org> writes:
> It seems the problem is deeper than that: I cannot use any code that
> uses =org-dlet=… I’m on emacs 27.2.
>
> I did a quick test with no configuration, so the problem seems to be in
> my config, but I’m cursious if this rings a bell for anyone.
It seems that my vanilla emacs uses org 9.4.4, which was before the
switch to lexical binding in 9.5, so I guess this is the issue. As it’s
a pretty big one, I suspect it comes from my usage of doom (other doom
users have confirmed the problem).
Best,
Alan
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 528 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: (void-variable timestamp-up) when building an agenda buffer
2021-05-11 9:06 ` Tim Cross
@ 2021-05-11 10:21 ` Alan Schmitt
0 siblings, 0 replies; 5+ messages in thread
From: Alan Schmitt @ 2021-05-11 10:21 UTC (permalink / raw)
To: Tim Cross, emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 702 bytes --]
On 2021-05-11 19:06, Tim Cross <theophilusx@gmail.com> writes:
> The type of error you appear to be seeing is common with a broken
> install. In your config, are you installing org from orgmode.org or
> melpa rather than just using the version bundled with Emacs 27.2? If so,
> it is likely that you have a 'mixed' install. This can happen if org is
> loaded when you try to install or update the org version. A common
> problem is not realising that something in your init file is causing org
> to be loaded during startup - then when you try to do a package update,
> you get a broken build.
Thank you for the suggestion. I reinstalled org-mode and it seems to
have fixed the problem.
Best,
Alan
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 528 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-05-11 10:39 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-11 7:38 (void-variable timestamp-up) when building an agenda buffer alan.schmitt
2021-05-11 7:53 ` Alan Schmitt
2021-05-11 9:06 ` Tim Cross
2021-05-11 10:21 ` Alan Schmitt
2021-05-11 9:28 ` Alan Schmitt
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).