diff options
| author | Eli Zaretskii | 2022-11-22 18:56:08 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2022-11-22 18:56:08 +0200 |
| commit | fa567684fa276511ea981cd208f99b67c521d8aa (patch) | |
| tree | b4ec00d5a3b040e43b584fb335716f0e76143f58 /src | |
| parent | 4b6e152e349b024936bafc485cb7e16ca14d31ca (diff) | |
| download | emacs-fa567684fa276511ea981cd208f99b67c521d8aa.tar.gz emacs-fa567684fa276511ea981cd208f99b67c521d8aa.zip | |
; Fix comparisons in treesit.c
* src/treesit.c (Ftreesit_parser_add_notifier)
(Ftreesit_parser_remove_notifier): Fix comparison with Lisp
objects. (Bug#59483)
Diffstat (limited to 'src')
| -rw-r--r-- | src/treesit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/treesit.c b/src/treesit.c index 463e2458a63..835b07c9312 100644 --- a/src/treesit.c +++ b/src/treesit.c | |||
| @@ -1535,7 +1535,7 @@ positions. PARSER is the parser issuing the notification. */) | |||
| 1535 | CHECK_SYMBOL (function); | 1535 | CHECK_SYMBOL (function); |
| 1536 | 1536 | ||
| 1537 | Lisp_Object functions = XTS_PARSER (parser)->after_change_functions; | 1537 | Lisp_Object functions = XTS_PARSER (parser)->after_change_functions; |
| 1538 | if (!Fmemq (function, functions)) | 1538 | if (NILP (Fmemq (function, functions))) |
| 1539 | XTS_PARSER (parser)->after_change_functions = Fcons (function, functions); | 1539 | XTS_PARSER (parser)->after_change_functions = Fcons (function, functions); |
| 1540 | return Qnil; | 1540 | return Qnil; |
| 1541 | } | 1541 | } |
| @@ -1555,7 +1555,7 @@ positions. PARSER is the parser issuing the notification. */) | |||
| 1555 | CHECK_SYMBOL (function); | 1555 | CHECK_SYMBOL (function); |
| 1556 | 1556 | ||
| 1557 | Lisp_Object functions = XTS_PARSER (parser)->after_change_functions; | 1557 | Lisp_Object functions = XTS_PARSER (parser)->after_change_functions; |
| 1558 | if (Fmemq (function, functions)) | 1558 | if (!NILP (Fmemq (function, functions))) |
| 1559 | XTS_PARSER (parser)->after_change_functions = Fdelq (function, functions); | 1559 | XTS_PARSER (parser)->after_change_functions = Fdelq (function, functions); |
| 1560 | return Qnil; | 1560 | return Qnil; |
| 1561 | } | 1561 | } |