diff options
author | Noam Postavsky <npostavs@gmail.com> | 2017-04-05 20:16:30 -0400 |
---|---|---|
committer | Noam Postavsky <npostavs@gmail.com> | 2018-01-26 19:50:57 -0500 |
commit | 7bbea90b1a82c09a6bb218ac9b50d39027757b31 (patch) | |
tree | 025705ec337f85a0310169057406b03e431aa22d /src/syntax.c | |
parent | 50fcbb5f610bfc4f990e841d917a5bccd9bb4175 (diff) | |
download | emacs-7bbea90b1a82c09a6bb218ac9b50d39027757b31.tar.gz emacs-7bbea90b1a82c09a6bb218ac9b50d39027757b31.tar.bz2 emacs-7bbea90b1a82c09a6bb218ac9b50d39027757b31.zip |
* src/syntax.c (char-syntax): Warn about ignoring text properties (Bug#22765).
Diffstat (limited to 'src/syntax.c')
-rw-r--r-- | src/syntax.c | 7 |
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, For example, if CHARACTER is a word constituent, the character `w' (119) is returned. The characters that correspond to various syntax codes -are listed in the documentation of `modify-syntax-entry'. */) +are listed in the documentation of `modify-syntax-entry'. + +If you're trying to determine the syntax of characters in the buffer, +this is probably the wrong function to use, because it can't take +`syntax-table' text properties into account. Consider using +`syntax-after' instead. */) (Lisp_Object character) { int char_int; |