alphapapa / alphapapa/org-ql

Error when trying to bookmark an Org QL view

Aperta
#407 1 commento 0 reazioni 1 assegnatario Rivendicata da @alphapapa Vedi su GitHub
bug priority:B
Lingua principale
Emacs Lisp
Stelle
1.6k
Fork
120
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### OS/platform

Linux

### Emacs version and provenance

Emacs 29.1, distro packages

### Emacs command

emacs

### Org version and provenance

Org 9.7-pre, Org development branch.

### org-ql package version and provenance

0.9-pre, commit 9606aaf81230d1faf2c7f54925b45e527fa32bf0, straight.el recipe, straight.el

### Actions taken

1. Run `org-ql-search` and pick `org-agenda-files` in the completing-read menu with the prompt `"Buffers/Files: "`
2. Try to bookmark the view buffer that is generated with `C-x r m`, `bookmark-set`

### Observed results

The bookmark is not set, I get the error: `cl-etypecase failed: org-agenda-files, (string buffer list)`

### Expected results

The bookmark to be set.

### Backtrace

```elisp
Debugger entered--Lisp error: (error "cl-etypecase failed: org-agenda-files, (string buffer list)")
error("cl-etypecase failed: %s, %s" org-agenda-files (string buffer list))
org-ql-view-bookmark-make-record()
bookmark-make-record()
bookmark-set-internal("Set bookmark named" nil overwrite)
bookmark-set(nil nil)
funcall-interactively(bookmark-set nil nil)
command-execute(bookmark-set)
```

### Etc.

The error is connected to the value of the infix option "In buffers/files" in this transient:

![2024-02-08-131605_959x211_scrot](https://github.com/alphapapa/org-ql/assets/8607532/4c3d6e73-ebf1-4e79-b1c8-622e40489166)

If appears to be set to the symbol `org-agenda-files`. If I refresh it by pressing `i` again it is set to the value of this symbol instead:

![2024-02-08-131831_992x209_scrot](https://github.com/alphapapa/org-ql/assets/8607532/b6df347b-36b4-4100-9167-20c4f8c5c82d)

then it passes the `cl-etypecase` test in `org-ql-view-bookmark-make-record`(since it's a list) and I can bookmark it without errors.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.