diff options
| author | Andrea Corallo | 2024-05-07 12:04:32 +0200 |
|---|---|---|
| committer | Andrea Corallo | 2024-05-07 12:05:58 +0200 |
| commit | f2600c509d9dcd6dd3d763ca8c2e409bab7cfbcb (patch) | |
| tree | 5cfe113a047374e48c8a30e160928ebc06c3ffc8 | |
| parent | 88932e6d3c417a68447b8407d31ea7eb6e5a572a (diff) | |
| download | emacs-scratch/comp-safety.tar.gz emacs-scratch/comp-safety.zip | |
* doc/lispref/functions.texi (Declare Form): Mention 'safety' in 'type'.scratch/comp-safety
| -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 cdf67c92fb9..54285ce677c 100644 --- a/doc/lispref/functions.texi +++ b/doc/lispref/functions.texi | |||
| @@ -2770,9 +2770,10 @@ For description of additional types, see @ref{Lisp Data Types}). | |||
| 2770 | 2770 | ||
| 2771 | Declaring a function with an incorrect type produces undefined behavior | 2771 | Declaring a function with an incorrect type produces undefined behavior |
| 2772 | and could lead to unexpected results or might even crash Emacs when code | 2772 | and could lead to unexpected results or might even crash Emacs when code |
| 2773 | is native-compiled and loaded. Note also that when redefining (or | 2773 | is native-compiled and loaded if compiled with @ref{safety} 0. Note |
| 2774 | advising) a type declared function the replacement should respect the | 2774 | also that when redefining (or advising) a type declared function the |
| 2775 | original signature to avoid undefined behavior. | 2775 | replacement should respect the original signature to avoid undefined |
| 2776 | behavior. | ||
| 2776 | 2777 | ||
| 2777 | @item no-font-lock-keyword | 2778 | @item no-font-lock-keyword |
| 2778 | This is valid for macros only. Macros with this declaration are | 2779 | This is valid for macros only. Macros with this declaration are |