Function: reftex-make-regexp-allow-for-ctrl-m
reftex-make-regexp-allow-for-ctrl-m is a byte-compiled function
defined in reftex.el.gz.
Signature
(reftex-make-regexp-allow-for-ctrl-m STRING)
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/reftex.el.gz
(defun reftex-make-regexp-allow-for-ctrl-m (string)
;; convert STRING into a regexp, allowing ^M for \n and vice versa
(let ((start -2))
(setq string (regexp-quote string))
(while (setq start (string-match "[\n\r]" string (+ 3 start)))
(setq string (replace-match "[\n\r]" nil t string)))
string))