(if (> (overlay-end o) end)
(move-overlay o end (overlay-end o))
(delete-overlay o)))))))
-
+\f
;;;; Miscellanea.
;; A number of major modes set this locally.
(cons 'progn body)
'(set-match-data save-match-data-internal))))
+(defun copy-without-properties (string)
+ "Return a copy of STRING with no text properties."
+ (setq string (concat string))
+ (set-text-properties 0 (length string) nil string)
+ string)
+
(defun match-string (num &optional string)
"Return string of text matched by last search.
NUM specifies which parenthesized expression in the last regexp.