2004-11-11 Jan Nieuwenhuizen <janneke@gnu.org>
+ * lily/context-selector.cc (set_tweaks): New function.
+ * lily/grob-selector.cc (set_tweaks): (Re)set hash table. Fixes
+ web with -DTWEAK.
+
+ * Documentation/user/introduction.itely (Automated engraving):
+ Remove fragment option. Fixes web.
+
* lily/context-property.cc (make_item_from_properties):
* lily/context.cc (add_context)[TWEAK]: Tweak registration behind
#ifdef.
have all directions down (or left). The second chord has all
directions up (right).
-@lilypond[quote,raggedright,relative=1,fragment]
+@lilypond[quote,raggedright,relative=1]
\new Score \with {
\override SpacingSpanner #'spacing-increment = #3
\override TimeSignature #'transparent = ##t
void
Context_selector::register_context (Context *context)
{
- if (!contexts_)
- contexts_ = new Scheme_hash_table ();
int count = 0;
if (Context *first = retrieve_context (identify_context (context, 0)))
{
{
return unsmob_context (contexts_->get (ly_to_symbol (context_id)));
}
+
+void
+Context_selector::set_tweaks (SCM tweaks)
+{
+ (void) tweaks;
+ contexts_ = new Scheme_hash_table ();
+ //tweaks_ = tweaks;
+}
+
SCM
Context::internal_get_property (SCM sym) const
{
- SCM val =SCM_EOL;
+ SCM val = SCM_EOL;
if (properties_dict ()->try_retrieve (sym, &val))
return val;
void
Grob_selector::register_grob (Context *context, Grob *grob)
{
- if (!grobs_)
- grobs_ = new Scheme_hash_table ();
int count = 0;
Moment m = context->now_mom ();
if (Grob *first = retrieve_grob (identify_grob (context, m, grob, 0)))
void
Grob_selector::set_tweaks (SCM tweaks)
{
+ grobs_ = new Scheme_hash_table ();
tweaks_ = tweaks;
}
static SCM identify_context (Context *context);
static Context *retrieve_context (SCM context_id);
static void store_context (SCM context_id, Context *context);
+ static void set_tweaks (SCM tweaks);
};
#endif /* CONTEXT_SELECTOR_HH */
*/
#include "book.hh"
+#include "context-selector.hh"
#include "grob-selector.hh"
#include "file-name.hh"
#include "file-path.hh"
SCM tweaks = scm_eval_string (scm_makfrom0str (s.to_str0 ()));
Grob_selector::set_tweaks (tweaks);
}
+ Context_selector::set_tweaks (SCM_EOL);
#endif
/* Read .ly IN_FILE, lex, parse, write \score blocks from IN_FILE to
OUT_FILE (unless IN_FILE redefines output file name). */
do_yyparse ();
-
+
if (!define_spots_.is_empty ())
{
define_spots_.top ().warning (_ ("Braces don't match"));