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

Debugger entered--Lisp error: (void-function org-element-type) #452

Open
felix125 opened this issue Jan 4, 2025 · 0 comments
Open

Debugger entered--Lisp error: (void-function org-element-type) #452

felix125 opened this issue Jan 4, 2025 · 0 comments

Comments

@felix125
Copy link

felix125 commented Jan 4, 2025

Describe the bug

When I open Emacs and run calendar, I get the following error message. After a lot of troubleshooting, I found that when I run calendar, the system automatically loads my journal into the buffer, but it is in fundamental-mode. However, if I change org-journal-file-type from ‘monthly’ to ‘daily’, the problem disappears. I don’t understand why this is happening. Please help.

Error Message:

Debugger entered--Lisp error: (void-function org-element-type) org-element-type(nil) org-fold-core-get-folding-spec(nil nil) org-at-heading-p(t) org-back-to-heading() org-journal--file->calendar-dates("/Users/felix/Dropbox/notes/Orgzly/journal/202501.o...") org-journal--dates-puthash("/Users/felix/Dropbox/notes/Orgzly/journal/202501.o...") org-journal--list-dates() org-journal-mark-entries() run-hooks(calendar-today-visible-hook) #f(compiled-function () #<bytecode -0x1ddfdbae0125bd7d>)() calendar-generate-window(1 2025) calendar-basic-setup(nil) calendar(nil) funcall-interactively(calendar nil) call-interactively(calendar record nil) command-execute(calendar record) execute-extended-command(nil "calendar" nil) funcall-interactively(execute-extended-command nil "calendar" nil) call-interactively(execute-extended-command nil nil) command-execute(execute-extended-command)

Screenshots
Screen Shot 2025-01-04 at 10 42 59 AM

Desktop (please complete the following information):

  • OS: macOS
  • Emacs 29.4

Your Emacs Configuration

`
(use-package org
:init
(setq org-directory "~/Dropbox/org") ;設置 org 文件的默認目錄
(load (expand-file-name "capture-templates.el" salt-template-dir))
:config
; enable tempo
(require 'org-tempo)

(setq org-startup-indented t) ;自動縮進
(setq org-startup-folded t) ;默認折疊所有標題
(setq org-hide-leading-stars t) ;隱藏多餘的標題星號
;; org-agenda-files
(with-eval-after-load 'org
(add-to-list 'org-agenda-files "/Dropbox/notes/Orgzly")
(add-to-list 'org-agenda-files "
/Dropbox/notes/Orgzly/journal"))

;TODO 關鍵字設置
(setq org-todo-keywords
'((sequence "TODO(t!)" "IN-PROGRESS(i!)" "|" "DONE(d!)" "CANCELLED(c@/!)")
(sequence "HOLD(h@/!)" "REVIEW(v@)" "|" "CANCELLED(c@/!)")
(sequence "NOTE(n!)" "IDEA(y!)" "|" "USED(u)")))

(setq org-refile-targets '((nil :maxlevel . 2) ; 允許 refile 到當前檔案
("~/Dropbox/notes/Orgzly/notes.org" :maxlevel . 2)))

(setq org-capture-templates capture-templates)

)

(use-package org-journal
:after org
:config
(setq org-journal-dir "~/Dropbox/notes/Orgzly/journal"
org-journal-date-format "%A, %d %B %Y"
org-journal-file-format "%Y%m.org"
org-journal-time-format "%H%M"
org-journal-file-type 'monthly)
)
`

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

No branches or pull requests

1 participant