From: Mattias EngdegÄrd Date: Thu, 18 Aug 2022 15:25:41 +0000 (+0200) Subject: Fix string-to-syntax signature in comp-known-type-specifiers X-Git-Tag: emacs-29.0.90~1447^2~72 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1ad0d607404ab0527f5095a64a8dcc9c2bea6411;p=emacs.git Fix string-to-syntax signature in comp-known-type-specifiers * lisp/emacs-lisp/comp.el (comp-known-type-specifiers): `string-to-syntax` can return nil. --- diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el index 869781bea15..304ea8cc6c1 100644 --- a/lisp/emacs-lisp/comp.el +++ b/lisp/emacs-lisp/comp.el @@ -520,7 +520,7 @@ Useful to hook into pass checkers.") (string-to-char (function (string) fixnum)) (string-to-multibyte (function (string) string)) (string-to-number (function (string &optional integer) number)) - (string-to-syntax (function (string) cons)) + (string-to-syntax (function (string) (or cons null))) (string< (function ((or string symbol) (or string symbol)) boolean)) (string= (function ((or string symbol) (or string symbol)) boolean)) (stringp (function (t) boolean))