Re: etags regex for Lilypond & LY_DEFINE* tags

2022-05-09 Thread Jean Abou Samra
Le 10/05/2022 à 01:58, John Wheeler a écrit : On 5/9/22 17:43, Jean Abou Samra wrote: Le 10/05/2022 à 00:37, John Wheeler a écrit : The TAGS file structure is simple enough, and I agree having only one place to maintain name mangling logic is good. But, I am not following you on the

Re: etags regex for Lilypond & LY_DEFINE* tags

2022-05-09 Thread John Wheeler
On 5/9/22 17:43, Jean Abou Samra wrote: Le 10/05/2022 à 00:37, John Wheeler a écrit : The TAGS file structure is simple enough, and I agree having only one place to maintain name mangling logic is good. But, I am not following you on the reference to 'out/bin/lilypond -ddump-tags'.  Is

Re: etags regex for Lilypond & LY_DEFINE* tags

2022-05-09 Thread Jean Abou Samra
Le 10/05/2022 à 00:37, John Wheeler a écrit : The TAGS file structure is simple enough, and I agree having only one place to maintain name mangling logic is good. But, I am not following you on the reference to 'out/bin/lilypond -ddump-tags'.  Is -ddump-tags a command line option to the

Re: etags regex for Lilypond & LY_DEFINE* tags

2022-05-09 Thread David Kastrup
John Wheeler writes: > On 5/9/22 16:10, Jean Abou Samra wrote: >> >> Random idea: how about taking a difference approach and doing this >> in LY_DEFINE instead? You can do something along the lines >> of >> >> scm_set_object_property_x (the_resulting_scm_procedure, >>   

Re: etags regex for Lilypond & LY_DEFINE* tags

2022-05-09 Thread John Wheeler
On 5/9/22 16:10, Jean Abou Samra wrote: Random idea: how about taking a difference approach and doing this in LY_DEFINE instead? You can do something along the lines of scm_set_object_property_x (the_resulting_scm_procedure,    ly_symbol2scm ("c++-location"),    

Re: etags regex for Lilypond & LY_DEFINE* tags

2022-05-09 Thread Jean Abou Samra
Le 09/05/2022 à 22:56, John Wheeler a écrit : Indeed, the second regex would add a tag for the Scheme function name before Jean's change. Maybe it's worth considering reverting it? If my merge request is accepted there will be no need to revert it. Random idea: how about taking a difference

Re: etags regex for Lilypond & LY_DEFINE* tags

2022-05-09 Thread John Wheeler
Indeed, the second regex would add a tag for the Scheme function name before Jean's change. Maybe it's worth considering reverting it? If my merge request is accepted there will be no need to revert it. John

Re: etags regex for Lilypond & LY_DEFINE* tags

2022-05-09 Thread Jonas Hahnfeld via Discussions on LilyPond development
On Sun, 2022-05-08 at 22:10 -0500, John Wheeler wrote: > On 5/8/22 09:17, Jonas Hahnfeld wrote:  > > Let me give a (very biased) summary of this: There's apparently a > > related (and undocumented) 'make TAGS' that is broken for out-of- > > tree builds. Instead of fixing this, the proposal was to

Re: etags regex for Lilypond & LY_DEFINE* tags

2022-05-08 Thread John Wheeler
On 5/8/22 09:17, Jonas Hahnfeld wrote: On Sat, 2022-05-07 at 22:14 -0500, John Wheeler wrote:  On 5/7/22 06:05, David Kastrup wrote: David Kastrup writes: Jonas Hahnfeld via Discussions on LilyPond development writes: I've traditionally been opposed to adding more such scripts to the

Re: etags regex for Lilypond & LY_DEFINE* tags

2022-05-08 Thread Jonas Hahnfeld via Discussions on LilyPond development
On Sat, 2022-05-07 at 22:14 -0500, John Wheeler wrote: >  On 5/7/22 06:05, David Kastrup wrote:  > > David Kastrup writes:  > > > Jonas Hahnfeld via Discussions on LilyPond development > > > writes:  > > > > I've traditionally been opposed to adding more such scripts to > > > > the LilyPond

Re: etags regex for Lilypond & LY_DEFINE* tags

2022-05-07 Thread John Wheeler
On 5/7/22 06:05, David Kastrup wrote: David Kastrup writes: Jonas Hahnfeld via Discussions on LilyPond development writes: On Fri, 2022-05-06 at 20:42 -0500, John Wheeler wrote: Please forgive this second attempt to reply: Jean, On 4/28/22 16:14, Jean Abou Samra wrote: Is it a large

Re: etags regex for Lilypond & LY_DEFINE* tags

2022-05-07 Thread David Kastrup
David Kastrup writes: > Jonas Hahnfeld via Discussions on LilyPond development > writes: > >> On Fri, 2022-05-06 at 20:42 -0500, John Wheeler wrote: >>> Please forgive this second attempt to reply: >>> >>> Jean, >>> >>> On 4/28/22 16:14, Jean Abou Samra wrote: >>> > Is it a large script? >>>

Re: etags regex for Lilypond & LY_DEFINE* tags

2022-05-07 Thread Werner LEMBERG
> Well, I'm an unsophisticated Emacs user, so I'd appreciate thoughts > from Werner or David. Mhmm, I don't use Emacs for editing LilyPond input files, so I don't have an opinion here. What I can imagine is to have, say, a git repository, and the CG containing a link to that. Werner

Re: etags regex for Lilypond & LY_DEFINE* tags

2022-05-07 Thread David Kastrup
Jonas Hahnfeld via Discussions on LilyPond development writes: > On Fri, 2022-05-06 at 20:42 -0500, John Wheeler wrote: >> Please forgive this second attempt to reply: >> >> Jean, >> >> On 4/28/22 16:14, Jean Abou Samra wrote: >> > Is it a large script? >> > If so, it needs some consideration.

Re: etags regex for Lilypond & LY_DEFINE* tags

2022-05-07 Thread Jonas Hahnfeld via Discussions on LilyPond development
On Fri, 2022-05-06 at 20:42 -0500, John Wheeler wrote: > Please forgive this second attempt to reply: > > Jean, > > On 4/28/22 16:14, Jean Abou Samra wrote: > > Is it a large script? > > If so, it needs some consideration. If not, can it fit in an @example > > somewhere in the CG? That might

Re: etags regex for Lilypond & LY_DEFINE* tags

2022-05-07 Thread Jean Abou Samra
Le 07/05/2022 à 03:42, John Wheeler a écrit : Please forgive this second attempt to reply: Sorry, I received the first one, but dropped the ball. Jean, On 4/28/22 16:14, Jean Abou Samra wrote: Is it a large script? If so, it needs some consideration. If not, can it fit in an @example

Re: etags regex for Lilypond & LY_DEFINE* tags

2022-05-06 Thread John Wheeler
Please forgive this second attempt to reply: Jean, On 4/28/22 16:14, Jean Abou Samra wrote: Is it a large script? If so, it needs some consideration. If not, can it fit in an @example somewhere in the CG? That might also make it more visible. The 'script' consists of a shell script to gather

Re: etags regex for Lilypond & LY_DEFINE* tags

2022-05-02 Thread John Wheeler
Jean, On 4/28/22 16:14, Jean Abou Samra wrote: Hi John, Le 24/04/2022 à 21:10, John Wheeler a écrit : To facilitate using emacs xref in lilypond work, I wrote a script to assemble the needed TAGS file.  The unique feature of the script is that it includes the regex to find tags in Lilypond

Re: etags regex for Lilypond & LY_DEFINE* tags

2022-04-28 Thread Jean Abou Samra
Hi John, Le 24/04/2022 à 21:10, John Wheeler a écrit : To facilitate using emacs xref in lilypond work, I wrote a script to assemble the needed TAGS file.  The unique feature of the script is that it includes the regex to find tags in Lilypond (.ly) files as well as tags defined in LY_DEFINE* 

etags regex for Lilypond & LY_DEFINE* tags

2022-04-24 Thread John Wheeler
To facilitate using emacs xref in lilypond work, I wrote a script to assemble the needed TAGS file.  The unique feature of the script is that it includes the regex to find tags in Lilypond (.ly) files as well as tags defined in LY_DEFINE*  macros, in addition to the normal c++, python, lisp,