From 05e8f1ae2e6c55b59da6dd508d3e48cc7807dfc9 Mon Sep 17 00:00:00 2001 From: Xue Fuqiao Date: Sun, 22 Dec 2013 14:25:57 +0800 Subject: [PATCH] Document `get-pos-property'. * doc/lispref/text.texi (Examining Properties): Document `get-pos-property'. --- doc/lispref/ChangeLog | 2 ++ doc/lispref/text.texi | 7 +++++++ etc/NEWS | 1 + 3 files changed, 10 insertions(+) diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 14facae6ba5..a92ae299250 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog @@ -1,5 +1,7 @@ 2013-12-22 Xue Fuqiao + * text.texi (Examining Properties): Document `get-pos-property'. + * variables.texi (Directory Local Variables): Document `enable-dir-local-variables'. * debugging.texi (Debugger Commands): Document `debugger-toggle-locals'. diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi index 1deb4a6530a..0ddff24aa15 100644 --- a/doc/lispref/text.texi +++ b/doc/lispref/text.texi @@ -2679,6 +2679,13 @@ followed by the text properties. If @var{object} is a string, only text properties are considered, since strings never have overlays. @end defun +@defun get-pos-property position prop &optional object +This function is like @code{get-char-property}, except that it pays +attention to properties' stickiness and overlays' advancement settings +instead of the property of the character at (i.e. right after) +@var{position}. +@end defun + @defun get-char-property-and-overlay position prop &optional object This is like @code{get-char-property}, but gives extra information about the overlay that the property value comes from. diff --git a/etc/NEWS b/etc/NEWS index 0b78a93fa94..e3c902e66d8 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -891,6 +891,7 @@ respecting file-local variables. Generic commands are interactive functions whose implementation can be selected among several alternatives, as a matter of user preference. ++++ ** New function `get-pos-property'. ** Minibuffer changes -- 2.11.4.GIT