summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorXue Fuqiao <xfq.free@gmail.com>2013-12-22 14:25:57 +0800
committerXue Fuqiao <xfq.free@gmail.com>2013-12-22 14:25:57 +0800
commit05e8f1ae2e6c55b59da6dd508d3e48cc7807dfc9 (patch)
tree1e92fa9d75d2d4251fd22c3d0f9c9609c968e177 /doc
parentb345c561829091aec1ad9cd327ca5a97d1050e80 (diff)
downloademacs-05e8f1ae2e6c55b59da6dd508d3e48cc7807dfc9.tar.gz
Document `get-pos-property'.
* doc/lispref/text.texi (Examining Properties): Document `get-pos-property'.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/ChangeLog2
-rw-r--r--doc/lispref/text.texi7
2 files changed, 9 insertions, 0 deletions
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 <xfq.free@gmail.com>
+ * 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.