On 2025-07-02, at 21:53, pinmacs <pinm...@cas.cat> wrote: > On 2025-07-02 21:34, mb...@mbork.pl wrote: > > On 2025-07-02, at 20:40, pinmacs <pinm...@cas.cat> 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? > > > For me, org-special-ctrl-a/e does that job, but I prefer in my case to > use it reversed (setq org-special-ctrl-a/e 'reversed) > > the way you would need it is with t > > > I don't think it's a good idea to use those. I don't need to move the > point to begin/end of the title interactively, but rather obtain their > positions in the buffer in Elisp code. > > OK, I thought you wanted to do something interactive. > > It might be useful to know what you to do with the title
As I said, I need the /positions/. More specifically, I need to put an overlay over the title. Now that I think of it, I could put the overlay over the whole contents, too - but I prefer to have it only over the title. Best, -- Marcin Borkowski https://mbork.pl https://crimsonelevendelightpetrichor.net/