In the presence of ileus, the only way the stomach can empty itself is by: