Sets edit mode to the layers of the selected objects. If you specify only one layer it becomes the current one.