I have bellowing config in my Emacs to show heading outline path in header-line.
#+begin_src emacs-lisp
(setq-mode-local org-mode
header-line-format
'(:eval (ignore-errors
(concat
" " (nerd-icons-faicon "nf-fa-heading" :face
'nerd-icons-red) " "
;; FIXME: user-error: "Before first headline at
position 30 in buffer discourse-graphs.org"
(org-display-outline-path nil t " 〉 " t)))))
#+end_src
I found the header-line Org heading outline path will disappeared sometimes.
Then I debug it show figure out why with `with-demoted-errors`:
#+begin_src emacs-lisp
(setq-mode-local org-mode
header-line-format
'(:eval (with-demoted-errors
"Error: display Org mode heading outline path
error: %S"
(concat
;; " " (nerd-icons-icon-for-mode 'org-mode) " "
" " (nerd-icons-faicon "nf-fa-heading" :face
'nerd-icons-red) " "
;; FIXME: user-error: "Before first headline at
position 30 in buffer discourse-graphs.org"
(ignore-errors (org-display-outline-path nil t " 〉
" t))))))
#+end_src
I hope org-mode can fix this error.
--
[ 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
signature.asc
Description: PGP signature
