Re: input/regression/scheme-text-spanner.ly: fix problem with constants (issue 11614044)

2013-07-25 Thread david . nalesnik


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#newcode117
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-spanner.ly#newcode157
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.

https://codereview.appspot.com/11614044/

___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


how to build lilypond in debug mode?

2013-07-25 Thread Frédéric Bron
Hi,
I would like to run lilypond in gdb to understand what happens when using ties.
How can I build lilypond for that?
When I run configure --help, it says it is built with debug info by default:
--enable-debugging  compile with debugging info. Default: on
But when I run gdb, I get some strange errors (see below).
Frédéric

gdb) run toto2.ly
Starting program:
/home/fred/lilypond/build-2013-07-25_11-30/lily/out/lilypond toto2.ly
Traceback (most recent call last):
  File /usr/share/gdb/auto-load/usr/lib64/libgobject-2.0.so.0.3600.3-gdb.py,
line 9, in module
from gobject import register
  File /usr/share/glib-2.0/gdb/gobject.py, line 3, in module
import gdb.backtrace
ImportError: No module named backtrace
Traceback (most recent call last):
  File /usr/share/gdb/auto-load/usr/lib64/libgobject-2.0.so.0.3600.3-gdb.py,
line 9, in module
from gobject import register
  File /usr/share/glib-2.0/gdb/gobject.py, line 3, in module
import gdb.backtrace
ImportError: No module named backtrace
[Thread debugging using libthread_db enabled]
Using host libthread_db library /lib64/libthread_db.so.1.
Missing separate debuginfo for /lib64/libgraphite2.so.3
Try: yum --disablerepo='*' --enablerepo='*debug*' install
/usr/lib/debug/.build-id/a1/aa32c91bc181cb69ebc81bbfd03a1349ea4e33.debug
GNU LilyPond 2.17.23
warning: not relocating, no 2.17.23/ or current/ found under
/home/fred/lilypond/build-2013-07-25_11-30/lily/share/lilypond/
ERROR: In procedure primitive-load-path:
ERROR: Unable to find file lily.scm in load path
[Inferior 1 (process 9056) exited with code 01]
Missing separate debuginfos, use: debuginfo-install
compat-guile18-1.8.8-6.fc19.x86_64 expat-2.1.0-5.fc19.x86_64
fontconfig-2.10.93-1.fc19.x86_64 freetype-2.4.11-6.fc19.x86_64
glib2-2.36.3-2.fc19.x86_64 glibc-2.17-11.fc19.x86_64
gmp-5.1.1-2.fc19.x86_64 harfbuzz-0.9.18-3.fc19.x86_64
libffi-3.0.13-4.fc19.x86_64 libgcc-4.8.1-1.fc19.x86_64
libstdc++-4.8.1-1.fc19.x86_64 libtool-ltdl-2.4.2-16.fc19.x86_64
nss-softokn-freebl-3.15.1-1.fc19.x86_64 pango-1.34.1-1.fc19.x86_64

___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel