From 78427304a6464a5391b0002146bc52a388723403 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Fri, 25 Sep 2009 03:36:16 +0000 Subject: [PATCH] * display.texi (Managing Overlays): Document copy-overlay (Bug#4549). --- doc/lispref/ChangeLog | 5 +++++ doc/lispref/display.texi | 8 ++++++++ 2 files changed, 13 insertions(+) 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: -- 2.39.2