aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNoam Postavsky2017-04-05 20:16:30 -0400
committerNoam Postavsky2018-01-26 19:50:57 -0500
commit7bbea90b1a82c09a6bb218ac9b50d39027757b31 (patch)
tree025705ec337f85a0310169057406b03e431aa22d /src
parent50fcbb5f610bfc4f990e841d917a5bccd9bb4175 (diff)
downloademacs-7bbea90b1a82c09a6bb218ac9b50d39027757b31.tar.gz
emacs-7bbea90b1a82c09a6bb218ac9b50d39027757b31.zip
* src/syntax.c (char-syntax): Warn about ignoring text properties (Bug#22765).
Diffstat (limited to 'src')
-rw-r--r--src/syntax.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/syntax.c b/src/syntax.c
index 63866796188..e6a21e5433e 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -1087,7 +1087,12 @@ DEFUN ("char-syntax", Fchar_syntax, Schar_syntax, 1, 1, 0,
1087For example, if CHARACTER is a word constituent, the 1087For example, if CHARACTER is a word constituent, the
1088character `w' (119) is returned. 1088character `w' (119) is returned.
1089The characters that correspond to various syntax codes 1089The characters that correspond to various syntax codes
1090are listed in the documentation of `modify-syntax-entry'. */) 1090are listed in the documentation of `modify-syntax-entry'.
1091
1092If you're trying to determine the syntax of characters in the buffer,
1093this is probably the wrong function to use, because it can't take
1094`syntax-table' text properties into account. Consider using
1095`syntax-after' instead. */)
1091 (Lisp_Object character) 1096 (Lisp_Object character)
1092{ 1097{
1093 int char_int; 1098 int char_int;