alphapapa / alphapapa/org-ql

'(cond ((ts-active))) doesn't work

未關閉
#507 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Emacs Lisp
星號
1.6k
分支
120
PR 合併指標
30 天內沒有已合併 PR

描述

### OS/platform

Ubuntu 25.10

### Emacs version and provenance

GNU Emacs 30.1
apt-get install

### Emacs command

emacs --daemon

### Org version and provenance

Org mode version 9.7.39

### org-ql package version and provenance

4b8330a master origin/master replaced Merge pull request #491 from alhassy/master

### Actions taken

executed
(org-ql-select (org-agenda-files) '(cond ((ts-active))))

### Observed results

got error
(org-ql-select (org-agenda-files) '(cond ((ts)))) - no error
(org-ql-select (org-agenda-files) '(cond ((ts-inactive)))) - same error

### Expected results

same as (ts)

### Backtrace

```elisp
Debugger entered--Lisp error: (void-function ts-active)
ts-active()
#f(compiled-function () #)()
org-ql--select(:query (cond ((ts-active))) :preamble nil :preamble-case-fold t :predicate #f(compiled-function () #) :action #f(compiled-function (&rest _ignore) #) :narrow nil)
org-ql--select-cached(:query (cond ((ts-active))) :preamble nil :preamble-case-fold t :predicate #f(compiled-function () #) :action #f(compiled-function (&rest _ignore) #) :narrow nil)
(save-current-buffer (set-buffer it) (if (derived-mode-p 'org-mode) nil (display-warning 'org-ql-select (format "Not an Org buffer: %s" (buffer-name)) :error)) (org-ql--select-cached :query query :preamble preamble :preamble-case-fold preamble-case-fold :predicate predicate :action action :narrow narrow))
#f(lambda (it) [(action #f(compiled-function (&rest _ignore) #)) (predicate #f(compiled-function () #)) (preamble-case-fold t) (preamble nil) (query (cond ((ts-active)))) (narrow nil)] (ignore it) (save-current-buffer (set-buffer it) (if (derived-mode-p 'org-mode) nil (display-warning 'org-ql-select (format "Not an Org buffer: %s" (buffer-name)) :error)) (org-ql--select-cached :query query :preamble preamble :preamble-case-fold preamble-case-fold :predicate predicate :action action :narrow narrow)))(#)
...
```

### Etc.

_No response_

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。