diff options
| author | Andrea Corallo | 2024-05-02 12:15:30 +0200 |
|---|---|---|
| committer | Andrea Corallo | 2024-05-02 12:15:30 +0200 |
| commit | 17cdb512c0d522ae402c13bede35d75d520d0b1c (patch) | |
| tree | 4bc31e3d2e24c49ba14bf63331cb9521654e1741 | |
| parent | 8e1e8099aad0fbb2bc375b45379913b8ca55e926 (diff) | |
| download | emacs-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.texi | 7 |
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 | ||
| 2751 | More types are described in @pxref{Lisp Data Types}. | 2751 | More types are described in @pxref{Lisp Data Types}. |
| 2752 | 2752 | ||
| 2753 | Declaring a function with an incorrect type produces undefined behavior. | 2753 | Declaring a function with an incorrect type produces undefined behavior |
| 2754 | Note also that when redefining (or advising) a type declared function | 2754 | and could lead to unexpected results or might even crash Emacs. Note |
| 2755 | the replacement should respect the original signature to avoid undefined | 2755 | also that when redefining (or advising) a type declared function the |
| 2756 | replacement should respect the original signature to avoid undefined | ||
| 2756 | behavior. | 2757 | behavior. |
| 2757 | 2758 | ||
| 2758 | @item no-font-lock-keyword | 2759 | @item no-font-lock-keyword |