Function: article-translate-strings
article-translate-strings is a byte-compiled function defined in
gnus-art.el.gz.
Signature
(article-translate-strings MAP)
Documentation
Translate all string in the body of the article according to MAP.
MAP is an alist where the elements are on the form ("from" "to").
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/gnus-art.el.gz
(defun article-translate-strings (map)
"Translate all string in the body of the article according to MAP.
MAP is an alist where the elements are on the form (\"from\" \"to\")."
(save-excursion
(when (article-goto-body)
(let ((inhibit-read-only t))
(dolist (elem map)
(let ((from (car elem))
(to (cadr elem)))
(save-excursion
(if (stringp from)
(while (search-forward from nil t)
(replace-match to))
(while (not (eobp))
(if (eq (following-char) from)
(progn
(delete-char 1)
(insert to))
(forward-char 1)))))))))))