lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Guile-2.9.5 shortcut for gettext changed


From: Thomas Morley
Subject: Guile-2.9.5 shortcut for gettext changed
Date: Sun, 24 Nov 2019 20:24:39 +0100

Hi,

after recent release of guile-2.9.5
https://lists.gnu.org/archive/html/guile-devel/2019-11/msg00016.html
I tried it out for building LilyPond. (with my usual guile-patches)

Obviously the short-cut `_´ for `gettext´ is replaced by `G_´ (see above link)
Though, I can't simply replace one by the other, because obviously
it's also in our lily-module.
For now I replaced enough(*) to get `make´ successfull, but I get warnings:

WARNING: (scm ps-to-png): imported module (lily) overrides core binding `_'
WARNING: (scm ly-syntax-constructors): imported module (lily)
overrides core binding `_'
WARNING: (#{ g166}#): imported module (lily) overrides core binding `_'
WARNING: (#{ g166}#): imported module (lily) overrides core binding `_'
WARNING: (#{ g166}#): imported module (lily) overrides core binding `_'

If I replace to much I get an error about undefined `G_´ (seems the
definition from lily-module takes over)(**)

I can't find where we define our own shortcut `_´ for `gettext´.
Hints?

Cheers,
  Harm

(*) If soemone's interested here the diff.

$ git diff
diff --git a/scm/lily.scm b/scm/lily.scm
index a1db5eafea..06c3da414d 100644
--- a/scm/lily.scm
+++ b/scm/lily.scm
@@ -95,15 +95,15 @@

 (define-public (call-after-session thunk)
   (if (ly:undead? lilypond-declarations)
-      (ly:error (_ "call-after-session used after session start")))
+      (ly:error (G_ "call-after-session used after session start")))
   (add-hook! after-session-hook thunk #t))

 (define (make-session-variable name value)
   (if (ly:undead? lilypond-declarations)
-      (ly:error (_ "define-session used after session start")))
+      (ly:error (G_ "define-session used after session start")))
   (let ((var (module-make-local-var! (current-module) name)))
     (if (variable-bound? var)
-        (ly:error (_ "symbol ~S redefined") name))
+        (ly:error (G_ "symbol ~S redefined") name))
     (variable-set! var value)
     var))

(**)
$ lilypond-git-guile-3.0  scheme-sandbox
GNU LilyPond 2.21.0
WARNING: (scm ps-to-png): imported module (lily) overrides core binding `_'
WARNING: (scm ly-syntax-constructors): imported module (lily)
overrides core binding `_'
Processing 
`/home/hermann/lilypond-git-guile-3.0/build/out/share/lilypond/current/ly/scheme-sandbox.ly'
Parsing...WARNING: (#{ g166}#): imported module (lily) overrides core
binding `_'

GNU Guile 2.9.5
Copyright (C) 1995-2019 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(#{ g166}#)> _
WARNING: (#{ g166}#): imported module (lily) overrides core binding `_'
WARNING: (#{ g166}#): imported module (lily) overrides core binding `_'
$1 = #<procedure gettext (_ #:optional _ _)>
scheme@(#{ g166}#)> G_
;;; <unknown-location>: warning: possibly unbound variable `G_'
ice-9/boot-9.scm:1650:16: In procedure raise-exception:
Unbound variable: G_

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]