alphapapa / alphapapa/org-super-agenda

`:discard` breaks org-agenda-redo when processing the time grid

オープン
#215 コメント 2 件 リアクション 0 件 担当者 1 名 @alphapapa が担当を希望しています GitHub で見る
bug help wanted
主要言語
Emacs Lisp
スター
1.5k
フォーク
107
PR マージ指標
30日以内にマージされた PR はありません

説明

I have the following configuration at the top level of my configs (I removed irrelevant agenda commands, so beware of unbalanced parens).

```lisp
(setq org-agenda-custom-commands
'(
;; ...
("x" "Overview/span1"
((agenda ""
((org-agenda-start-day "0d")
(org-agenda-span 1)
(org-super-agenda-groups
`((:discard (:deadline (after ,(org-read-date nil nil "+14d"))))
))))))
;; ...
))

```

This configuration works on the first load; however, when I refresh the page, I get the following stack trace (from `emacs --debug-init`) which crashes my agenda view.

```
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
org-super-agenda--group-deadline((... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (after "2022-02-17"))
org-super-agenda--group-dispatch-discard((... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (:deadline ...))
org-super-agenda--group-dispatch((... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (:discard ...))
org-super-agenda--group-items((... ... ... ... ... ... ... ... ... ... ... ... ... ... ...))
org-super-agenda--filter-finalize-entries(#(" northeastern..." 0 28 ... 28 29 ... 29 47 ... 48 50 ... ...))
org-agenda-finalize-entries((... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) agenda)
org-agenda-list(nil)
funcall-interactively(org-agenda-list nil)
call-interactively(org-agenda-list)
#f(compiled-function () #)()
funcall(#f(compiled-function () #))
(let ((org-agenda-start-day '"0d") (org-agenda-span '1) (org-super-agenda-groups '((:discard (:deadline (after "2022-02-17")))))) (funcall '#f(compiled-function () #)))
org-agenda-run-series("Overview/span1" (((agenda "" ((org-agenda-start-day "0d") (org-agenda-span 1) (org-super-agenda-groups `(...)))))))
org-agenda-redo(nil)
funcall-interactively(org-agenda-redo nil)
command-execute(org-agenda-redo)
```

I am currently using org-super-agenda at the current head of master: fb5e2ef.

I understand that relative date support is in the hands of the user (re: #59) -- as an elisp novice, I could easily be doing something wrong. Any help with this bug or my configuration would be appreciated!

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。