In all actions of contested elections, mandamus, removal of public officers, quo warranto or prohibition, it is discretionary with the court rendering judgment, or with the supreme court, to allow a supersedeas of the judgment. If the appeal or writ of error is allowed to operate as a supersedeas, it shall be upon terms and conditions the court may deem proper.
NMS § 39-3-24