Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(18938)

Issue 11614044: input/regression/scheme-text-spanner.ly: fix problem with constants

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by david.nalesnik
Modified:
10 years, 9 months ago
Reviewers:
dak
CC:
lilypond-devel_gnu.org
Base URL:
http://git.savannah.gnu.org/gitweb/?p=lilypond.git/trunk/
Visibility:
Public.

Description

input/regression/scheme-text-spanner.ly: fix problem with constants The file `input/regression/scheme-text-spanner.ly' assigns a constant pair to the variable `event-drul' and subsequently attempts to modify the pair. This can lead to scheme-text-spanners not appearing when requested in simultaneous contexts. This patch fixes the problem.

Patch Set 1 #

Total comments: 10

Patch Set 2 : Incorporate David Kastrup's suggestions, fix whitespace errors #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -43 lines) Patch
M input/regression/scheme-text-spanner.ly View 1 1 chunk +42 lines, -43 lines 0 comments Download

Messages

Total messages: 11
david.nalesnik
Please review. Thanks, David
10 years, 9 months ago (2013-07-23 11:32:57 UTC) #1
dak
https://codereview.appspot.com/11614044/diff/1/input/regression/scheme-text-spanner.ly File input/regression/scheme-text-spanner.ly (right): https://codereview.appspot.com/11614044/diff/1/input/regression/scheme-text-spanner.ly#newcode28 input/regression/scheme-text-spanner.ly:28: (set! meta-entry (assoc-set! meta-entry 'name grob-name)) Of course, these ...
10 years, 9 months ago (2013-07-23 12:31:25 UTC) #2
david.nalesnik
Thank you, David. https://codereview.appspot.com/11614044/diff/1/input/regression/scheme-text-spanner.ly File input/regression/scheme-text-spanner.ly (right): https://codereview.appspot.com/11614044/diff/1/input/regression/scheme-text-spanner.ly#newcode28 input/regression/scheme-text-spanner.ly:28: (set! meta-entry (assoc-set! meta-entry 'name grob-name)) ...
10 years, 9 months ago (2013-07-23 13:05:47 UTC) #3
dak
On 2013/07/23 13:05:47, david.nalesnik wrote: > On 2013/07/23 12:31:25, dak wrote: > > Frankly, just ...
10 years, 9 months ago (2013-07-23 13:27:49 UTC) #4
david.nalesnik
On 2013/07/23 13:27:49, dak wrote: > On 2013/07/23 13:05:47, david.nalesnik wrote: > > On 2013/07/23 ...
10 years, 9 months ago (2013-07-23 13:52:13 UTC) #5
dak
On 2013/07/23 13:52:13, david.nalesnik wrote: > Sorry, replied a bit hastily! [...] > I've thought ...
10 years, 9 months ago (2013-07-23 15:06:51 UTC) #6
david.nalesnik
On 2013/07/23 15:06:51, dak wrote: > On 2013/07/23 13:52:13, david.nalesnik wrote: > > > Sorry, ...
10 years, 9 months ago (2013-07-23 20:05:40 UTC) #7
dak
On 2013/07/23 20:05:40, david.nalesnik wrote: > Hmmm, so if I understand correctly: > > The ...
10 years, 9 months ago (2013-07-23 20:16:24 UTC) #8
david.nalesnik
On 2013/07/23 20:16:24, dak wrote: > On 2013/07/23 20:05:40, david.nalesnik wrote: > > > > ...
10 years, 9 months ago (2013-07-23 20:28:46 UTC) #9
david.nalesnik
> > Instead, complete-grob-entry (or whatever it was > > called) > > needs to ...
10 years, 9 months ago (2013-07-24 15:11:00 UTC) #10
david.nalesnik
10 years, 9 months ago (2013-07-25 15:20:25 UTC) #11
https://codereview.appspot.com/11614044/diff/1/input/regression/scheme-text-s...
File input/regression/scheme-text-spanner.ly (right):

https://codereview.appspot.com/11614044/diff/1/input/regression/scheme-text-s...
input/regression/scheme-text-spanner.ly:117: (event-drul (cons '() '())))
On 2013/07/23 12:31:25, dak wrote:
> Frankly, just throw out the crap event-drul and current-event, and instead use
> event-start and event-stop instead of (car event-drul) and (cdr event-drul). 
> current-event also is never set to anything except (car event-drul), so you
can
> just replace it with event-start.
> 
> This whole file is a huge parade of bad code.

Done.

https://codereview.appspot.com/11614044/diff/1/input/regression/scheme-text-s...
input/regression/scheme-text-spanner.ly:157: (set! event-drul (cons '() '())))))
On 2013/07/23 13:05:47, david.nalesnik wrote:
> On 2013/07/23 12:31:25, dak wrote:
> > You could do (set-car! event-drul '())
> >              (set-cdr! event-drul '())
> > instead in order to not create a new cons cell.
> 
> OK, will do.
> 

Fixed using new variables.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b