Jean Louis <bugs@gnu.support> writes: > In my opinion the function: (org-heading-components) shall not error, > no matter if it is called outside of the heading, it could still > return nil values if it is outside of the header. > > Debugger entered--Lisp error: (wrong-type-argument stringp nil) > looking-at(nil) > org-heading-components() > eval((org-heading-components) nil) > elisp--eval-last-sexp(nil) > eval-last-sexp(nil) > funcall-interactively(eval-last-sexp nil) > call-interactively(eval-last-sexp nil nil) > command-execute(eval-last-sexp)
The error looks like you attempted to run `org-heading-components' in non-Org buffer. `org-heading-components' behaviour in non-Org buffers is undefined. -- Ihor Radchenko // yantar92, 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>