Re: I need to get the positions where the title starts and ends

2025-07-13 Thread mbork
On 2025-07-13, at 08:20, Ihor Radchenko wrote: > mb...@mbork.pl writes: > >>> Try `org-complex-heading-regexp'. >> >> Thanks, this would probably work - I could match it and then get the >> positions. Is it "better" than my approach? I mean, are there any >> obvious pros and cons of both? > > `

Re: I need to get the positions where the title starts and ends

2025-07-13 Thread Ihor Radchenko
mb...@mbork.pl writes: >> Try `org-complex-heading-regexp'. > > Thanks, this would probably work - I could match it and then get the > positions. Is it "better" than my approach? I mean, are there any > obvious pros and cons of both? `org-complex-heading-regexp' is more granular - you can exclu

Re: I need to get the positions where the title starts and ends

2025-07-13 Thread mbork
On 2025-07-12, at 18:59, Ihor Radchenko wrote: > mb...@mbork.pl writes: > >> with the point on a headline, I'd like to be able to get the positions >> of the start and end of the current headline's title. How to do that? >> Here's what I have, is there a better way? >> >> (This includes tags; I'

Re: I need to get the positions where the title starts and ends

2025-07-12 Thread Ihor Radchenko
mb...@mbork.pl writes: > with the point on a headline, I'd like to be able to get the positions > of the start and end of the current headline's title. How to do that? > Here's what I have, is there a better way? > > (This includes tags; I'm fine with that, though excluding them might be > better

Re: I need to get the positions where the title starts and ends

2025-07-06 Thread mbork
On 2025-07-02, at 21:53, pinmacs wrote: > On 2025-07-02 21:34, mb...@mbork.pl wrote: > > On 2025-07-02, at 20:40, pinmacs wrote: > > On 2025-07-02 05:28, mb...@mbork.pl wrote: > > Hi all, > > with the point on a headline, I'd like to be able to get the positions > of the start and end of the

Re: I need to get the positions where the title starts and ends

2025-07-02 Thread pinmacs
On 2025-07-02 21:34, mb...@mbork.pl wrote: On 2025-07-02, at 20:40, pinmacs wrote: On 2025-07-02 05:28,mb...@mbork.pl wrote: Hi all, with the point on a headline, I'd like to be able to get the positions of the start and end of the current headline's title. How to do that? Here's what I have

Re: I need to get the positions where the title starts and ends

2025-07-02 Thread mbork
On 2025-07-02, at 20:40, pinmacs wrote: > On 2025-07-02 05:28, mb...@mbork.pl wrote: >> Hi all, >> >> with the point on a headline, I'd like to be able to get the positions >> of the start and end of the current headline's title. How to do that? >> Here's what I have, is there a better way? > >

Re: I need to get the positions where the title starts and ends

2025-07-02 Thread pinmacs
On 2025-07-02 05:28, mb...@mbork.pl wrote: Hi all, with the point on a headline, I'd like to be able to get the positions of the start and end of the current headline's title. How to do that? Here's what I have, is there a better way? For me, org-special-ctrl-a/e does that job, but I prefer i

I need to get the positions where the title starts and ends

2025-07-01 Thread mbork
Hi all, with the point on a headline, I'd like to be able to get the positions of the start and end of the current headline's title. How to do that? Here's what I have, is there a better way? (This includes tags; I'm fine with that, though excluding them might be better.) --8<---cut