Function: woman-unescape

woman-unescape is a byte-compiled function defined in woman.el.gz.

Signature

(woman-unescape MACRO)

Documentation

Replace escape sequences in the body of MACRO.

Replaces || by |, but | by \, where | denotes the internal escape.

Source Code

;; Defined in /usr/src/emacs/lisp/woman.el.gz
(defsubst woman-unescape (macro)
  "Replace escape sequences in the body of MACRO.
Replaces || by |, but | by \\, where | denotes the internal escape."
  (let (start)
    (while (setq start (string-match woman-unescape-regex macro start))
      (setq macro
	    (if (match-beginning 1)
		(replace-match "" t t macro 1)
	      (replace-match "\\" t t macro))
	    start (1+ start)))
    macro))