]> git.eshelyaron.com Git - emacs.git/commit
Add 'safety' function declaration
authorAndrea Corallo <acorallo@gnu.org>
Fri, 3 May 2024 20:45:04 +0000 (22:45 +0200)
committerEshel Yaron <me@eshelyaron.com>
Thu, 16 May 2024 08:18:54 +0000 (10:18 +0200)
commit45f3868527a1e9686edb52c0e4ffb369cf7ceb61
tree0dab25f09a10e848a439ac41c9c058aa7588f757
parent20e25be0dee8f69a7b1f15752f549004f361ab04
Add 'safety' function declaration

* lisp/emacs-lisp/comp.el (comp-known-predicates): Use
'comp-func-safety'.
(comp-ctxt, comp-mvar-type-hint-match-p): New 'safety' slot.
(comp-c-func-name): New function.
(comp--spill-lap-function, comp--intern-func-in-ctxt): Update.
* lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Spill safety.
* lisp/emacs-lisp/byte-run.el (byte-run--set-completion): New alias.
(defun-declarations-alist): Update.

(cherry picked from commit 9e4e6d0fc904e8a57c8433c40d6e3e9a230773d9)
lisp/emacs-lisp/byte-run.el
lisp/emacs-lisp/bytecomp.el
lisp/emacs-lisp/comp.el