Re: org-element: headline's :title is sometimes string, sometimes list

2023-08-23 Thread Hraban Luyat
Thank you Ihor. On 8/23/23 5:49 AM, Ihor Radchenko wrote: > Hraban Luyat writes: > >> I expect: "string" everywhere. >> >> I get: >> >> Headline title from map is of type: cons >> Headline title from context is of type: string >> Headline title from at-point is of type: string >

Re: org-element: headline's :title is sometimes string, sometimes list

2023-08-23 Thread Ihor Radchenko
Hraban Luyat writes: > I expect: "string" everywhere. > > I get: > > Headline title from map is of type: cons > Headline title from context is of type: string > Headline title from at-point is of type: string > > Question 1: Do you know what that `cons' structure is? Where is it >

org-element: headline's :title is sometimes string, sometimes list

2023-08-22 Thread Hraban Luyat
Hi all. I'll let the code speak: (with-temp-buffer (org-mode) (insert "* Hello") (cl-flet ((say-type (prefix hl) (message "Headline title from %s is of type: %s" prefix (type-of (org-element-prope