Re: [PATCH] lisp/org-compat.el: Allow using imenu to visit non-leaf headlines

2024-06-17 Thread Ihor Radchenko
Morgan Smith writes: >>> With the default `imenu-flatten' value of nil, it is still impossible >>> to visit non-leaf headlines and no change is perceived. >> >> But no regressions, right? Especially in older Emacs versions with >> `imenu-flatten' not yet available. >> > > No regressions that I ca

Re: imenu vs. refile goto (was Re: [PATCH] lisp/org-compat.el: Allow using imenu to visit non-leaf headlines)

2024-06-15 Thread Samuel Wales
if i am not mistaken, imenu only works for a single buffer, while org refile goto can go to any file configured for it. at least, i /think/ imenu cannot be configured to, for example, find a shell function definition that is not in the current file. for example, you might be in a script called my

Re: [PATCH] lisp/org-compat.el: Allow using imenu to visit non-leaf headlines

2024-06-14 Thread Morgan Smith
Ihor Radchenko writes: > Morgan Smith writes: > >> Quirks: >> >> With the default `imenu-flatten' value of nil, it is still impossible >> to visit non-leaf headlines and no change is perceived. > > But no regressions, right? Especially in older Emacs versions with > `imenu-flatten' not yet avail

Re: [PATCH] lisp/org-compat.el: Allow using imenu to visit non-leaf headlines

2024-06-14 Thread Ihor Radchenko
Morgan Smith writes: > With a file like this: > > * headline 1 > ** headline 2 > > We currently produce an imenu tree that looks like this: > > '(("headline 1" ("headline 2" . marker-2))) > > imenu has no clue where "headline 1" is located and thus the user > can't navigate to it. With this patc

Re: imenu vs. refile goto (was Re: [PATCH] lisp/org-compat.el: Allow using imenu to visit non-leaf headlines)

2024-06-14 Thread Morgan Smith
Samuel Wales writes: > how does imenu compare against completion systems like ido combined with org > refile set to goto? when would you use imenu vs. other completion? For my specific use case, all I want is a simple minibuffer completion that offers me all the headings in the current buffer a

imenu vs. refile goto (was Re: [PATCH] lisp/org-compat.el: Allow using imenu to visit non-leaf headlines)

2024-06-13 Thread Samuel Wales
how does imenu compare against completion systems like ido combined with org refile set to goto? when would you use imenu vs. other completion? On Wednesday, June 12, 2024, Morgan Smith wrote: > With a file like this: > > * headline 1 > ** headline 2 > > We currently produce an imenu tree that

[PATCH] lisp/org-compat.el: Allow using imenu to visit non-leaf headlines

2024-06-12 Thread Morgan Smith
With a file like this: * headline 1 ** headline 2 We currently produce an imenu tree that looks like this: '(("headline 1" ("headline 2" . marker-2))) imenu has no clue where "headline 1" is located and thus the user can't navigate to it. With this patch installed imenu knows where non-leaf he