emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: William McCoy <wdm8588@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Fwd: errors when using org-agenda
Date: Sat, 23 Oct 2021 10:49:14 -0400	[thread overview]
Message-ID: <62a47025-04dc-86c6-f77c-90b7cd9e23ae@gmail.com> (raw)
In-Reply-To: <m25ytopjg9.fsf@blind-drunk.fritz.box>

Ok, great -- that fixed it!  I thought I had been careful to get rid of 
my old org from org elpa before I installed 9.5.  However, I hadn't 
considered that there was an older org still installed that had been 
packaged with my emacs 27.2 installation.

So thanks very much for your quick advice.  It's very nice to have that 
functionality back.


Bill


On 10/22/21 9:57 PM, Tim Cross wrote:
> William McCoy <wdm8588@gmail.com> writes:
>
>> I am modifying my previous message (that has not yet appeared on this list) with
>> some additional information regarding this issue:
>>
>>
>> I have been having some strange errors when using org-agenda.  The errors seem
>> to have begun about the time I upgraded to org 9.5 from the elpa repo a couple
>> of weeks ago.  When I activate org-agenda, I get the usual menu.  When I press
>> 'm' to search for a tag and then enter a known tag name, I get an empty *Org
>> Agenda* buffer and an error in the minibuffer:
>>
>>
>>
>> Symbol’s value as variable is void: timestamp-up
>>
>>
>> With debug-on-error set, I get the following backtrace:
>>
>>
>> Debugger entered--Lisp error: (void-variable timestamp-up)
>>    org-entries-lessp(#("  ubuntu:     Updated Pop_OS (Ubuntu) ..." 0 14 (type
>> "tagsmatch" priority 1000 ts-date nil todo-state$
>>    sort((... ... ... ... ... ... ... ... ... ... ... ... ... ... ...)
>> org-entries-lessp)
>>    org-agenda-finalize-entries((... ... ... ... ... ... ... ... ... ... ... ...
>> ... ... ...) tags)
>>    org-tags-view(nil)
>>    funcall-interactively(org-tags-view nil)
>>    call-interactively(org-tags-view)
>>    org-agenda(nil)
>>    funcall-interactively(org-agenda nil)
>>    call-interactively(org-agenda nil nil)
>>    command-execute(org-agenda)
>>
>> When I enter org-agenda and use 'a' for my agenda, I get the following error:
>>
>>
>> Invalid function: (date date)
>>
>>
>> And the backtrace is:
>>
>>
>> Debugger entered--Lisp error: (invalid-function (date date))
>>    (date date)()
>> org-agenda-get-day-entries("/home/wdmccoy/orgfiles/C/C-examples.org" (10 18
>> 2021) :deadline :scheduled :timestamp :sexp)
>>    apply(org-agenda-get-day-entries "/home/wdmccoy/orgfiles/C/C-examples.org" (10
>> 18 2021) (:deadline :scheduled :timestamp :s$
>>    org-agenda-list(nil)
>>    funcall-interactively(org-agenda-list nil)
>>    call-interactively(org-agenda-list)
>>    org-agenda(nil)
>>    funcall-interactively(org-agenda nil)
>>    call-interactively(org-agenda nil nil)
>>    command-execute(org-agenda)
>>
>>
>> Disregard the following comments between the dashed lines.  I just realized that
>> when I start emacs with the -Q switch, an older built-in version of org-mode
>> (9.4.4) is used.  So I do think this is related to changes in version 9.5.
>>
>> --------------------------------------------------------------------------
>> If I start  emacs with the -Q switch and then execute my org-agenda-files
>> setting command in the *scratch* buffer:
>>
>>
>> (setq org-agenda-files (directory-files-recursively "~/orgfiles/" "\\.org$"))
>>
>>
>> then org-agenda appears to work fine without errors.
>> --------------------------------------------------------------------------
>>
>>
>> I have made a minimal init.el file and trimmed virtually everything from my
>> emacs-custom.el file (file attached), but the error still occurs.  I just can't
>> figure out what's causing it.  Any ideas?
>>
>> Also I forgot to add:
>>
>> emacs-version: GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version
>> 3.24.20, cairo version 1.16.0) of 2021-06-04
>>
>> org-version: Org mode version 9.5 (9.5-g0a86ad @
>> /home/wdmccoy/.emacs.d/elpa/org-9.5/)
>>
>> OS:  Linux pop-os 5.13.0-7614-generic #14~1631647151~21.04~930e87c-Ubuntu SMP
>>
>>
>> Thanks, Bill
>>
>>
>>
>> [2. text/x-emacs-lisp; init.el]...
>>
>> [3. text/x-emacs-lisp; emacs-custom.el]...
> These types of errors are frequently caused by a 'mixed' installation of
> org versions. This will happen if you upgrade org when org is already
> loaded in the instance of emacs used to perform the upgrade.
>
> It is critically important when upgrading org that org is not already
> loaded. Highly recommend you remove the version of org you have
> installed, restart emacs (ensuring nothing in your init.el loads org -
> comment out if there is), install org 9.5, uncomment anything in your
> init.el you commented to ensure org was not loaded, restart emacs and
> see if the problem is resolved.
>
> Note that if your installing other org extensions, make sure these are
> not loaded as well as it is probable they will load org as well.
>


      parent reply	other threads:[~2021-10-23 14:49 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-22 20:35 errors when using org-agenda William McCoy
2021-10-23  0:46 ` Fwd: " William McCoy
2021-10-23  1:57   ` Tim Cross
2021-10-23 10:26     ` Greg Minshall
2021-10-23 11:34       ` Tim Cross
2021-10-23 18:07         ` Greg Minshall
2021-10-23 18:21           ` Tim Cross
2021-10-24  0:45             ` Thomas S. Dye
2021-10-24  5:05         ` Greg Minshall
2021-10-24  6:44           ` Tim Cross
2021-10-24 10:55             ` Greg Minshall
2021-10-24  5:12         ` [PATCH] " Ihor Radchenko
2021-10-24  6:59           ` Tim Cross
2021-10-24  8:16       ` Max Nikulin
2021-10-24  8:34         ` Ihor Radchenko
2021-10-27 16:46           ` Max Nikulin
2022-09-11  9:22             ` Ihor Radchenko
2021-10-23 14:49     ` William McCoy [this message]

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=62a47025-04dc-86c6-f77c-90b7cd9e23ae@gmail.com \
    --to=wdm8588@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).