Hi!
Got a very strange error today, hopefully captured with (setq
debug-on-error t).
Very strange because:
- It was consistently reproducible with my personal org file (closing
emacs, reopening, same bug).
- It was **not** reproducible with an exact copy of it: cp julien.org
foo.org, opening foo.org, no bug.
- I tried bisecting it: with the first half of my file, no bug, with the
last half of my file, no bug.
- I tried emacs -q: no bug, so I tried bisecting my ~/.emacs.d/init.el.
- At the end of the bisection of my ~/.emacs.d/init.el the bug is no
longer here.
- I can now open my file with no errors, yet I have changed nothing.
I'm sure I'm back to the initial conditions as:
- I'm versioning my .emacs.d/init.el file and git tells me there's no
changes here.
- I'm versioning my org file, and git tells me there's no changes here
neither.
So maybe there's a cache somewhere that I'm not aware of, that was
invalidated during my tests?
Anyway, here's the debugger output, maybe someone can understand
something out of it, but as I'm no longer able to reproduce it, it's
probably of low value:
Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
org-element-item-parser(962363 ((961733 0 "- " nil nil nil 961796) (961796 0 "- " nil nil nil 961859) (961859 0 "- " nil nil nil 961922) (961922 0
"- " nil nil nil 961985) (961985 0 "- " nil nil nil 962048) (962048 0 "- " nil nil nil 962111) (962111 0 "- " nil nil nil 962174) (962174 0
"- " nil nil nil 962237) (962237 0 "- " nil nil nil 962300) (962300 0 "- " nil nil nil 962363)) t)
#<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_38>(962363 element item ((961733 0 "- " nil nil nil 961796) (961796 0 "- " nil nil nil 961859)
(961859 0 "- " nil nil nil 961922) (961922 0 "- " nil nil nil 961985) (961985 0 "- " nil nil nil 962048) (962048 0 "- " nil nil nil 962111)
(962111 0 "- " nil nil nil 962174) (962174 0 "- " nil nil nil 962237) (962237 0 "- " nil nil nil 962300) (962300 0 "- " nil nil nil 962363)))
org-element--parse-to(961742)
org-element-at-point()
org-fold--hide-drawers(1 1015102)
org-cycle-hide-drawers(all)
org-cycle-set-startup-visibility()
org-mode()
set-auto-mode-0(org-mode nil)
set-auto-mode--apply-alist((("\\.at\\'" . autotest-mode) ("\\.envrc\\'" . envrc-file-mode) ("\\.gp\\'" . gnuplot-mode) ("\\.gnuplot\\'" . gnuplot-mode) ("/git-rebase-todo\\'" . git-rebase-mode) ("\\.\\(?:md\\|markdown\\|mkd\\|mdown\\|mkdn\\|mdwn\\)\\'" . markdown-mode) ("\\.po[tx]?\\'\\|\\.po\\." . po-mode) ("\\.rs\\'" . rust-mode) ("\\.\\(e?ya?\\|ra\\)ml\\'" . yaml-mode) ("\\.gpg\\(~\\|\\.~[0-9]+~\\)?\\'" nil epa-file) ("\\.elc\\'" . elisp-byte-code-mode)
("\\.zst\\'" nil jka-compr) ("\\.dz\\'" nil jka-compr) ("\\.xz\\'" nil jka-compr) ("\\.lzma\\'" nil jka-compr) ("\\.lz\\'" nil jka-compr) ("\\.g?z\\'" nil jka-compr) ("\\.bz2\\'" nil jka-compr) ("\\.Z\\'" nil jka-compr) ("\\.vr[hi]?\\'" . vera-mode) ("\\(?:\\.\\(?:rbw?\\|ru\\|rake\\|thor\\|axlsx\\|jbuilder\\|rabl\\|gemspec\\|podspec\\)\\|/\\(?:Gem\\|Rake\\|Cap\\|Thor\\|Puppet\\|Berks\\|Brew\\|Fast\\|Vagrant\\|Guard\\|Pod\\)file\\)\\'" . ruby-mode) ("\\.re?st\\'" .
rst-mode) ("/\\(?:Pipfile\\|\\.?flake8\\)\\'" . conf-mode) ("\\.py[iw]?\\'" . python-mode) ("\\.m\\'" . octave-maybe-mode) ("\\.less\\'" . less-css-mode) ("\\.editorconfig\\'" . editorconfig-conf-mode) ("\\.scss\\'" . scss-mode) ("\\.cs\\'" . csharp-mode) ("\\.awk\\'" . awk-mode) ("\\.\\(u?lpc\\|pike\\|pmod\\(\\.in\\)?\\)\\'" . pike-mode) ("\\.idl\\'" . idl-mode) ("\\.java\\'" . java-mode) ("\\.m\\'" . objc-mode) ("\\.ii\\'" . c++-mode)
("\\.i\\'" . c-mode) ("\\.lex\\'" . c-mode) ("\\.y\\(acc\\)?\\'" . c-mode) ("\\.h\\'" . c-or-c++-mode) ("\\.c\\'" . c-mode) ("\\.\\(CC?\\|HH?\\)\\'" . c++-mode) ("\\.[ch]\\(pp\\|xx\\|\\+\\+\\)\\'" . c++-mode) ("\\.\\(cc\\|hh\\)\\'" . c++-mode) ("\\.\\(bat\\|cmd\\)\\'" . bat-mode) ("\\.[sx]?html?\\(\\.[a-zA-Z_]+\\)?\\'" . mhtml-mode) ("\\.svgz?\\'" . image-mode) ("\\.svgz?\\'" . xml-mode) ("\\.x[bp]m\\'" . image-mode) ("\\.x[bp]m\\'" .
c-mode) ("\\.p[bpgn]m\\'" . image-mode) ...) nil nil)
set-auto-mode()
normal-mode(t)
after-find-file(nil t)
find-file-noselect-1(#<buffer julien.org> "~/Org/julien.org" nil nil
"~/Org/julien.org" (53488767 65024))
find-file-noselect("~/Org/julien.org" nil nil t)
find-file("~/Org/julien.org" t)
funcall-interactively(find-file "~/Org/julien.org" t)
command-execute(find-file)
--
[Julien Palard](https://mdk.fr)