[no subject]

2023-12-11 Thread Kenny Ballou
Forgive for the noise, I just double checked the patch and noticed the `current-prefix-arg' was still being used. Fixed.

[PATCH] lisp/org-capture.el: use `org-store-link' for %K values

2023-12-11 Thread Kenny Ballou
* org-capture.el (org-capture-fill-template): fill %K values using link value from `org-store-link', which respects `org-id-link-to-use-id'. * doc/ORG-NEWS: (Template variable expansion %K) Document new behavior. Reported-by: Nathaniel W Griswold Signed-off-by: Kenny Ballou Link:

[PATCH] lisp/org-capture.el: use `org-store-link' for %K values

2023-12-11 Thread Kenny Ballou
* org-capture.el (org-capture-fill-template): fill %K values using link value from `org-store-link', which respects `org-id-link-to-use-id'. * doc/ORG-NEWS: (Template variable expansion %K) Document new behavior. Reported-by: Nathaniel W Griswold Signed-off-by: Kenny Ballou Link:

Re: [FR] Allow flattened imenu index

2023-12-11 Thread João Távora
On Mon, Dec 11, 2023 at 11:54 PM Dmitry Gutov wrote: > > On 12/12/2023 01:48, João Távora wrote: > > On Mon, Dec 11, 2023 at 11:41 PM Dmitry Gutov wrote: > >> On 12/12/2023 01:35, João Távora wrote: > >>> Or maybe say what the ruby-mode imenu backend > >>> does? > >> Juri just posted a long

Re: [FR] Allow flattened imenu index

2023-12-11 Thread João Távora
On Mon, Dec 11, 2023 at 11:41 PM Dmitry Gutov wrote: > > On 12/12/2023 01:35, João Távora wrote: > > Or maybe say what the ruby-mode imenu backend > > does? > > Juri just posted a long example of what ruby-mode does (and ruby-ts-mode > too) in his last message in this thread. OK, and doesn't it

Re: [FR] Allow flattened imenu index

2023-12-11 Thread João Távora
On Mon, Dec 11, 2023 at 11:23 PM Dmitry Gutov wrote: > >> But if the LS will produce distinct strings, good. > > All imenu backends, at least all the ones I've seen, produce > > trees, not strings. > > There are exceptions, like the previously mentioned one. What is the imenu backend that

Re: [FR] Allow flattened imenu index

2023-12-11 Thread João Távora
On Mon, Dec 11, 2023 at 7:24 PM Dmitry Gutov wrote: > > It's no invention, it's docstring syntax for reference to a method. In Ruby right? > But if the LS will produce distinct strings, good. All imenu backends, at least all the ones I've seen, produce trees, not strings. If you collect all

Re: [FR] Allow flattened imenu index

2023-12-11 Thread João Távora
On Mon, Dec 11, 2023 at 7:27 PM Ihor Radchenko wrote: > > Indeed, it's unfortunate that imenu--make-index-alist and imenu--index-alist > > are named as internal. > > Should they be renamed to `imenu-make-index-alist' and `imenu-index-alist' > then? Maybe, but it's much more urgent IMO to

Re: [PATCH] lisp/org-capture.el: use link ID's for %K

2023-12-11 Thread Kenny Ballou
On 2023-12-11 19:16 GMT, Ihor Radchenko wrote: > >> +*** Capture template expansion now supports ID links >> + >> +The capture template expansion element `%K' creates links using >> +`org-store-link', which respects the values of >> +`org-id-link-to-use-id'. > > Here, we simply use Org markup.

Re: [BUG] Hard-coded and inconsistent todo states in org-agenda.el [9.7-pre (release_9.6.12-934-g4d72f3 @ /home/rst/Devel/org-mode/lisp/)]

2023-12-11 Thread Raffael Stocker
Ihor Radchenko writes: > May you try the attached patch? I tried it with a selection of different states (final and not) and it worked in every case. Thanks! Regards, Raffael

Re: [FR] Allow flattened imenu index

2023-12-11 Thread Ihor Radchenko
Juri Linkov writes: >> It shouldn't be needed here at all, but in case anyone's thinking >> about it, please avoid messing with imenu's internal representation of >> hierarchies as that structure is relied upon by many extensions (not just >> mine, but several others). Even certain things

Re: [FR] Allow flattened imenu index

2023-12-11 Thread João Távora
On Mon, Dec 11, 2023 at 5:43 PM Dmitry Gutov wrote: > > is still usable even without special characters like "#". > > Until a class contains both an instance and a class method with the same > name, I suppose. If that happens, the LS will have to provide to distinct paths to these two distinct

Re: [FR] Allow flattened imenu index

2023-12-11 Thread João Távora
On Mon, Dec 11, 2023 at 5:21 PM Juri Linkov wrote: > > By the way, this seems to be exactly what the breadcrumb-jump command > > in my breadcrumb.el package does. Goes reasonably well with a flex/fuzzy > > completion style. > > It would be great to have some form of breadcrumb-jump in imenu.el

Re: [FR] Allow flattened imenu index

2023-12-11 Thread Juri Linkov
>> menu1 >> sub-item1 >> sub-item2 >> >> could be flattened to >> >> menu1 -> sub-item1 >> menu1 -> sub-item2 > > By the way, this seems to be exactly what the breadcrumb-jump command > in my breadcrumb.el package does. Goes reasonably well with a flex/fuzzy > completion style. It

[PATCH] lisp/org-capture.el: use link ID's for %K

2023-12-11 Thread Kenny Ballou
* org-capture.el (org-capture-fill-template): fill %K values using link value from `org-store-link', which respects `org-id-link-to-use-id'. * doc/ORG-NEWS: (Template variable expansion %K) Document new behavior. Reported-by: Nathaniel W Griswold Signed-off-by: Kenny Ballou Link:

Re: [PATCH] lisp/org-capture.el: use link ID's for %K

2023-12-11 Thread Kenny Ballou
On 2023-12-10 12:19 GMT, Ihor Radchenko wrote: > Kenny Ballou writes: > >> >> I ended up using `org-store-link-plist'. For some reason that I don't >> understand, the `save-excursion' -> `org-store-link' was not updating >> `org-stored-links'. > > I can see it from the code now. Basically,

Re: [ANN] lisp/ob-tangle-sync.el

2023-12-11 Thread Mehmet Tekman
Hey, Ihor Radchenko writes: > Sorry for the late reply. Just got around to process your email. All good, I know how it is, especially the grind towards the end of the year. >> + (setq action "export" >> +file (read-char raw-tangle >

Re: TODO item: is there a way to alert me about it?

2023-12-11 Thread Ihor Radchenko
Renato Pontefice writes: > Hi, > I’m wondering if I can have an alert for a TODO that I’ve to execute (i.e.) > some minutes later. > > Is there a way? See https://orgmode.org/manual/Weekly_002fdaily-agenda.html (Appointment reminders). There are also various third-party packages. -- Ihor

Re: [BUG] Hard-coded and inconsistent todo states in org-agenda.el [9.7-pre (release_9.6.12-934-g4d72f3 @ /home/rst/Devel/org-mode/lisp/)]

2023-12-11 Thread Ihor Radchenko
Raffael Stocker writes: > Hi, > > org-agenda.el contains the following hard-coded states in > ‘org-agenda-to-appt’: > > (when (and ok tod (not (string-match "\\`DONE\\|CANCELLED" evt)))...) Thanks for reporting! May you try the attached patch? >From 6ffa23a01acad2d5cd37bafa11a57cf7a0c13cec

Re: [PATCH] [WORG] Maintenance: on the frequency of bugfix releases

2023-12-11 Thread Bastien Guerry
Ihor Radchenko writes: > I think that upper limit for bugfix release frequency is slightly in > odds with the previous > > Org development is the work of volunteers, and we cannot promise to > follow a release schedule. You're right -- I've rephrase it like so: Security fixes trigger

Re: oeg-add-note and double backslash ?

2023-12-11 Thread Ihor Radchenko
David Masterson writes: >> No. See `org-skip-over-state-notes'. > > Hmm. The docstring on that should discuss what it's looking for to say > "this is the end of the state notes". Does a plain note (org-add-note) > count as a state note? Yes, it does. I tried to improve a docstring a little on

Re: [ANN] lisp/ob-tangle-sync.el

2023-12-11 Thread Ihor Radchenko
Sorry for the late reply. Just got around to process your email. Mehmet Tekman writes: > I made some small edits a few months ago, to reform the header arguments > so that tangle actions would be encoded in the `:tangle-params' header > and would largely leave the `:tangle' header alone… but

Re: [FR] Allow flattened imenu index

2023-12-11 Thread João Távora
On Sat, Dec 9, 2023 at 5:39 PM Juri Linkov wrote: > menu1 > sub-item1 > sub-item2 > > could be flattened to > > menu1 -> sub-item1 > menu1 -> sub-item2 By the way, this seems to be exactly what the breadcrumb-jump command in my breadcrumb.el package does. Goes reasonably well

Re: [PATCH] [WORG] Maintenance: on the frequency of bugfix releases

2023-12-11 Thread Ihor Radchenko
Bastien Guerry writes: > Security fixes trigger an immediate bugfix release. Other important > fixes should be accumulated for more than one week and for less than > two weeks before a bugfix release. > > It's important to allow immediate release for security fixes only, and > to let the

Re: Consider removing newlines from org-insert-link help message

2023-12-11 Thread Ihor Radchenko
Rudolf Adamkovič writes: > Ihor Radchenko writes: > >> You can just use `org-format-prompt'. > > TIL! Updated. > > Thank you! > > P.S. I have also updated the commit message. Thanks! Applied, onto main, with minor amendments. I have removed redundant `cons' call in the `apply' and added