1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-26 19:18:50 +00:00

* src/syntax.c (char-syntax): Warn about ignoring text properties (Bug#22765).

This commit is contained in:
Noam Postavsky 2017-04-05 20:16:30 -04:00
parent 50fcbb5f61
commit 7bbea90b1a

View File

@ -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;