+2003-06-23 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+
+ * lily/unfolded-repeat-iterator.cc (process): bugfix: use a
+ "first" flag to decide whether to make a start-repeat
+
+ * input/regression/grace-volta-repeat-2.ly: new file.
+
+2003-06-22 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+
+ * lilypond-indent.el: rename generic functions to LilyPond-*
+
2003-06-22 Graham Percival <gperlist@shaw.ca>
* input/test/thumb.ly: delete, merged into refman.
--- /dev/null
+\version "1.7.22"
+
+\header {
+
+ texidoc = "Graces at combined with volta repeats: a repeat
+starting with a grace, following a repeat directly. The bars should be
+merged into one :||:."
+
+ }
+
+\score {\notes\relative c' {
+\repeat volta 2 {
+ c1
+}
+\repeat volta 2 {
+ \grace {c8 } c4
+}
+}}
virtual void next_element (bool);
virtual void construct_children();
virtual void process (Moment);
-
+
+ bool first_time_;
int alt_count_;
int rep_count_;
int done_count_;
Volta_repeat_iterator::Volta_repeat_iterator()
{
done_count_ = alt_count_ = rep_count_= 0;
+ first_time_ = true;
}
SCM
void
Volta_repeat_iterator::process (Moment m)
{
- if (!m.to_bool ())
+ if (first_time_)
{
add_repeat_command (ly_symbol2scm ("start-repeat"));
+ first_time_ = false;
}
Sequential_iterator::process(m);
}
;;; From Emacs' paren.el, with minimal changes (see "LilyPond"-lines)
;; Find the place to show, if there is one,
;; and show it until input arrives.
-(defun show-paren-function ()
-;;(defun LilyPond-show-paren-function () ; make show-paren-function local ??
+; (defun show-paren-function ()
+
+
+;; don't redefine emacs functions. It breaks other modes.
+
+(defun LilyPond-show-paren-function () ; make show-paren-function local ??
(if show-paren-mode
(let (pos dir mismatch face (oldpos (point)))
(cond ((eq (char-syntax (preceding-char)) ?\))
;; and show it until input arrives.
(if (string-match "XEmacs\\|Lucid" emacs-version)
(paren-set-mode 'paren)) ; works if this is set here (, right place?)
-(defun paren-highlight ()
-;;(defun LilyPond-paren-highlight () ; make paren-highlight local ??
+;(defun paren-highlight ()
+(defun LilyPond-paren-highlight () ; make paren-highlight local ??
"This highlights matching parentheses.
See the variables: