From 36db2fa47f596e6e41a60473f837ea04ebfd7849 Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Sun, 6 Mar 2016 20:45:02 +0100 Subject: [PATCH] Issue 4786: fee.fi = 0 was interpreted as as fee = 0 for undefined fee If fee had been defined previously, the behavior became more sensible, treating fee as an alist with a value of 0 for key fi. This is now always the case. --- lily/lily-lexer.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lily/lily-lexer.cc b/lily/lily-lexer.cc index b6cbda7f97..221d048cc0 100644 --- a/lily/lily-lexer.cc +++ b/lily/lily-lexer.cc @@ -285,6 +285,8 @@ Lily_lexer::set_identifier (SCM path, SCM val) SCM prev = ly_module_lookup (mod, sym); if (scm_is_true (prev)) val = nested_property_alist (scm_variable_ref (prev), path, val); + else + val = nested_create_alist (path, val); } scm_module_define (mod, sym, val); } -- 2.39.2