Re: Updating alists (was: Tenuto marking too close to note)

2021-12-30 Thread Jean Abou Samra
Le 30/12/2021 à 23:04, Lukas-Fabian Moser a écrit : Hi Jean, Both of these cases seem to work the same as in current versions if I do [...]  SCM  assq_tail (SCM key, SCM alist, SCM based_on = SCM_EOL)  { -  for (SCM p = alist; !scm_is_eq (p, based_on); p = scm_cdr (p)) +  for (SCM p = alist;

Re: Updating alists (was: Tenuto marking too close to note)

2021-12-30 Thread Lukas-Fabian Moser
Hi Jean, Both of these cases seem to work the same as in current versions if I do [...]  SCM  assq_tail (SCM key, SCM alist, SCM based_on = SCM_EOL)  { -  for (SCM p = alist; !scm_is_eq (p, based_on); p = scm_cdr (p)) +  for (SCM p = alist; scm_is_pair (p) && scm_is_pair (scm_car (p)) && !sc

Re: Updating alists (was: Tenuto marking too close to note)

2021-12-30 Thread Jean Abou Samra
Le 30/12/2021 à 12:36, Lukas-Fabian Moser a écrit : It's much worse than that: It's not the first time _I've_ been tripped up by this (previously it was with sort!). I'll just have to write 100 copies of "The exclamation mark in something! does not mean the function is guaranteed to make the

Updating alists (was: Tenuto marking too close to note)

2021-12-30 Thread Lukas-Fabian Moser
Hi Jean, (CCing devel because of the stuff below the asterisks) Although this approach manipulates internal data structures of LilyPond, it has the advantage of dealing with your issue at the root and not causing side effects for other scripts. Unfortunately, this approach does not work direct