emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] Latest org-fold-core API (overlays compatible code) caused error in package "consult-org-heading"
@ 2022-08-13 23:27 Christopher M. Miles
  0 siblings, 0 replies; 3+ messages in thread
From: Christopher M. Miles @ 2022-08-13 23:27 UTC (permalink / raw)
  To: Org Mode


[-- Attachment #1.1: Type: text/plain, Size: 518 bytes --]


I have this option settings:

#+begin_src emacs-lisp
(setq org-element-use-cache nil)
(setq org-fold-core-style 'overlays)
(setq org-fold-catch-invisible-edits nil)

(use-package consult
  :ensure t
  :bind (([remap org-goto] . consult-org-heading)) ; [C-c C-j]
  :config (require 'consult-org))
#+end_src

And here is the testing Org document:

#+begin_src org
,#+TITLE: test

,* headline main

,** Screenshots

,** folded?

,** new headline

#+end_src

Here I attached the backtrace after I toggle-debug-on-error:


[-- Attachment #1.2: org-fold-core-backtrace.elisp --]
[-- Type: application/emacs-lisp, Size: 7909 bytes --]

[-- Attachment #1.3: Type: text/plain, Size: 267 bytes --]


-- 

[ stardiviner ]
I try to make every word tell the meaning that I want to express without misunderstanding.

Blog: https://stardiviner.github.io/
IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner
GPG: F09F650D7D674819892591401B5DF1C95AE89AC3

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [BUG] Latest org-fold-core API (overlays compatible code) caused error in package "consult-org-heading"
       [not found] <62f83518.c80a0220.99244.de27SMTPIN_ADDED_BROKEN@mx.google.com>
@ 2022-08-13 23:47 ` Christopher M. Miles
  0 siblings, 0 replies; 3+ messages in thread
From: Christopher M. Miles @ 2022-08-13 23:47 UTC (permalink / raw)
  Cc: Christopher M. Miles, emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1089 bytes --]


"Christopher M. Miles" <numbchild@gmail.com> writes:

> [[PGP Signed Part:Undecided]]
>
> I have this option settings:
>
> #+begin_src emacs-lisp
> (setq org-element-use-cache nil)
> (setq org-fold-core-style 'overlays)
> (setq org-fold-catch-invisible-edits nil)
>
> (use-package consult
>   :ensure t
>   :bind (([remap org-goto] . consult-org-heading)) ; [C-c C-j]
>   :config (require 'consult-org))
> #+end_src
>
>
> And here is the testing Org document:
>
> #+begin_src org
> ,#+TITLE: test
>
> ,* headline main
>
> ,** Screenshots
>
> ,** folded?
>
> ,** new headline
>
> #+end_src
>
> Here I attached the backtrace after I toggle-debug-on-error:
>
> [6. application/emacs-lisp; org-fold-core-backtrace.elisp]...

I forget to mention, currently I'm on commit "6ad65f333293".

-- 

[ stardiviner ]
I try to make every word tell the meaning that I want to express without misunderstanding.

Blog: https://stardiviner.github.io/
IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner
GPG: F09F650D7D674819892591401B5DF1C95AE89AC3

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [BUG] Latest org-fold-core API (overlays compatible code) caused error in package "consult-org-heading"
       [not found] <62f834ed.050a0220.afd79.0022SMTPIN_ADDED_BROKEN@mx.google.com>
@ 2022-08-14  0:43 ` Ihor Radchenko
  0 siblings, 0 replies; 3+ messages in thread
From: Ihor Radchenko @ 2022-08-14  0:43 UTC (permalink / raw)
  To: numbchild; +Cc: Org Mode

"Christopher M. Miles" <numbchild@gmail.com> writes:

> Here I attached the backtrace after I toggle-debug-on-error:
>
> Debugger entered--Lisp error: (wrong-type-argument listp #<overlay from 31 to 77 in org-fold-core-test.org>)
>   car(#<overlay from 31 to 77 in org-fold-core-test.org>)
>   (let ((--mpom (car region))) (save-excursion (if (markerp --mpom) (progn (set-buffer (marker-buffer --mpom)))) (save-excursion (save-restriction (widen) (goto-char (or --mpom (point))) (while (< (point) (cdr region)) (funcall org-fold-core-isearch-open-function (car region)) (goto-char (org-fold-core-next-visibility-change (point) (cdr region) 'ignore-hidden)))))))
>   org-fold-core--isearch-show(#<overlay from 31 to 77 in org-fold-core-test.org>)
>   consult--invisible-open-permanently()

Thanks for reporting!
Fixed on main via 6cd7c6fb1.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=6cd7c6fb1cf6363f1057086760bed9875cdd97c7


-- 
Ihor Radchenko,
Org mode contributor,
Learn more about Org mode at https://orgmode.org/.
Support Org development at https://liberapay.com/org-mode,
or support my work at https://liberapay.com/yantar92


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-08-14  0:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-13 23:27 [BUG] Latest org-fold-core API (overlays compatible code) caused error in package "consult-org-heading" Christopher M. Miles
     [not found] <62f83518.c80a0220.99244.de27SMTPIN_ADDED_BROKEN@mx.google.com>
2022-08-13 23:47 ` Christopher M. Miles
     [not found] <62f834ed.050a0220.afd79.0022SMTPIN_ADDED_BROKEN@mx.google.com>
2022-08-14  0:43 ` Ihor Radchenko

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).