Mercurial > emacs
comparison lispref/text.texi @ 79011:e8263132a24d
(Examining Properties): Mention overlay priority.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 09 Oct 2007 01:25:31 +0000 |
parents | b86e73d7c635 |
children | 3b1cb1535715 |
comparison
equal
deleted
inserted
replaced
79010:3d90e1da8878 | 79011:e8263132a24d |
---|---|
2613 | 2613 |
2614 @defun get-char-property position prop &optional object | 2614 @defun get-char-property position prop &optional object |
2615 This function is like @code{get-text-property}, except that it checks | 2615 This function is like @code{get-text-property}, except that it checks |
2616 overlays first and then text properties. @xref{Overlays}. | 2616 overlays first and then text properties. @xref{Overlays}. |
2617 | 2617 |
2618 The argument @var{object} may be a string, a buffer, or a window. If it | 2618 The argument @var{object} may be a string, a buffer, or a window. If |
2619 is a window, then the buffer displayed in that window is used for text | 2619 it is a window, then the buffer displayed in that window is used for |
2620 properties and overlays, but only the overlays active for that window | 2620 text properties and overlays, but only the overlays active for that |
2621 are considered. If @var{object} is a buffer, then all overlays in that | 2621 window are considered. If @var{object} is a buffer, then overlays in |
2622 buffer are considered, as well as text properties. If @var{object} is a | 2622 that buffer are considered first, in order of decreasing priority, |
2623 string, only text properties are considered, since strings never have | 2623 followed by the text properties. If @var{object} is a string, only |
2624 overlays. | 2624 text properties are considered, since strings never have overlays. |
2625 @end defun | 2625 @end defun |
2626 | 2626 |
2627 @defun get-char-property-and-overlay position prop &optional object | 2627 @defun get-char-property-and-overlay position prop &optional object |
2628 This is like @code{get-char-property}, but gives extra information | 2628 This is like @code{get-char-property}, but gives extra information |
2629 about the overlay that the property value comes from. | 2629 about the overlay that the property value comes from. |