Function: texinfo-clone-environment
texinfo-clone-environment is a byte-compiled function defined in
texinfo.el.gz.
Signature
(texinfo-clone-environment START END)
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/texinfo.el.gz
(defun texinfo-clone-environment (start end)
(let ((endp nil))
(save-excursion
(ignore-errors
(goto-char start)
(when (looking-at "end\\Sw+\\(\\sw+\\)")
(setq endp t start (match-beginning 1) end (match-end 1)))
(unless (get-char-property start 'text-clones)
(if endp
(texinfo-last-unended-begin)
(forward-word-strictly 1)
(texinfo-next-unmatched-end))
(skip-syntax-forward "^w")
(when (looking-at
(concat (regexp-quote (buffer-substring start end)) "\\>"))
(text-clone-create start end 'spread "\\w*")))))))