emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-26 7bbea90 3/5: * src/syntax.c (char-syntax): Warn a


From: Noam Postavsky
Subject: [Emacs-diffs] emacs-26 7bbea90 3/5: * src/syntax.c (char-syntax): Warn about ignoring text properties (Bug#22765).
Date: Fri, 26 Jan 2018 21:01:50 -0500 (EST)

branch: emacs-26
commit 7bbea90b1a82c09a6bb218ac9b50d39027757b31
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>

    * src/syntax.c (char-syntax): Warn about ignoring text properties 
(Bug#22765).
---
 src/syntax.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/syntax.c b/src/syntax.c
index 6386679..e6a21e5 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;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]