Re: Patch: bug in template expansion in org-fill-template

2022-04-30 Thread Ihor Radchenko
Andrew Arensburger writes: > There appears to be a bug in `org-fill-template' (in lisp/org-macs.el): > keys to be expanded are sorted by increasing length, so that "noweb" is > processed before "noweb-ref". As a result, if a template includes > "%noweb-ref", `org-fill-template' will expand it

Patch: bug in template expansion in org-fill-template

2022-04-06 Thread Andrew Arensburger
There appears to be a bug in `org-fill-template' (in lisp/org-macs.el): keys to be expanded are sorted by increasing length, so that "noweb" is processed before "noweb-ref". As a result, if a template includes "%noweb-ref", `org-fill-template' will expand it as "%{noweb}-ref" rather than