Function: robin-convert-region-internal

robin-convert-region-internal is a byte-compiled function defined in robin.el.gz.

Signature

(robin-convert-region-internal TREE)

Documentation

Apply a robin rule defined in TREE to the current point.

Use the longest match method to select a rule.

Source Code

;; Defined in /usr/src/emacs/lisp/international/robin.el.gz
(defun robin-convert-region-internal (tree)
  "Apply a robin rule defined in TREE to the current point.
Use the longest match method to select a rule."

  (let ((begin (point))
	end branch)
    (while (setq branch (assq (following-char) tree))
      (setq tree branch)
      (forward-char 1))

    (setq end (point))
    (if (= begin end)
	;; no matching rule found; leave it as it is
	(forward-char 1)
      ;; replace the string
      (goto-char begin)
      (insert (cadr tree))
      (delete-char (- end begin)))))