Extra functions for multiple-cursors mode