简体   繁体   中英

`Wrong type argument when using `org-agenda`

I have been using org-agenda with the setup from here . For some reason, I get the following error when I try to generate the basic org-agenda ( Cc a ). The agenda just shows up blank with no entries. The message is below.

org-agenda-list: Wrong type argument: listp, #("----------------" 0 16 (org-heading t))

The configuration in my .spacemacs file is below. When I comment it out then things work fine, but I was hoping to get this to work.

;; Enable display of the time grid so we can see the marker for the current time
(setq org-agenda-time-grid (quote ((daily today remove-match)
                                   #("----------------" 0 16 (org-heading t))
                               (0900 1100 1300 1500 1700))))

Can anyone see the problem here? Sorry I am not much of an elisp programmer.

The spec of the variable org-agenda-time-grid has changed recently. If you are using a recent version of org, then your setting is incorrect. Try reading the documentation of the variable with Ch v org-agenda-time-grid RET . I don't know what that 0 16 (org-heading t) did in the old setting, but maybe you can try

(setq org-agenda-time-grid (quote 
                             ((daily today remove-match)
                              (0900 1100 1300 1500 1700)                                   
                              "......" "----------------"))))

as a first approximation and then tweak from there.

You should also try reading the etc/ORG-NEWS file which lists incompatible changes like the above for every release. When something breaks from one release to the next, the explanation can often be found there.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM