+ if (!to_boolean (me->get_property ("remove-empty")))
+ return false;
+
+ bool remove_first = to_boolean (me->get_property ("remove-first"));
+ if (!remove_first && start <= 0)
+ return false;
+
+ SCM important = me->get_property ("important-column-ranks");
+ if (scm_is_vector (important))
+ {
+ int len = scm_c_vector_length (important);
+ if (find_in_range (important, 0, len, start, end))
+ return false;
+ }
+ else /* build the important-columns-cache */
+ {
+ extract_grob_set (me, "items-worth-living", worth);
+ vector<int> ranks;
+
+ for (vsize i = 0; i < worth.size (); i++)
+ {
+ Interval_t<int> iv = worth[i]->spanned_rank_interval ();
+ for (int j = iv[LEFT]; j <= iv[RIGHT]; j++)
+ ranks.push_back (j);
+ }
+ vector_sort (ranks, less<int> ());
+ uniq (ranks);
+
+ SCM scm_vec = scm_c_make_vector (ranks.size (), SCM_EOL);
+ for (vsize i = 0; i < ranks.size (); i++)
+ scm_vector_set_x (scm_vec, scm_from_int (i), scm_from_int (ranks[i]));
+ me->set_property ("important-column-ranks", scm_vec);
+
+ return request_suicide (me, start, end);
+ }
+
+ return true;
+}