diff options
| author | Noam Postavsky | 2017-04-05 20:16:30 -0400 |
|---|---|---|
| committer | Noam Postavsky | 2018-01-26 19:50:57 -0500 |
| commit | 7bbea90b1a82c09a6bb218ac9b50d39027757b31 (patch) | |
| tree | 025705ec337f85a0310169057406b03e431aa22d /src | |
| parent | 50fcbb5f610bfc4f990e841d917a5bccd9bb4175 (diff) | |
| download | emacs-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.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, | |||
| 1087 | For example, if CHARACTER is a word constituent, the | 1087 | For example, if CHARACTER is a word constituent, the |
| 1088 | character `w' (119) is returned. | 1088 | character `w' (119) is returned. |
| 1089 | The characters that correspond to various syntax codes | 1089 | The characters that correspond to various syntax codes |
| 1090 | are listed in the documentation of `modify-syntax-entry'. */) | 1090 | are listed in the documentation of `modify-syntax-entry'. |
| 1091 | |||
| 1092 | If you're trying to determine the syntax of characters in the buffer, | ||
| 1093 | this 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; |