aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Corallo2024-05-02 12:15:30 +0200
committerAndrea Corallo2024-05-02 12:15:30 +0200
commit17cdb512c0d522ae402c13bede35d75d520d0b1c (patch)
tree4bc31e3d2e24c49ba14bf63331cb9521654e1741
parent8e1e8099aad0fbb2bc375b45379913b8ca55e926 (diff)
downloademacs-scratch/lisp-func-type-decls.tar.gz
emacs-scratch/lisp-func-type-decls.zip
* etc/NEWS (Function type declaration): Better warn about UB.scratch/lisp-func-type-decls
-rw-r--r--doc/lispref/functions.texi7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/lispref/functions.texi b/doc/lispref/functions.texi
index 1816ea93e3d..3aa4fc9a457 100644
--- a/doc/lispref/functions.texi
+++ b/doc/lispref/functions.texi
@@ -2750,9 +2750,10 @@ argument of type @var{string} and return one of the symbols
2750 2750
2751More types are described in @pxref{Lisp Data Types}. 2751More types are described in @pxref{Lisp Data Types}.
2752 2752
2753Declaring a function with an incorrect type produces undefined behavior. 2753Declaring a function with an incorrect type produces undefined behavior
2754Note also that when redefining (or advising) a type declared function 2754and could lead to unexpected results or might even crash Emacs. Note
2755the replacement should respect the original signature to avoid undefined 2755also that when redefining (or advising) a type declared function the
2756replacement should respect the original signature to avoid undefined
2756behavior. 2757behavior.
2757 2758
2758@item no-font-lock-keyword 2759@item no-font-lock-keyword