Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Splicing in overlays breaks for literate-calc-mode #35

Open
sulami opened this issue Jan 3, 2021 · 0 comments
Open

Splicing in overlays breaks for literate-calc-mode #35

sulami opened this issue Jan 3, 2021 · 0 comments

Comments

@sulami
Copy link

sulami commented Jan 3, 2021

This was noticed by a user (sulami/literate-calc-mode.el#17).

I have not done any extensive research, but I can provide a traceback & a minimal example.

#+begin_src literate-calc
Pi = 3.14159
#+end_src
Debugger entered--Lisp error: (args-out-of-range "Pi " 0 12)
  substring("Pi " 0 12)
  htmlize-add-before-after-strings(1 4 "Pi ")
  htmlize-get-text-with-display(1 4)
  htmlize-buffer-substring-no-invisible(1 4)
  htmlize-extract-text(1 4 nil)
  htmlize-buffer-1()
  htmlize-region(1 13)
  org-html-htmlize-region-for-paste(1 13)
  org-html-fontify-code("Pi = 3.14159" "literate-calc")
  org-html-do-format-code("Pi = 3.14159" "literate-calc" nil t nil nil)
  [ more frames omitted ]

This is where the traceback leads me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant