From: Chong Yidong Date: Fri, 25 Sep 2009 03:36:16 +0000 (+0000) Subject: * display.texi (Managing Overlays): Document copy-overlay (Bug#4549). X-Git-Tag: emacs-pretest-23.1.90~1152 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=78427304a6464a5391b0002146bc52a388723403;p=emacs.git * display.texi (Managing Overlays): Document copy-overlay (Bug#4549). --- diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 5ff71492944..d121127f31e 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog @@ -1,3 +1,8 @@ +2009-09-25 David Engster + + * display.texi (Managing Overlays): Document + copy-overlay (Bug#4549). + 2009-09-22 Glenn Morris * internals.texi (Building Emacs): Mention preloaded-file-list. diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index d1f44352a99..8feb8ea8c81 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi @@ -1267,6 +1267,14 @@ the specified region. If @var{start} and/or @var{end} are omitted or @code{nil}, that means the beginning and end of the buffer respectively. Therefore, @code{(remove-overlays)} removes all the overlays in the current buffer. +@end defun + +@defun copy-overlay overlay +This function returns a copy of @var{overlay}. The copy has the same +endpoints and properties as @var{overlay}. However, the marker +insertion type for the start of the overlay and for the end of the +overlay are set to their default values (@pxref{Marker Insertion +Types}). @end defun Here are some examples: