Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Org Agenda, Symbol's function definition is void #431

Open
tomasdurham opened this issue Jan 6, 2023 · 5 comments
Open

Org Agenda, Symbol's function definition is void #431

tomasdurham opened this issue Jan 6, 2023 · 5 comments
Labels

Comments

@tomasdurham
Copy link

Ciao friends,

I was adding Dashboard to my emacs configuration and get this error:

dashboard-filter-agenda-by-time: Symbol’s function definition is void: org-in-archived-heading-p

My Goal:
Be able to display my Tasks from Org Agenda in Dashboard.

my config:

(use-package dashboard
  :init
  (setq dashboard-set-heading-icons t)
  (setq dashboard-set-file-icons t)
  (setq dashboard-center-content t) 
  (setq dashboard-items '((recents . 3)
                          (agenda . 3)
                          (bookmarks . 3)
                          (registers . 3)))
  :config
  (dashboard-setup-startup-hook)
  (dashboard-modify-heading-icons '((recents . "file-text")
			                (bookmarks . "book"))))

(setq initial-buffer-choice (lambda () (get-buffer "*dashboard*")))

When I remove the line "(agenda . 3)", then the Dashboard works.
When I add "(setq dashboard-filter-agenda-entry 'dashboard-no-filter-agenda)" then it works also, but I see then all the tasks.

From README I understand, that I just need to add "agenda" to the dashboard-items and it should work.
What is this for error? Where could be the issue? I couldn't find any answers here in the issue tab nor in the web.

thanks for the answers!

@ricardoricho
Copy link
Contributor

Hi @tomasdurham this is a weird issue, according to the error message:

dashboard-filter-agenda-by-time: Symbol’s function definition is void: org-in-archived-heading-p

Emacs couldn't find org-in-archived-heading-p that is an org function and is used by dashboard-filter-agenda-by-time.
It's a weird issue because other org functions, like org-map-entries, are used, so assume org is loading.

Which version of org are you using?
How are you installing org?

@tomasdurham
Copy link
Author

@ricardoricho Thanks for your answer!

I installed emacs and can work with org right away. My org mode version is 9.3.

@ricardoricho
Copy link
Contributor

Ok, I think the function was introduced in version 9.4. Could you update your org version?

@tomasdurham
Copy link
Author

Hello Richard, thanks for the Info and sorry for my late respond. I tried to install a newer version of org-mode via Emacs packaging system. But then I failed, because of a mixed version. I saw that I can use the latest from git. orgmode-manual.

At that moment, I don't want to try that out. I have fear of breaking my emacs/org-mode and I don't have enough knowledge for resetting it back.

I will wait for an update from emacs package system. Or would you like to guide me through this mission?

@ricardoricho
Copy link
Contributor

Hi @tomasdurham, Sure I could help you with the mission, updating org is not always easy.
You can follow the instructions in the manual and checkout the release you want, If something gets broke you can always delete the config and repository and things go back to normal.

$ cd ~/src/
$ git clone https://git.savannah.gnu.org/git/emacs/org-mode.git
$ cd org-mode/

That would clone the repository in your machine, in to the ~/src directory. Then you can check out the latest "stable" version with:

git checkout release_9.6

Then you can run $ make autoloads to build the package.

As the manual says, you have to add (add-to-list 'load-path "~/src/org-mode/lisp") to your init.el file, try to add it at the top of the file. I guess that the "mix version" problem is because some package is loading the "default" org version before the new installed version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants