Nothing contained in this chapter shall be construed to restrain the power of any court to issue a writ of habeas corpus when necessary to bring before them any prisoner for trial, in any criminal case lawfully pending in the same court, or to bring any prisoner to be examined as a witness in any action or proceeding, civil or criminal, pending in such court, when they think the personal attendance and examination of the witness necessary for the attainment of justice.
History: Laws 1884, ch. 1, § 35; C.L. 1884, § 2046; C.L. 1897, § 2816; Code 1915, § 2624; C.S. 1929, § 63-136; 1941 Comp., § 25-1136; 1953 Comp., § 22-11-36.
Meaning of "this chapter". — The term "this chapter" appeared in the original act, which was divided into three unnumbered divisions, to-wit: habeas corpus, §§ 1 to 36; mandamus, §§ 37 to 50; prohibition, §§ 51 to 56; and apparently referred to §§ 1 to 36, the operative provisions of which are compiled as 44-1-1 to 44-1-22, 44-1-25 to 44-1-37 NMSA 1978.
Law reviews. — For article, "Habeas Corpus in New Mexico," see 11 N.M.L. Rev. 291 (1981).