Hi Christopher,

Thanks for sharing this report. Is the bug intermittent, or can you put
together a reproducible example? Also, when you add the
"with-demoted-errors", do you get an error message you could share?

Thanks,

Derek

On Sun, Jul 26, 2026 at 10:38 PM Christopher M. Miles <[email protected]>
wrote:

> 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
>


-- 
+---------------------------------------------------------------+
| Derek Chen-Becker                                             |
| GPG Key available at https://keybase.io/dchenbecker and       |
| https://pgp.mit.edu/pks/lookup?search=derek%40chen-becker.org |
| Fngrprnt: EB8A 6480 F0A3 C8EB C1E7  7F42 AFC5 AFEE 96E4 6ACC  |
+---------------------------------------------------------------+

Reply via email to