Function: texinfo-format-convert
texinfo-format-convert is a byte-compiled function defined in
texinfmt.el.gz.
Signature
(texinfo-format-convert MIN MAX)
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/texinfmt.el.gz
;;; Perform non-@-command file conversions: quotes and hyphens
(defun texinfo-format-convert (min max)
;; Convert left and right quotes to typewriter font quotes.
(goto-char min)
(while (search-forward "``" max t)
(replace-match "\""))
(goto-char min)
(while (search-forward "''" max t)
(replace-match "\""))
;; Convert three hyphens in a row to two.
(goto-char min)
(while (re-search-forward "\\( \\|\\w\\)\\(---\\)\\( \\|\\w\\)" max t)
(delete-region (1+ (match-beginning 2)) (+ 2 (match-beginning 2)))))